orgsWLANTemplates := client .OrgsWLANTemplates ()
OrgsWLANTemplates
Clone Org Template
CloneOrgTemplate (
ctx context .Context ,
orgId uuid .UUID ,
templateId uuid .UUID ,
body * models .NameString ) (
models .ApiResponse [models .Template ],
error )
Parameter
Type
Tags
Description
orgId
uuid.UUID
Template, Required
-
templateId
uuid.UUID
Template, Required
-
body
*models.NameString
Body, Optional
Request Body
models.Template
ctx := context .Background ()
orgId := uuid .MustParse ("000000ab-00ab-00ab-00ab-0000000000ab" )
templateId := uuid .MustParse ("000000ab-00ab-00ab-00ab-0000000000ab" )
body := models.NameString {
Name : models .ToPointer ("Cloned" ),
}
apiResponse , err := orgsWLANTemplates .CloneOrgTemplate (ctx , orgId , templateId , & body )
if err != nil {
log .Fatalln (err )
} else {
// Printing the result and response
fmt .Println (apiResponse .Data )
fmt .Println (apiResponse .Response .StatusCode )
}
Example Response (as JSON)
{
"applies" : {
"org_id" : " b069b358-4c97-5319-1f8c-7c5ca64d6ab1" ,
"site_ids" : [
" b069b358-4c97-5319-1f8c-7c5ca64d6ab1"
],
"sitegroup_ids" : [
" b069b358-4c97-5319-1f8c-7c5ca64d6ab1"
]
},
"created_time" : 0 ,
"deviceprofile_ids" : [
" b069b358-4c97-5319-1f8c-7c5ca64d6ab1"
],
"exceptions" : {
"site_ids" : [
" b069b358-4c97-5319-1f8c-7c5ca64d6ab1"
],
"sitegroup_ids" : [
" b069b358-4c97-5319-1f8c-7c5ca64d6ab1"
]
},
"filter_by_deviceprofile" : true ,
"id" : " b069b358-4c97-5319-1f8c-7c5ca64d6ab1" ,
"modified_time" : 0 ,
"name" : " string" ,
"org_id" : " b069b358-4c97-5319-1f8c-7c5ca64d6ab1"
}
Create Org Template
CreateOrgTemplate (
ctx context .Context ,
orgId uuid .UUID ,
body * models .Template ) (
models .ApiResponse [models .Template ],
error )
Parameter
Type
Tags
Description
orgId
uuid.UUID
Template, Required
-
body
*models.Template
Body, Optional
Request Body
models.Template
ctx := context .Background ()
orgId := uuid .MustParse ("000000ab-00ab-00ab-00ab-0000000000ab" )
body := models.Template {
Name : "name6" ,
}
apiResponse , err := orgsWLANTemplates .CreateOrgTemplate (ctx , orgId , & body )
if err != nil {
log .Fatalln (err )
} else {
// Printing the result and response
fmt .Println (apiResponse .Data )
fmt .Println (apiResponse .Response .StatusCode )
}
Example Response (as JSON)
{
"applies" : {
"org_id" : " b069b358-4c97-5319-1f8c-7c5ca64d6ab1" ,
"site_ids" : [
" b069b358-4c97-5319-1f8c-7c5ca64d6ab1"
],
"sitegroup_ids" : [
" b069b358-4c97-5319-1f8c-7c5ca64d6ab1"
]
},
"created_time" : 0 ,
"deviceprofile_ids" : [
" b069b358-4c97-5319-1f8c-7c5ca64d6ab1"
],
"exceptions" : {
"site_ids" : [
" b069b358-4c97-5319-1f8c-7c5ca64d6ab1"
],
"sitegroup_ids" : [
" b069b358-4c97-5319-1f8c-7c5ca64d6ab1"
]
},
"filter_by_deviceprofile" : true ,
"id" : " b069b358-4c97-5319-1f8c-7c5ca64d6ab1" ,
"modified_time" : 0 ,
"name" : " string" ,
"org_id" : " b069b358-4c97-5319-1f8c-7c5ca64d6ab1"
}
Delete Org Template
DeleteOrgTemplate (
ctx context .Context ,
orgId uuid .UUID ,
templateId uuid .UUID ) (
http .Response ,
error )
Parameter
Type
Tags
Description
orgId
uuid.UUID
Template, Required
-
templateId
uuid.UUID
Template, Required
-
``
ctx := context .Background ()
orgId := uuid .MustParse ("000000ab-00ab-00ab-00ab-0000000000ab" )
templateId := uuid .MustParse ("000000ab-00ab-00ab-00ab-0000000000ab" )
resp , err := orgsWLANTemplates .DeleteOrgTemplate (ctx , orgId , templateId )
if err != nil {
log .Fatalln (err )
} else {
fmt .Println (resp .StatusCode )
}
Get Org Template Details
GetOrgTemplate (
ctx context .Context ,
orgId uuid .UUID ,
templateId uuid .UUID ) (
models .ApiResponse [models .Template ],
error )
Parameter
Type
Tags
Description
orgId
uuid.UUID
Template, Required
-
templateId
uuid.UUID
Template, Required
-
models.Template
ctx := context .Background ()
orgId := uuid .MustParse ("000000ab-00ab-00ab-00ab-0000000000ab" )
templateId := uuid .MustParse ("000000ab-00ab-00ab-00ab-0000000000ab" )
apiResponse , err := orgsWLANTemplates .GetOrgTemplate (ctx , orgId , templateId )
if err != nil {
log .Fatalln (err )
} else {
// Printing the result and response
fmt .Println (apiResponse .Data )
fmt .Println (apiResponse .Response .StatusCode )
}
Example Response (as JSON)
{
"applies" : {
"org_id" : " b069b358-4c97-5319-1f8c-7c5ca64d6ab1" ,
"site_ids" : [
" b069b358-4c97-5319-1f8c-7c5ca64d6ab1"
],
"sitegroup_ids" : [
" b069b358-4c97-5319-1f8c-7c5ca64d6ab1"
]
},
"created_time" : 0 ,
"deviceprofile_ids" : [
" b069b358-4c97-5319-1f8c-7c5ca64d6ab1"
],
"exceptions" : {
"site_ids" : [
" b069b358-4c97-5319-1f8c-7c5ca64d6ab1"
],
"sitegroup_ids" : [
" b069b358-4c97-5319-1f8c-7c5ca64d6ab1"
]
},
"filter_by_deviceprofile" : true ,
"id" : " b069b358-4c97-5319-1f8c-7c5ca64d6ab1" ,
"modified_time" : 0 ,
"name" : " string" ,
"org_id" : " b069b358-4c97-5319-1f8c-7c5ca64d6ab1"
}
Get List of Org WLAN Templates
ListOrgTemplates (
ctx context .Context ,
orgId uuid .UUID ,
limit * int ,
page * int ) (
models.ApiResponse [[]models.Template ],
error )
Parameter
Type
Tags
Description
orgId
uuid.UUID
Template, Required
-
limit
*int
Query, Optional
Default : 100
Constraints : >= 0
page
*int
Query, Optional
Default : 1
Constraints : >= 1
[]models.Template
ctx := context .Background ()
orgId := uuid .MustParse ("000000ab-00ab-00ab-00ab-0000000000ab" )
limit := 100
page := 1
apiResponse , err := orgsWLANTemplates .ListOrgTemplates (ctx , orgId , & limit , & page )
if err != nil {
log .Fatalln (err )
} else {
// Printing the result and response
fmt .Println (apiResponse .Data )
fmt .Println (apiResponse .Response .StatusCode )
}
Example Response (as JSON)
[
{
"applies" : {
"org_id" : " b069b358-4c97-5319-1f8c-7c5ca64d6ab1" ,
"site_ids" : [
" b069b358-4c97-5319-1f8c-7c5ca64d6ab1"
],
"sitegroup_ids" : [
" b069b358-4c97-5319-1f8c-7c5ca64d6ab1"
]
},
"created_time" : 0 ,
"deviceprofile_ids" : [
" b069b358-4c97-5319-1f8c-7c5ca64d6ab1"
],
"exceptions" : {
"site_ids" : [
" b069b358-4c97-5319-1f8c-7c5ca64d6ab1"
],
"sitegroup_ids" : [
" b069b358-4c97-5319-1f8c-7c5ca64d6ab1"
]
},
"filter_by_deviceprofile" : true ,
"id" : " b069b358-4c97-5319-1f8c-7c5ca64d6ab1" ,
"modified_time" : 0 ,
"name" : " string" ,
"org_id" : " b069b358-4c97-5319-1f8c-7c5ca64d6ab1"
}
]
Update Org Template
UpdateOrgTemplate (
ctx context .Context ,
orgId uuid .UUID ,
templateId uuid .UUID ,
body * models .Template ) (
models .ApiResponse [models .Template ],
error )
Parameter
Type
Tags
Description
orgId
uuid.UUID
Template, Required
-
templateId
uuid.UUID
Template, Required
-
body
*models.Template
Body, Optional
Request Body
models.Template
ctx := context .Background ()
orgId := uuid .MustParse ("000000ab-00ab-00ab-00ab-0000000000ab" )
templateId := uuid .MustParse ("000000ab-00ab-00ab-00ab-0000000000ab" )
body := models.Template {
Name : "name6" ,
}
apiResponse , err := orgsWLANTemplates .UpdateOrgTemplate (ctx , orgId , templateId , & body )
if err != nil {
log .Fatalln (err )
} else {
// Printing the result and response
fmt .Println (apiResponse .Data )
fmt .Println (apiResponse .Response .StatusCode )
}
Example Response (as JSON)
{
"applies" : {
"org_id" : " b069b358-4c97-5319-1f8c-7c5ca64d6ab1" ,
"site_ids" : [
" b069b358-4c97-5319-1f8c-7c5ca64d6ab1"
],
"sitegroup_ids" : [
" b069b358-4c97-5319-1f8c-7c5ca64d6ab1"
]
},
"created_time" : 0 ,
"deviceprofile_ids" : [
" b069b358-4c97-5319-1f8c-7c5ca64d6ab1"
],
"exceptions" : {
"site_ids" : [
" b069b358-4c97-5319-1f8c-7c5ca64d6ab1"
],
"sitegroup_ids" : [
" b069b358-4c97-5319-1f8c-7c5ca64d6ab1"
]
},
"filter_by_deviceprofile" : true ,
"id" : " b069b358-4c97-5319-1f8c-7c5ca64d6ab1" ,
"modified_time" : 0 ,
"name" : " string" ,
"org_id" : " b069b358-4c97-5319-1f8c-7c5ca64d6ab1"
}