LicenseRequest

Overview of LicenseRequest goes here.

LicenseRequest Properties

LicenseRequest

Field Type Inherited from Description
Environment String LicenseRequest Gets or sets the Environment value
InstanceKey String LicenseRequest Gets or sets the InstanceKey value
LicensedBy LicenseCompany LicenseRequest Gets or sets the LicensedBy value
Licensee LicenseCompany LicenseRequest Gets or sets the Licensee value
PurchaseOrder String LicenseRequest Gets or sets the PurchaseOrder value
RequestingComponents RequestingComponent[] LicenseRequest Gets or sets the RequestingComponents value

JSON Structure of LicenseRequest

{
   "Environment"	:	"String",
   "InstanceKey"	:	"String",
   "LicensedBy"	:	"[LicenseCompany](/object-model/licensecompany)",
   "Licensee"	:	"[LicenseCompany](/object-model/licensecompany)",
   "PurchaseOrder"	:	"String",
   "RequestingComponents"	:	"[RequestingComponent](/object-model/requestingcomponent)[]"
}

Add License Async

Example in C#

// Returns: LicenseInfo
var licenseInfo = await client.AddLicenseAsync(InstanceInfo instance, String certificate);

Example in CURL



           curl -X POST \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/licenses \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -H 'Content-Type: application/json' \
               -D'"LICENSE_GOES_HERE"'
            

Get Licenses Async

Example in C#

// Returns: IEnumerable<LicenseInfo>
var licenseInfo = await client.GetLicensesAsync(InstanceInfo instance);

Example in CURL



           curl -X GET \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/licenses \
               -H 'Authorization: Bearer TOKEN_GOES_HERE'