To re-provision an asset.
Values for these fields cannot be changed: hostIP, type, technology. All the other fields can be updated and the asset can be re-provisioned.
HTTP Status Code
- 200: OK
- 400: Bad Request
- 401: Unauthorized user
- 403: Forbidden
- 404: Not Found
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. |
Request
"curl -X POST""https://<api_gateway_url>/ocaapi/v2.0/asset""-H""accept: application/json""-H""assetFlowType: DEFAULT""-H""Authorization: Bearer <token>""-H""Content-Type: application/json""-d""{\"technology\":\"Fabric 7\",\"dnsName\":\"Fabric 7 ASSET\",\"hostIP\":\"23.42.52.55\",\"netbios\":\"Web-test.com\",\"mac\":\"23-42-55-54-22-11\",\"type\":\"PolicyCompliance\",\"uuid\":\"4891f40f-32c2-47cf-9f2f-8eb0ca1bfc14\"}"
Response
{
" ""code":200,
" ""data":{
" ""assetUUID":"4891f40f-32c2-47cf-9f2f-8eb0ca1bfc14"" "
},
" ""message":"Request for Asset Reprovisioning sent Successfully."
}