To re-provision an asset in bulk.
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 |
---|---|---|---|
data |
Mandatory |
Text |
File containing the entries of asset to be provisioned. Accepted Files: .csv and .txt. Example: bulk_provision.csv or bulk_provision.txt |
manifest_types |
Mandatory | String |
Manifest type of asset. Allowed values: PolicyCompliance |
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/bulk?manifest_types=PolicyCompliance"" -H""assetFlowType: DEFAULT"" -H""Authorization: Bearer <token>"" -H""Content-Type: multipart/form-data""-F""data=@file_path"
Response
{
" ""code":200,
" ""data":{
" ""items":{
" ""count":{
" ""successfulProvisions":2,
" ""failedProvisions":0,
" ""skipppedProvisions":0
},
" ""successfulProvisions":[
" "{
" ""uuid":"4b5fb573-c145-4182-916a-a3997f9ff259",
" ""ip":"111.1.8.21",
" ""technology":"Comware 7"" "
},
" "{
" ""uuid":"5eafe860-25d1-4f8c-a336-8b20a6b163ad",
" ""ip":"111.1.8.20",
" ""technology":"Comware 7"" "
}" "
],
" ""failedProvisions":[
],
" ""skippedProvisions":[
]" "
}" "
}
}