ExistLxResources
Checks whether the account that initiates the current call already has an instance of the specified commodity in the current region based on the commodity code.
Try it now
Test
RAM authorization
Request syntax
GET /api/v1/lxResources/{commodityCode}/exist HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| commodityCode |
string |
Yes |
The MaxCompute commodity code used for the query. |
odps_MaxAgent_public_cn |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
PopResult |
||
| requestId |
string |
The request ID of the call. You can use the ID to query request logs and troubleshoot exceptions. |
A9E5C7F4-42AC-4FFA-9019-B6B2B57983EF |
| httpCode |
integer |
The HTTP status code of the error response. The example indicates that the server encountered an unexpected exception. |
500 |
| errorCode |
string |
The error code returned when the call fails. The example indicates an internal server error. |
INTERNAL_SERVER_ERROR |
| errorMsg |
string |
The error message returned when the call fails. The example indicates an internal server error. |
Internal Server Error |
| data |
boolean |
Indicates whether a matching commodity instance exists. A value of true indicates that the instance exists. A value of false indicates that the instance does not exist. The result may be empty if the account ownership or region is missing. |
Examples
Success response
JSON format
{
"requestId": "A9E5C7F4-42AC-4FFA-9019-B6B2B57983EF",
"httpCode": 500,
"errorCode": "INTERNAL_SERVER_ERROR",
"errorMsg": "Internal Server Error",
"data": false
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.