POST /service/api/console/gsm/{gsmKey}/sites
Creates a new site under a given GSM console.
Request Information
URI Parameters
| Name | Description | Type | Additional Information |
|---|---|---|---|
| gsmKey |
The GSM console keycode. |
string |
Required |
URI Sample(s)
|
POST
|
https://unityapi.webrootcloudav.com/service/api/console/gsm/FE06-8C1F-0DDF-4303-9FEF/sites
|
Body Parameters
Additional information for creating the new site.
CreateGSMSiteRequestModel| Name | Description | Type | Additional Information |
|---|---|---|---|
| SiteName |
The name of the site. |
string |
Required |
| Seats |
The number of seats for the site. |
integer |
Required |
| Comments |
The description for the site. Maximum of 1000 characters is allowed. |
string |
Required |
| BillingCycle |
Value specifying the billing cycle. Valid values are "Annually", "Quarterly", "Monthly", or "Weekly". Default value is "Annually". |
string |
None. |
| BillingDate |
Value indicating the billing date based on the specified billing cycle.
|
string |
None. |
| GlobalPolicies |
Value (true/false) indicating if global policies are enabled for the site. Default value is false. |
boolean |
None. |
| GlobalOverrides |
Value (true/false) indicating if global overrides are enabled for the site. Default value is false. |
boolean |
None. |
| PolicyId |
The identifier of the policy for the new site. If not specified, the policy "Recommended Defaults" is assigned to the site. |
string |
None. |
| Emails |
Comma-separated list of e-mail addresses for report distribution. Maximum of 10 email addresses is allowed. |
string |
Required |
| Trial |
Value (true/false) indicating if the type of the created keycode for the site should be a 30 day trial license. Default value is false. |
boolean |
None. |
| Modules |
The list of license modules to be associated with the site. |
Collection of CreateGSMSiteRequestModel_Module |
None. |
Sample Request
{
"SiteName": "Test Site",
"Seats": 50,
"Comments": "Comment for test site",
"BillingCycle": "Monthly",
"BillingDate": "1",
"GlobalPolicies": true,
"GlobalOverrides": false,
"PolicyId": "601fadc0-88d0-48dc-8b62-429c4c217cb9",
"Emails": "test@webroot.com",
"Trial": false,
"Modules": [
{
"Type": "DNSP",
"LicenseType": "Trial",
"Enable": true
},
{
"Type": "WSAT",
"LicenseType": "Trial",
"Enable": true
},
{
"Type": "OTEDR",
"LicenseType": "Full",
"Enable": true
},
{
"Type": "SAEP",
"LicenseType": "Full",
"Enable": true
},
{
"Type": "PLRCS",
"LicenseType": "Full",
"Enable": true
},
{
"Type": "PLRCB",
"LicenseType": "Full",
"Enable": true
},
{
"Type": "PLRM",
"LicenseType": "Full",
"Enable": true
}
]
}
<CreateGSMSiteRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models">
<BillingCycle>Monthly</BillingCycle>
<BillingDate>1</BillingDate>
<Comments>Comment for test site</Comments>
<Emails>test@webroot.com</Emails>
<GlobalOverrides>false</GlobalOverrides>
<GlobalPolicies>true</GlobalPolicies>
<Modules>
<CreateGSMSiteRequestModel_Module>
<Enable>true</Enable>
<LicenseType>Trial</LicenseType>
<Type>DNSP</Type>
</CreateGSMSiteRequestModel_Module>
<CreateGSMSiteRequestModel_Module>
<Enable>true</Enable>
<LicenseType>Trial</LicenseType>
<Type>WSAT</Type>
</CreateGSMSiteRequestModel_Module>
<CreateGSMSiteRequestModel_Module>
<Enable>true</Enable>
<LicenseType>Full</LicenseType>
<Type>OTEDR</Type>
</CreateGSMSiteRequestModel_Module>
<CreateGSMSiteRequestModel_Module>
<Enable>true</Enable>
<LicenseType>Full</LicenseType>
<Type>SAEP</Type>
</CreateGSMSiteRequestModel_Module>
<CreateGSMSiteRequestModel_Module>
<Enable>true</Enable>
<LicenseType>Full</LicenseType>
<Type>PLRCS</Type>
</CreateGSMSiteRequestModel_Module>
<CreateGSMSiteRequestModel_Module>
<Enable>true</Enable>
<LicenseType>Full</LicenseType>
<Type>PLRCB</Type>
</CreateGSMSiteRequestModel_Module>
<CreateGSMSiteRequestModel_Module>
<Enable>true</Enable>
<LicenseType>Full</LicenseType>
<Type>PLRM</Type>
</CreateGSMSiteRequestModel_Module>
</Modules>
<PolicyId>601fadc0-88d0-48dc-8b62-429c4c217cb9</PolicyId>
<Seats>50</Seats>
<SiteName>Test Site</SiteName>
<Trial>false</Trial>
</CreateGSMSiteRequestModel>
Response Information
Resource Description
Key information about the newly created site.
CreateGSMSiteResponseModel| Name | Description | Type | Additional Information |
|---|---|---|---|
| KeyCode |
The keycode for the created site. |
string |
None. |
| SiteId |
The identifier for the created site. |
string |
None. |
| PCAccess |
The PC Security Access Level for the created site. Values are 128 for admin access, 1 for view only access, 0 for no access. |
integer |
None. |
| MSAccess |
The Mobile Security Access Level for the created site. Values are 128 for admin access, 1 for view only access, 0 for no access. |
integer |
None. |
Sample Response
{
"KeyCode": "A238-07EA-6E63-4EA9-9539",
"SiteId": "7c678206-771f-41ba-8702-bf767efddcb3",
"PCAccess": 128,
"MSAccess": 1
}
<CreateGSMSiteResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <KeyCode>A238-07EA-6E63-4EA9-9539</KeyCode> <MSAccess>1</MSAccess> <PCAccess>128</PCAccess> <SiteId>7c678206-771f-41ba-8702-bf767efddcb3</SiteId> </CreateGSMSiteResponseModel>