Provision an Asset

POST/ocaapi/v2.0/asset

To add an asset.

HTTP Status Code

- 200: OK

- 400: Bad Request

- 401: Unauthorized user

- 403: Forbidden

- 404: Not Found

- 429: Too Many Requests

Input ParametersInput Parameters

Parameter

Mandatory

/Optional

Data Type

Description

dnsName

Optional

Text

Enter the domain name.

hostIP

Mandatory  IP address

Enter the host IP for the asset to be provisioned.

mac

Optional Text

Enter mac address for the asset.

modelName

 Optional Text

Enter the model name of the asset to be provisioned. This parameter input is not required if assetFlowType is set DEFAULT.

netbios

Optional  Text

Enter the netbios of the asset to be provisioned.

serialNumber

 Optional Integer 

Enter the serial number of the asset to be provisioned. This parameter input is not required if assetFlowType is set DEFAULT.

technology

Mandatory  Text

Technology name of the asset.

type

Mandatory  Text

Manifest type of asset.

Allowed values: PolicyCompliance

uuid

Mandatory  Integer

The UUID of asset to be re-provisioned. This is required only during re-provisioning.

Header ParametersHeader Parameters

Parameter

Mandatory

/Optional

Data Type

Description

assetFlowType

 Optional

Text

Provide asset flow type. The default value is DEFAULT.
authorization Mandatory Text The token that was generated using the Fetch Authentication Token API.

SampleSample

Sample Request body

{
   "dnsName":"string",
   "hostIP":"string",
   "mac":"string",
   "modelName":"string",
   "netbios":"string",
   "serialNumber":"string",
   "technology":"string",
   "type":"string",
   "uuid":"string"
}      
    

API Request

"curl -X POST""https://<api_gateway_url>/ocaapi/v2.0/asset""-H""assetFlowType: DEFAULT"" -H""Content-Type: application/json""-H""Authorization: Bearer <token>"" -H""Content-Type: text/plain""-d @request.json
 "      
    

Response

{
   " ""code":200,
   " ""data":{
      "   ""assetUUID":"663a040b-c9c7-4bee-b4a3-f4f8bf61b8a5"" "
   },
   " ""message":"Request for Asset Provisioning sent Successfully."
}