Queries the period for which the images of an IP camera can be stored in IoT Platform.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes QueryDevicePictureLifeCycle

The operation that you want to perform. Set the value to QueryDevicePictureLifeCycle.

IotId String Yes C47T6xwp6ms4bNlkHRWCg4****

The ID of the IP camera. IoT Platform allocates an ID to each IP camera to uniquely identify the IP camera.

You can call the QueryDeviceDetail operation of IoT Platform to query the ID of the IP camera.

In addition to the preceding operation-specific request parameters, you must specify common request parameters when you call this operation. For more information, see Common request parameters.

Response parameters

Parameter Type Example Description
Code String 200

The response code.

  • 200: The call was successful.
  • Other codes: The call failed. For more information about error codes, see Error codes.
Data Struct

The query result.

Day Integer 7

The period for which the images of the IP camera can be stored in IoT Platform. Unit: days.

IotId String C47T6xwp6ms4bNlkHRWCg4****

The ID of the IP camera.

ErrorMessage String tenant auth error

The error message returned if the call failed.

RequestId String 0E2244FD-0AC9-4AB4-A8F0-729D78BE1D77

The ID of the request.

Success Boolean true

Indicates whether the call was successful.

  • true: The call was successful.
  • false: The call failed.

Examples

Sample requests

http(s)://linkvisual.cn-shanghai.aliyuncs.com/?Action=QueryDevicePictureLifeCycle
&IotId=C47T6xwp6ms4bNlkHRWCg4****
&<Common request parameters>

Sample success responses

XML format

<QueryDevicePictureLifeCycleResponse>
  <RequestId>0E2244FD-0AC9-4AB4-A8F0-729D78BE1D77</RequestId>
  <Data>
        <IotId>C47T6xwp6ms4bNlkHRWCg4****</IotId>
        <Day>7</Day>
  </Data>
  <Code>200</Code>
  <Success>true</Success>
</QueryDevicePictureLifeCycleResponse>

JSON format

{
    "RequestId": "0E2244FD-0AC9-4AB4-A8F0-729D78BE1D77",
    "Data": {
        "IotId": "C47T6xwp6ms4bNlkHRWCg4****",
        "Day": 7
    },
    "Code": 200,
    "Success": true
}

Error codes

For a list of error codes, visit the API Error Center.