获取资源详情
接口描述
GET /v1/subscriptions/{subscription_name}/resourceGroups/{resource_group_name}/resources/{name}
获取资源详情
请求头(Request Header)
请求参数(Request Parameters)
| 名称 | 位置 | 类型 | 必须 | 描述 |
|---|---|---|---|---|
| subscription_name | path | string | true | 订阅标识 |
| resource_group_name | path | string | true | 资源组标识 |
| name | path | string | true | 资源标识 |
请求体(Request Body)
无
请求示例(Request Example)
curl --request GET \
--url https://management.sensecoreapi.dev/rmh/v1/subscriptions/string/resourceGroups/string/resources/string \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {access-token}'
响应参数(Response Parameters)
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | OK | Resource |
响应示例(Response Example)
200 Response
{
"id": "string",
"rid": "string",
"name": "string",
"display_name": "string",
"type": "string",
"state": "string",
"zone": "string",
"properties": "string",
"sku_id": "string",
"subscription_name": "string",
"resource_group_name": "string",
"resource_group_id": "string",
"resource_group_display_name": "string",
"resource_group_rid": "string",
"creator_id": "string",
"owner_id": "string",
"order_info": {
"billing_cycle_number": 0,
"auto_renew": true,
"currency_code": "string",
"payment_channel": "PC_UNSPECIFIED",
"note": "string",
"order_type": "OT_UNSPECIFIED",
"order_id": "string",
"start_time": "2019-08-24T14:15:22Z",
"payment_model": "PM_UNSPECIFIED",
"billing_model": "BM_UNSPECIFIED",
"original_id": "string",
"end_time": "2019-08-24T14:15:22Z",
"auto_convert_postpaid": true
},
"deleted": true,
"create_time": "2019-08-24T14:15:22Z",
"update_time": "2019-08-24T14:15:22Z"
}
数据结构(Schemas)
OrderInfo
| 名称 | 类型 | 必须 | 限制 | 描述 |
|---|---|---|---|---|
| billing_cycle_number | integer(int32) | false | none | 购买时长 |
| auto_renew | boolean | false | none | 自动续费 |
| currency_code | string | false | none | 货币代码 |
| payment_channel | string(enum) | false | none | 支付方式 |
| note | string | false | none | 订单备注 |
| order_type | string(enum) | false | none | 订单类型 |
| order_id | string | false | none | 订单id |
| start_time | string(date-time) | false | none | 订单生效日期 |
| payment_model | string(enum) | false | none | 付费类型 |
| billing_model | string(enum) | false | none | 计费类型 |
| original_id | string | false | none | 合同包ID |
| end_time | string(date-time) | false | none | 订单结束时间 |
| auto_convert_postpaid | boolean | false | none | 预付费自动转后付费 |
payment_channel Enumerated Values
| 枚举值 |
|---|
| PC_UNSPECIFIED |
| PC_BALANCE |
| PC_CREDIT |
| PC_FROZENACCOUNT |
| PC_REMIT_OFFLINE |
| PC_ALIPAY |
| PC_UNIONPAY |
| PC_REMIT_ONLINE |
| PC_CONTRACT |
| OT_UNSPECIFIED |
| OT_ORIGINAL |
| OT_RENEW |
| OT_UPGRADED |
| OT_DOWNGRADED |
| OT_CONTRACT |
| OT_UNSUBSCRIBE |
| OT_RESIZE |
| PM_UNSPECIFIED |
| PM_PREPAID |
| PM_POSTPAID |
| BM_UNSPECIFIED |
| BM_USAGE |
| BM_MONTHLY |
| BM_YEARLY |
Resource
| 名称 | 类型 | 必须 | 限制 | 描述 |
|---|---|---|---|---|
| id | string | false | read-only | 资源ID |
| rid | string | false | read-only | 资源RID, 格式 "subscriptions//resourcegroups//resources/* |
| name | string | true | none | 资源标识 |
| display_name | string | false | none | 资源名称 |
| type | string | false | none | 资源类型 |
| state | string | false | none | 资源状态 |
| zone | string | false | none | 资源可用区 |
| properties | string | false | none | 资源特有属性 |
| sku_id | string | false | none | 最小库存单元ID |
| subscription_name | string | false | read-only | 订阅标识 |
| resource_group_name | string | false | read-only | 资源组标识 |
| resource_group_id | string | false | read-only | 资源组ID |
| resource_group_display_name | string | false | read-only | 资源组名称 |
| resource_group_rid | string | false | read-only | 资源组RID |
| creator_id | string | false | read-only | 资源创建者ID |
| owner_id | string | false | read-only | 资源拥有者ID |
| order_info | OrderInfo | false | none | 订单信息 |
| deleted | boolean | false | read-only | 资源是否已删除,默认为false |
| create_time | string(date-time) | false | read-only | 资源创建时间 |
| update_time | string(date-time) | false | read-only | 资源更新时间 |