Fetch Asset Status using UUID

GET/ocaapi/v2.0/asset/<asset_uuid>/status

Get the current provision status of an asset using UUID.

HTTP Status Code

- 200: OK

- 401: Unauthorized user

- 403: Forbidden

- 404: Not Found

Input ParametersInput Parameters

Parameter

Mandatory

/Optional

Data Type

Description

asset_uuid

Mandatory

Integer

Provide the UUID of the asset.

Header ParameterHeader Parameter

Parameter

Mandatory

/Optional

Data Type

Description

assetFlowType

Mandatory String

Provide asset flow type. The default value is DEFAULT.

authorization

Mandatory

Text

The token that was generated using the Fetch Authentication Token API.

SampleSample

API request

"curl -XGET""https://<api_gateway_url>/ocaapi/v2.0/asset/<asset_uuid>/status""-H""assetFlowType: DEFAULT"" -H""Authorization: Bearer <token>"      
    

Response when the provision is successful

{
   "   ""code":200,
   "  ""data":{
      "       ""status":"Provision Confirmed""  "
   }
}      
    

Response when the provision is not successful

"  "{
   "   ""code":200,
   "  ""data":{
      "       ""status":"Provision Requested""  "
   }
}