獲取實例信息。
調試
您可以在OpenAPI Explorer中直接運行該接口,免去您計算簽名的困擾。運行成功后,OpenAPI Explorer可以自動生成SDK代碼示例。
授權信息
當前API暫無授權信息透出。
請求語法
GET /v2/openapi/getinstance HTTP/1.1
請求參數
名稱 | 類型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
InstanceName | string | 是 | 實例名稱。 | instance-test |
返回參數
示例
正常返回示例
JSON
格式
{
"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": "測試實例的描述信息。",
"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,
"IsMultiAZ": true
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
變更時間 | 變更內容概要 | 操作 |
---|---|---|
2024-04-02 | OpenAPI 返回結構發生變更 | 查看變更詳情 |
2023-10-13 | OpenAPI 返回結構發生變更 | 查看變更詳情 |