Queries instance information.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
GET /v2/openapi/getinstance HTTP/1.1
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
InstanceName | string | Yes | The name of the instance. | instance-test |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "757E172A-F94B-5E78-8A23-D9068E42F2E9",
"InstanceName": "instance-test",
"ResourceGroupId": "rg-acfmxh4em5jncda",
"RegionId": "cn-chengdu",
"SPInstanceId": "ots_standard_public_cn-9lb34u7u5001",
"AliasName": "instance-test",
"UserId": "16542312566",
"Network": "VPC",
"InstanceDescription": "Description of the test instance.",
"InstanceSpecification": "SSD",
"PaymentType": "Subscription",
"StorageType": "HYBRID",
"VCUQuota": 20,
"TableQuota": 100,
"InstanceStatus": "normal",
"CreateTime": "2019-12-23T07:24:33Z",
"Tags": [
{
"Key": "tag",
"Value": "333",
"TagKey": "keyTestA",
"TagValue": "00004a20240452b0"
}
],
"NetworkTypeACL": [
"INTERNET"
],
"NetworkSourceACL": [
"TRUST_PROXY"
],
"Policy": "{\n \"Version\": \"1\",\n \"Statement\": [\n {\n \"Action\": [\n \"ots:*\"\n ],\n \"Resource\": [\n \"acs:ots:*:13791xxxxxxxxxxx:instance/myinstance*\"\n ],\n \"Principal\": [\n \"*\"\n ],\n \"Effect\": \"Allow\",\n \"Condition\": {\n \"StringEquals\": {\n \"ots:TLSVersion\": [\n \"1.2\"\n ]\n },\n \"IpAddress\": {\n \"acs:SourceIp\": [\n \"192.168.0.1\",\n \"198.51.100.1\"\n ]\n }\n }\n }\n ]\n}",
"PolicyVersion": 1
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-04-02 | The response structure of the API has changed | View Change Details |
2023-10-13 | The response structure of the API has changed | View Change Details |