Querying a Created Resource Based on the Environment ID
Function
This API is used to query a created resource based on the environment ID.
URI
GET /v3/{project_id}/cas/environments/{environment_id}/iac-resources
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Tenant's project ID. See Obtaining a Project ID. |
environment_id |
Yes |
String |
Environment ID. See Obtaining All Environments. |
Request
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
Content-Type |
Yes |
String |
Message body type (format). Default value: application/json;charset=utf8. |
X-Auth-Token |
Yes |
String |
API calling can be authenticated using a token or AK/SK. If you use a token, this parameter is mandatory and must be set to the token. For details about how to obtain the token, see Authentication. |
Response parameters
Parameter |
Type |
Description |
---|---|---|
iac_resources |
Array of iac_resource objects |
Environment resource list. |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Resource ID. |
resource_id |
String |
ID of a real resource. |
name |
String |
Resource name. |
type |
String |
Resource type.
|
status |
String |
Resource status. |
custom_tf |
String |
Terraform template. |
vars_body |
Map<String,Object> |
Variable request body. |
vars_structure |
Array of var_structure objects |
Variable structure. See Table 5. |
Example Request
None
Example Response
"iac_resources" : [{ "id" : "a12345", "name" : "cce12323qq", "type" : "rds", "status" : "INIT", "vars_structure" : [{ "var_key" : "www", "var_value" : "" } ], "vars_body" : { "var_key" : "11qwqqw" } } ]
Status Code
Status Code |
Description |
---|---|
200 |
OK |
400 |
Bad Request |
404 |
Not Found |
500 |
Internal Server Error |
Error Code
The error code format is SVCSTG.00100.[Error_ID], for example, SVCSTG.00100400. For details, see ServiceStage Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot