Queries the configurations of an Elastic Compute Service (ECS) instance.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
oos:ListInventoryEntries | get |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
InstanceId | string | Yes | The ID of the instance. | i-bp1cpoxxxwxxxxxxxxxx |
TypeName | string | Yes | The name of the component. Valid values:
| ACS:InstanceInformation |
MaxResults | integer | No | The number of entries per page. Valid values: 1 to 100. Default value: 50. | 50 |
NextToken | string | No | The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. | MTRBMDc0NjAtRUJFNy00N0NBLTk3NTctMTJDQzA |
Filter | array<object> | No | The filter rules for the component. | |
object | No | |||
Value | array | No | The values of properties. Valid values of the first N: 1 to 5. Valid values of the second N: 1 to 20. | |
string | No | The value of the component property. | ubuntu | |
Operator | string | No | The comparison operator that is used to filter property values. Valid values of N: 1 to 5. Valid values:
| Equal |
Name | string | No | The name of the component property. Valid values of N: 1 to 5. | PlatformName |
RegionId | string | No | The ID of the region in which the instance resides. | cn-hangzhou |
Response parameters
Examples
Sample success responses
JSON
format
{
"NextToken": "gAAAAABfTgv5ewUWmNdJ3g7JVLvX70sPH90GZOVGC",
"RequestId": "A81E4B2E-6B33-4BAE-9856-55DB7C893E01",
"SchemaVersion": "1.0",
"MaxResults": 50,
"CaptureTime": "2020-09-17T12:28:13Z",
"TypeName": "ACS:InstanceInformation",
"InstanceId": "i-bp1cpoxxxwxxxxxxxxxx",
"Entries": [
{
"RequestId": "1DF96445-5E18-4524-A4AE-3A218D0C345A",
"Entries": [
{
"PlatformName": "ubuntu",
"PlatformVersion": "20.04",
"Status": "Running",
"InstanceId": "i-bp1cpoxxxwxxxxxxxxxx",
"AgentVersion": "v1.5",
"ComputerName": "i-bp1cpoxxxwxxxxxxxxxx",
"IpAddress": "192.000.00.000",
"AgentName": "oosutil",
"PlatformType": "linux"
}
]
}
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|