Get status of assets provisioned within given timeframe

GET/ocaapi/v2.0/assets/status/subscription/{number_of_days}

To get the status of the assets provisioned in your subscription within given timeframe.

HTTP Status Code

- 200: OK

- 401: Unauthorized user

- 403: Forbidden

- 404: Not Found

Input ParametersInput Parameters

Parameter

Mandatory

/Optional

Data Type

Description

<number_of_days>

Mandatory

Text The time-frame for which you would like to fetch the data.You can specify a time-frame within the last 30 days only.

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 was generated using the Fetch Authentication Token API.

SampleSample

Request

"curl -X GET""https://<api_gateway_url>/ocaapi/v2.0/assets/status/subscription/{number_of_days}"" -H""assetFlowType: DEFAULT"" -H""Authorization: Bearer <token>"" -H""Content-Type: application/json"      
    

Response

 {
   " ""code":200,
   " ""data":{
      "   ""items":[
         "     "{
            "       ""assetUUID":"3xxxxxx9-245x-4531-x7xx-x84x6386x04x",
            "       ""status":"Provision Confirmed""     "
         },
         "     "{
            "       ""assetUUID":"56x98x40-2563-4x56-8789-85x7x6x67112",
            "       ""status":"Provision Confirmed""     "
         },
         "     "{
            "       ""assetUUID":"9x5x267x-048x-4612-x3xx-768x346x6f7x",
            "       ""status":"Provision Confirmed""     "
         },
         "     "{
            "       ""assetUUID":"640xxxxx-x725-46x2-956x-8028x9x6xx24",
            "       ""status":"Provision Confirmed""     "
         }"   "
      ]" "
   }
}