Queries the information about a constraint.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ConstraintId | string | Yes | The ID of the constraint. | cons-bp1yx7x42v**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "0FEEF92D-4052-5202-87D0-3D8EC16F81BF",
"ConstraintDetail": {
"Config": "{ \"LocalRoleName\": \"TestRole\" }",
"Description": "Launch as local role TestRole",
"CreateTime": "2022-04-12T06:11:26Z",
"ConstraintId": "cons-bp1yx7x42v****",
"PortfolioId": "port-bp1yt7582g****",
"ProductId": "prod-bp18r7q127****",
"ConstraintType": "Launch",
"ProductName": "DEMO-Create an ECS instance.\n"
}
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
500 | InternalError | A system error occurred. |
For a list of error codes, visit the Service error codes.