@@ -92,15 +92,17 @@ export class ApiManageComponent implements OnInit {
9292 const insights_re = / h t t p s : \/ \/ ( m a n a g e | i n t e g r a t i o n | m a n a g e - s t a g i n g ) \. (?< host > [ a - z 0 - 9 . ] * ( m i s t | m i s t s y s | m i s t - f e d e r a l ) \. c o m ) \/ a d m i n \/ \? o r g _ i d = (?< org_id > [ 0 - 9 a - f - ] { 36 } ) # ! d a s h b o a r d \/ (?< detail > i n s i g h t s | i n s i g h t s - f u l l - s t a c k ) \/ ( (?< obj > [ a - z ] + ) \/ ) ? ( (?< obj_id > [ a - z 0 - 9 - ] + ) \/ ) ? ( (?< period > [ a - z 0 - 9 ] + ) \/ ) ? ( (?< start > [ 0 - 9 ] * ) \/ ) ? ( (?< stop > [ 0 - 9 ] * ) \/ ) ? (?< site_id > [ 0 - 9 a - f - ] { 36 } ) ? / iys;
9393 const alarm_re = / h t t p s : \/ \/ ( m a n a g e | i n t e g r a t i o n | m a n a g e - s t a g i n g ) \. (?< host > [ a - z 0 - 9 . ] * ( m i s t | m i s t s y s | m i s t - f e d e r a l ) \. c o m ) \/ a d m i n \/ \? o r g _ i d = (?< org_id > [ 0 - 9 a - f - ] { 36 } ) # ! a l e r t s \/ ? (?< site_id > [ 0 - 9 a - z - ] * ) \? ? (?< query_param > .* ) ? $ / iys;
9494 const events_re = / h t t p s : \/ \/ ( m a n a g e | i n t e g r a t i o n | m a n a g e - s t a g i n g ) \. (?< host > [ a - z 0 - 9 . ] * ( m i s t | m i s t s y s | m i s t - f e d e r a l ) \. c o m ) \/ a d m i n \/ \? o r g _ i d = (?< org_id > [ 0 - 9 a - f - ] { 36 } ) # ! m a r v i s \/ ? (?< site_id > [ 0 - 9 a - z - ] * ) \? ? (?< query_param > .* ) ? $ / iys;
95- const floorplans_re = / h t t p s : \/ \/ ( m a n a g e | i n t e g r a t i o n | m a n a g e - s t a g i n g ) \. (?< host > [ a - z 0 - 9 . ] * ( m i s t | m i s t s y s | m i s t - f e d e r a l ) \. c o m ) \/ a d m i n \/ \? o r g _ i d = (?< org_id > [ 0 - 9 a - f - ] { 36 } ) # ! c l i L o c a t i o n \/ (?< detail > v i e w | c o n f i g | v a l i d a t i o n P a t h | w a y f i n d i n g ) ? \/ ? (?< uuid > [ 0 - 9 a - f - ] { 36 } ) \/ ? ( f l o o r p l a n | b e a c o n s A n d Z o n e s ) ? \/ ? (?< site_id > [ 0 - 9 a - f - ] { 36 } ) ? / iys;
95+ const floorplans_re = / h t t p s : \/ \/ ( m a n a g e | i n t e g r a t i o n | m a n a g e - s t a g i n g ) \. (?< host > [ a - z 0 - 9 . ] * ( m i s t | m i s t s y s | m i s t - f e d e r a l ) \. c o m ) \/ a d m i n \/ \? o r g _ i d = (?< org_id > [ 0 - 9 a - f - ] { 36 } ) # ! ( c l i L o c a t i o n | l i v e V i e w ) \/ (?< detail > v i e w | c o n f i g | v a l i d a t i o n P a t h | w a y f i n d i n g ) ? \/ ? (?< uuid > [ 0 - 9 a - f - ] { 36 } ) \/ ? ( f l o o r p l a n | b e a c o n s A n d Z o n e s ) ? \/ ? (?< site_id > [ 0 - 9 a - f - ] { 36 } ) ? / iys;
9696 const site_evpn_re = / h t t p s : \/ \/ ( m a n a g e | i n t e g r a t i o n | m a n a g e - s t a g i n g ) \. (?< host > [ a - z 0 - 9 . ] * ( m i s t | m i s t s y s | m i s t - f e d e r a l ) \. c o m ) \/ a d m i n \/ \? o r g _ i d = (?< org_id > [ 0 - 9 a - f - ] { 36 } ) # ! e v p n \/ s i t e \/ ? ( [ 0 - 9 ] \/ ) ? (?< site_id > [ 0 - 9 a - z _ - ] * ) ? ( \/ (?< topology_id > [ 0 - 9 a - f - ] { 36 } ) ) ? / yis;
9797 const site_wlan_template_re = / h t t p s : \/ \/ ( m a n a g e | i n t e g r a t i o n | m a n a g e - s t a g i n g ) \. (?< host > [ a - z 0 - 9 . ] * ( m i s t | m i s t s y s | m i s t - f e d e r a l ) \. c o m ) \/ a d m i n \/ \? o r g _ i d = (?< org_id > [ 0 - 9 a - f - ] { 36 } ) # ! w l a n \/ o r g W l a n D e t a i l \/ (?< template_id > [ 0 - 9 a - z _ - ] * ) \/ (?< wlan_id > [ 0 - 9 a - f - ] { 36 } ) \/ (?< site_id > [ 0 - 9 a - f - ] { 36 } ) / is;
9898 const site_common_re = / h t t p s : \/ \/ ( m a n a g e | i n t e g r a t i o n | m a n a g e - s t a g i n g ) \. (?< host > [ a - z 0 - 9 . ] * ( m i s t | m i s t s y s | m i s t - f e d e r a l ) \. c o m ) \/ a d m i n \/ \? o r g _ i d = (?< org_id > [ 0 - 9 a - f - ] { 36 } ) # ! (?< obj > [ a - z ] + ) \/ ? ( (?< detail > d e t a i l | s i t e | a d m i n | e d g e d e t a i l | c l u s t e r d e t a i l | n e w | v i e w | b a n d | l i s t ) \/ ) ? (?< inter > [ 0 - 9 ] * \/ ) ? ( (?< obj_id > [ 0 - 9 a - z _ - ] * ) \/ ) ? (?< site_id > [ 0 - 9 a - f - ] { 36 } ) ? / yis;
9999 const site_common_objs = [ "ap" , "gateway" , "switch" , "assets" , "wlan" , "tags" , "psk" , "tunnels" , "clients" , "guestclients" , "sdkclients" , "wiredclients" , "wxlan" , "security" , "switchconfig" , "pcap" , "siteedge" , "cellularedges" , "rrm" ]
100100 const org_evpn_re = / h t t p s : \/ \/ ( m a n a g e | i n t e g r a t i o n | m a n a g e - s t a g i n g ) \. (?< host > [ a - z 0 - 9 . ] * ( m i s t | m i s t s y s | m i s t - f e d e r a l ) \. c o m ) \/ a d m i n \/ \? o r g _ i d = (?< org_id > [ 0 - 9 a - f - ] { 36 } ) # ! e v p n \/ o r g ( \/ (?< topology_id > [ 0 - 9 a - f - ] { 36 } ) ) ? / yis;
101101 const org_inventory = / h t t p s : \/ \/ ( m a n a g e | i n t e g r a t i o n | m a n a g e - s t a g i n g ) \. (?< host > [ a - z 0 - 9 . ] * ( m i s t | m i s t s y s | m i s t - f e d e r a l ) \. c o m ) \/ a d m i n \/ \? o r g _ i d = (?< org_id > [ 0 - 9 a - f - ] { 36 } ) # ! a p i n v e n t o r y \/ ? (?< detail > a p s | s w i t c h e s | w a n _ e d g e s | m i s t _ e d g e s ) ? \/ ? (?< site_id > [ 0 - 9 a - z _ - ] * ) / yis;
102+ const org_identityProviders = / h t t p s : \/ \/ ( m a n a g e | i n t e g r a t i o n | m a n a g e - s t a g i n g ) \. (?< host > [ a - z 0 - 9 . ] * ( m i s t | m i s t s y s | m i s t - f e d e r a l ) \. c o m ) \/ a d m i n \/ \? o r g _ i d = (?< org_id > [ 0 - 9 a - f - ] { 36 } ) # ! n a c I d e n t i t y P r o v i d e r s ( \/ o a u t h \/ (?< provider > [ a - z ] + ) \/ (?< obj_id > [ 0 - 9 a - z _ - ] + ) ) ? / yis;
103+ const org_upgrade = / h t t p s : \/ \/ ( m a n a g e | i n t e g r a t i o n | m a n a g e - s t a g i n g ) \. (?< host > [ a - z 0 - 9 . ] * ( m i s t | m i s t s y s | m i s t - f e d e r a l ) \. c o m ) \/ a d m i n \/ \? o r g _ i d = (?< org_id > [ 0 - 9 a - f - ] { 36 } ) # ! u p g r a d e \/ ? (?< device_type > a p | s w i t c h | g a t e w a y | m x e d g e ) ? / yis;
102104 const org_common_re = / h t t p s : \/ \/ ( m a n a g e | i n t e g r a t i o n | m a n a g e - s t a g i n g ) \. (?< host > [ a - z 0 - 9 . ] * ( m i s t | m i s t s y s | m i s t - f e d e r a l ) \. c o m ) \/ a d m i n \/ \? o r g _ i d = (?< org_id > [ 0 - 9 a - f - ] { 36 } ) # ! (?< obj > [ a - z A - Z ] + ) \/ ? ( (?< detail > d e t a i l | s i t e | a d m i n | e d g e d e t a i l | c l u s t e r d e t a i l | n e w | v i e w | t e m p l a t e | r f T e m p l a t e | p r o v i d e r | n a c p o r t a l s | p s k p o r t a l s ) \/ ) ? ( [ 0 - 9 ] \/ ) ? (?< obj_id > [ 0 - 9 a - z _ - ] * ) \? ? (?< query_params > [ 0 - 9 a - z _ = & - ] * ) ? / yis;
103- const org_common_objs = [ "orgtags" , "misttunnels" , "templates" , "switchtemplate" , "gatewaytemplates" , "hubs" , "deviceprofiles" , "org" , "orgpsk" , "configuration" , "auditlogs" , "adminconfig" , "subscription" , "edge" , "vpns" , "template" , "rftemplates" , "services" , "networks" , "applicationpolicy" , "authpolicylabels" , "naccertificates" , "nacpolicy" , "nacidentityproviders" , " onboardingworkflow", "sdk" , "premiumanalytics" , "private5g" , "securityevents" , "nacclients" , "nacendpoints" , "sitetemplates" ] ;
105+ const org_common_objs = [ "orgtags" , "misttunnels" , "templates" , "switchtemplate" , "gatewaytemplates" , "hubs" , "deviceprofiles" , "org" , "orgpsk" , "configuration" , "auditlogs" , "adminconfig" , "subscription" , "edge" , "vpns" , "template" , "rftemplates" , "services" , "networks" , "applicationpolicy" , "authpolicylabels" , "naccertificates" , "nacpolicy" , "onboardingworkflow" , "sdk" , "premiumanalytics" , "private5g" , "securityevents" , "nacclients" , "nacendpoints" , "sitetemplates" ] ;
104106 const base_re = / h t t p s : \/ \/ ( m a n a g e | i n t e g r a t i o n | m a n a g e - s t a g i n g ) \. (?< host > [ a - z 0 - 9 . ] * ( m i s t | m i s t s y s | m i s t - f e d e r a l ) \. c o m ) \/ a d m i n \/ \? o r g _ i d = (?< org_id > [ 0 - 9 a - f - ] { 36 } ) # ! / yis;
105107 const msp_re = / h t t p s : \/ \/ ( m a n a g e | i n t e g r a t i o n | m a n a g e - s t a g i n g ) \. (?< host > [ a - z 0 - 9 . ] * ( m i s t | m i s t s y s | m i s t - f e d e r a l ) \. c o m ) \/ m s p \/ \? m s p _ i d = (?< msp_id > [ 0 - 9 a - f - ] { 36 } ) # ! (?< obj > o r g s | a d m i n s | a u d i t L o g s | m s p I n f o | l a b e l s ) \/ ? (?< detail > a i o p s | d e t a i l s | d e t a i l | i n v i t e ) ? \/ ? (?< obj_id > [ 0 - 9 a - z _ - ] * ) / yis; ;
106108 var regexp_result ;
@@ -129,8 +131,12 @@ export class ApiManageComponent implements OnInit {
129131 this . eventsUrl ( regexp_result ) ;
130132 } else if ( regexp_result = org_inventory . exec ( this . tabUrl ) ) {
131133 this . orgInventoryUrl ( regexp_result ) ;
134+ } else if ( regexp_result = org_upgrade . exec ( this . tabUrl ) ) {
135+ this . orgUpgradeUrl ( regexp_result ) ;
132136 } else if ( regexp_result = floorplans_re . exec ( this . tabUrl ) ) {
133137 this . floorplansUrl ( regexp_result ) ;
138+ } else if ( regexp_result = org_identityProviders . exec ( this . tabUrl ) ) {
139+ this . orgNacIdentityProvidersUrl ( regexp_result ) ;
134140 } else if ( ( regexp_result = site_common_re . exec ( this . tabUrl ) ) && regexp_result [ "groups" ] && site_common_objs . includes ( regexp_result [ "groups" ] [ "obj" ] . toLowerCase ( ) ) ) {
135141 this . commonSiteUrl ( regexp_result ) ;
136142 } else if ( ( regexp_result = org_common_re . exec ( this . tabUrl ) ) && regexp_result [ "groups" ] && org_common_objs . includes ( regexp_result [ "groups" ] [ "obj" ] . toLowerCase ( ) ) ) {
@@ -1013,10 +1019,10 @@ export class ApiManageComponent implements OnInit {
10131019 const url = "https://api." + res ?. groups ?. host + "/api/v1/orgs/" + this . org_id + "/inventory" ;
10141020 if ( res ?. groups ?. host && this . org_id && this . site_id ) {
10151021 this . quick_links . push ( { url : url , name : "site inventory" } ) ;
1016- this . quick_links . push ( { url : url + "?site_id=" + this . site_id + "&type=ap" , name : "site aps inventory" } ) ;
1017- this . quick_links . push ( { url : url + "?site_id=" + this . site_id + "&type=switch" , name : "site switches inventory" } ) ;
1018- this . quick_links . push ( { url : url + "?site_id=" + this . site_id + "&type=gateway" , name : "site gateways inventory" } ) ;
1019- } else if ( res ?. groups ?. host && this . org_id ) {
1022+ this . quick_links . push ( { url : url + "?site_id=" + this . site_id + "&type=ap" , name : "site aps inventory" } ) ;
1023+ this . quick_links . push ( { url : url + "?site_id=" + this . site_id + "&type=switch" , name : "site switches inventory" } ) ;
1024+ this . quick_links . push ( { url : url + "?site_id=" + this . site_id + "&type=gateway" , name : "site gateways inventory" } ) ;
1025+ } else if ( res ?. groups ?. host && this . org_id ) {
10201026 this . quick_links . push ( { url : url , name : "org inventory" } ) ;
10211027 this . quick_links . push ( { url : url + "?type=ap" , name : "org aps inventory" } ) ;
10221028 this . quick_links . push ( { url : url + "?type=switch" , name : "org switches inventory" } ) ;
@@ -1025,6 +1031,26 @@ export class ApiManageComponent implements OnInit {
10251031 }
10261032 }
10271033
1034+
1035+
1036+ orgNacIdentityProvidersUrl ( res : RegExpExecArray ) : void {
1037+ res = this . process_query_params ( res ) ;
1038+ this . org_id = res ?. groups ?. org_id ;
1039+ this . site_id = res ?. groups ?. site_id ? res ?. groups ?. site_id : null ;
1040+ const url = "https://api." + res ?. groups ?. host + "/api/v1/orgs/" + this . org_id + "/inventory" ;
1041+ if ( res ?. groups ?. host && this . org_id && res ?. groups ?. provider ) {
1042+ this . quick_links . push ( { url : "https://api." + res ?. groups ?. host + "/api/v1/orgs/" + this . org_id + "/setting/" + res ?. groups ?. provider + "/link_accounts" , name : "NAC " + res ?. groups ?. provider + " MDM" } ) ;
1043+ } else if ( res ?. groups ?. host && this . org_id ) {
1044+ this . quick_links . push ( { url : "https://api." + res ?. groups ?. host + "/api/v1/orgs/" + this . org_id + "/ssos" , name : "NAC IDPS" } ) ;
1045+ this . quick_links . push ( { url : "https://api." + res ?. groups ?. host + "/api/v1/orgs/" + this . org_id + "/setting/intune/link_accounts" , name : "NAC INTUNE MDM" } ) ;
1046+ this . quick_links . push ( { url : "https://api." + res ?. groups ?. host + "/api/v1/orgs/" + this . org_id + "/setting/jamf/link_accounts" , name : "NAC JAMF MDM" } ) ;
1047+ this . quick_links . push ( { url : "https://api." + res ?. groups ?. host + "/api/v1/orgs/" + this . org_id + "/setting/mobicontrol/link_accounts" , name : "NAC MOBICONTROL MDM" } ) ;
1048+ this . quick_links . push ( { url : "https://api." + res ?. groups ?. host + "/api/v1/orgs/" + this . org_id + "/setting/vmware/link_accounts" , name : "NAC VMWARE MDM" } ) ;
1049+ }
1050+ }
1051+
1052+
1053+
10281054 commonOrgUrl ( res : RegExpExecArray ) : void {
10291055 res = this . process_query_params ( res ) ;
10301056 this . org_id = res ?. groups ?. org_id ;
@@ -1139,21 +1165,17 @@ export class ApiManageComponent implements OnInit {
11391165 this . forgeOrgObject ( "nacrules" , res ?. groups ?. host , res ?. groups ?. detail ) ;
11401166 this . forgeNacPolicies ( res ?. groups ?. host ) ;
11411167 break ;
1142- case "nacidentityproviders" :
1143- this . setName ( "NAC IDP" , res ?. groups ?. detail ) ;
1144- this . forgeOrgNacIdp ( res ?. groups ?. host ) ;
1145- break ;
11461168 case "onboardingworkflow" :
11471169 console . log ( res ?. groups )
11481170 switch ( res ?. groups ?. detail ) {
1149- case "pskportals" :
1150- this . setName ( "Psk Portals" , res ?. groups ?. detail ) ;
1151- this . quick_links . push ( { url : "https://api." + res ?. groups ?. host + "/api/v1/orgs/" + this . org_id + "/pskportals" , name : this . obj_name } ) ;
1152- break ;
11531171 case "nacportals" :
1154- this . setName ( "NAC Portals " , res ?. groups ?. detail ) ;
1172+ this . setName ( "NAC Portal " , res ?. groups ?. detail ) ;
11551173 this . quick_links . push ( { url : "https://api." + res ?. groups ?. host + "/api/v1/orgs/" + this . org_id + "/nacportals" , name : this . obj_name } ) ;
11561174 break ;
1175+ default :
1176+ this . setName ( "Psk Portal" , res ?. groups ?. detail ) ;
1177+ this . quick_links . push ( { url : "https://api." + res ?. groups ?. host + "/api/v1/orgs/" + this . org_id + "/pskportals" , name : this . obj_name } ) ;
1178+ break ;
11571179 }
11581180 break ;
11591181 case "sdk" :
@@ -1365,6 +1387,23 @@ export class ApiManageComponent implements OnInit {
13651387 } )
13661388 }
13671389
1390+ ////////////////////////////////////////////////////////////////////////////////////
1391+ ////////////////////////////////////////////////////////////////////////////////////
1392+ ////////////////////// EVENTS URL FUNCTION DISPATCHER
1393+ orgUpgradeUrl ( res : RegExpExecArray ) : void {
1394+ this . org_id = res ?. groups ?. org_id ;
1395+ var device_type = "ap" ;
1396+ if ( res ?. groups ?. device_type ) device_type = res ?. groups ?. device_type ;
1397+ this . quick_links . push ( {
1398+ url : "https://api." + res ?. groups ?. host + "/api/v1/orgs/" + this . org_id + "/devices/upgrade?device_type=" + device_type + "&duration=30d" ,
1399+ name : device_type + " Upgrades"
1400+ } )
1401+ this . quick_links . push ( {
1402+ url : "https://api." + res ?. groups ?. host + "/api/v1/orgs/" + this . org_id + "/devices/versions?type=" + device_type ,
1403+ name : device_type + " Versions"
1404+ } )
1405+ }
1406+
13681407 ////////////////////////////////////////////////////////////////////////////////////
13691408 ////////////////////////////////////////////////////////////////////////////////////
13701409 ////////////////////// EVENTS URL FUNCTION DISPATCHER
0 commit comments