LicenseRequest

Represents a request for a software license

Overview of LicenseRequest goes here.

LicenseRequest Properties

LicenseRequest

Field Type Inherited from Description
Environment String LicenseRequest Gets or sets the environment (e.g., Production, Staging)
IndustryVertical String LicenseRequest Gets or sets the industry vertical
InstanceKey String LicenseRequest Gets or sets the instance key identifying the Keep instance
LicensedBy LicenseCompany LicenseRequest Gets or sets the company issuing the license
Licensee LicenseCompany LicenseRequest Gets or sets the company receiving the license
PurchaseOrder String LicenseRequest Gets or sets the purchase order number
RequestingComponents RequestingComponent[] LicenseRequest Gets or sets the components being licensed

JSON Structure of LicenseRequest

{
   "Environment"	:	"String",
   "IndustryVertical"	:	"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'