Querying Instances that a Parameter Template Can Be Applied To (a V3 API)
Function
This API is used to query instances that a parameter template can be applied to.
Constraints
None
API Calling
For details, see Calling APIs.
Authorization Information
Each account has permissions to call all APIs, but IAM users must have the required permissions specifically assigned.
- If you are using role/policy-based authorization, see the required permissions in Permissions Policies and Supported Actions.
- If you are using identity policy-based authorization, the following identity policy-based permissions are required.
URI
GET /v3/{project_id}/configurations/{config_id}/query-instances
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Definition Project ID of a tenant in a region To obtain this value, see Obtaining a Project ID. Constraints N/A Range The value can contain 32 characters. Only letters and digits are supported. Default Value N/A |
| config_id | Yes | String | Definition Parameter template ID Constraints N/A Range The value can contain 36 characters. Only letters and digits are allowed. Default Value N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| offset | No | Integer | Definition Which page the server starts returning items Constraints N/A Range The value is greater than or equal to 0. Default Value 0 |
| limit | No | Integer | Definition Number of records on each page Constraints N/A Range The value is greater than 0 and less than or equal to 128. Default Value 10 |
Request Parameters
None
Example Request
Querying instances that a parameter template can be applied to
GET https://{endpoint}//v3/a8e2a5e2a6xxxxxxxxxx5af5b9ddabe5/configurations/849c450a43xxxxxxxxxxf33cff5f0717pr09/query-instances Response Parameters
- Normal response
| Parameter | Type | Description |
|---|---|---|
| entities | Array of ApplicableInstance objects | Definition Returned information about the list of instances that the parameter template can be applied to. Range N/A |
| total | Integer | Definition Total number of instances that a parameter template can be applied to. Range N/A |
Example Response
- Normal response example
{ "entities" : [ { "instance_id" : "34694c59f8xxxxxxxxxx35bd53e06d8bin09", "instance_name" : "ddm-test" } ], "total" : 9 } - Abnormal response
For details, see Abnormal Request Results.
Status Codes
- Normal
- Abnormal
For details, see Status Codes.
Error Codes
For details, see 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