查看缓存实例详情
GET /storage/acs/v1/subscriptions/{subscription_name}/resourceGroups/{resource_group_name}/zones/{zone}/caches/{cache_name}
请求头(Request Header)
请求体(Request Body)
名称 | 类型 | 必须 | 默认值 | 取值范围 | 描述 |
---|---|---|---|---|---|
cache_id | []string | 是 | - | - | 缓存实例资源id. |
tenant_id | string | 否 | - | - | 租户id. |
user_id | string | 否 | - | - | 租户下用户id. |
请求示例(Request Example)
curl 'https://management.sensecoreapi.tech/rmh/v1/subscriptions/c28f173a-8f18-474c-866b-4ce89a612958/resourceGroups/default/resources/f96ba15d-4479-40fe-bb0d-8f09f240e1ce' \
-H 'authority: management.sensecoreapi.tech' \
-H 'sec-ch-ua: " Not;A Brand";v="99", "Google Chrome";v="97", "Chromium";v="97"' \
-H 'authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6InB1YmxpYzpoeWRyYS5qd3QuYWNjZXNzLXRva2VuIiwidHlwIjoiSldUIn0.eyJhdWQiOltdLCJjbGllbnRfaWQiOiI0ZTQxNDg1NC03MjAwLTUwOWYtYjk2MC1mOGIwZGJiYmYzMzEiLCJleHAiOjE2OTkzMzgwNzUsImV4dCI6eyJhbGxfYXoiOmZhbHNlLCJhel9saXN0IjpbImNuLXNoLTAxYSIsImNuLXNoLTAxeiIsImNuLXNoLTAxYiJdLCJpc19kZWRpY2F0ZWRfdGVuYW50IjpmYWxzZSwicHJwX2xpc3QiOlsiY24tc2gtMDFhLXBycDAxIiwiY24tc2gtMDFiLXBycDAxIl0sInRlbmFudF9jZXJ0aWZ5X3N0YXR1cyI6dHJ1ZSwidGVuYW50X2NlcnRpZnlfdHlwZSI6ImVudGVycHJpc2UiLCJ0ZW5hbnRfY29kZSI6ImNvZGUxMDEwIiwidGVuYW50X2lkIjoiYzI4ZjE3M2EtOGYxOC00NzRjLTg2NmItNGNlODlhNjEyOTU4IiwidXNlcl9pZCI6ImE1MWIzNDk1LTNiYTEtNGFkZC1iNzYwLTNkMjU3ZTI5OWYzNyIsInVzZ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language: zh-CN' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36' \
-H 'sec-ch-ua-platform: "macOS"' \
-H 'accept: */*' \
-H 'origin: https://console.sensecore.tech' \
-H 'sec-fetch-site: cross-site' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-dest: empty' \
-H 'referer: https://console.sensecore.tech/' \
--compressed
响应(Response)
名称 | 类型 | 描述 |
---|---|---|
id | string | 缓存实例资源id. |
name | string | 缓存实例资源名称,需符合正则:^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$ . |
display_name | string | 缓存实例资源别名. |
description | string | 缓存实例资源描述. |
uid | string | 缓存实例资源uuid. |
resource_type | string | 缓存实例资源类型, 例子: storage.acs.v1.cache. |
creator_id | string | 缓存实例创建用户id. |
owner_id | string | 缓存实例所有者id. |
tenant_id | string | 租户id. |
zone | string | 可用区. |
state | string | 缓存实例状态. |
sku_id | string | 最小库存单元id. |
tags | object | 缓存实例资源标签. |
properties | object | 缓存实例规格属性. |
order_info | object | 订单信息. |
deleted | boolean | 缓存实例资源是否删除. |
create_time | string | 缓存实例资源创建时间. |
update_time | string | 缓存实例资源更新时间. |
其中,state
有如下情况
状态 | 含义 |
---|---|
CREATING | 创建中(默认值) |
UPDATING | 更新中 |
ACTIVE | 已激活 |
DELETING | 删除中 |
DELETED | 已删除 |
FAILED | 失败 |
EXPIRESTOPPING | 到期停服中 |
EXPIRESTOPPED | 到期已停服 |
RENEWSTARTING | 续订恢复中 |
其中,properties
的参数如下
名称 | 类型 | 必须 | 默认值 | 取值范围 | 描述 |
---|---|---|---|---|---|
resources | object | 否 | - | - | 规格属性. |
bucket_path | string | 否 | - | - | 租户内加速桶路径. |
other_bucket_path | string | 否 | - | - | 跨租户加速桶路径. |
third_party_bucket_path | string | 否 | - | - | 其他加速路径. |
其中,resources
的参数如下
名称 | 类型 | 必须 | 默认值 | 取值范围 | 描述 |
---|---|---|---|---|---|
billing_items | string | 否 | - | - | 计费项. |
其中,billing_items
的参数如下
名称 | 类型 | 必须 | 默认值 | 取值范围 | 描述 |
---|---|---|---|---|---|
capacity | string | 否 | - | - | 资源容量. |
capacity_unit | string | 否 | - | - | 资源容量单位. |
其中,order_info
的参数如下
名称 | 类型 | 描述 |
---|---|---|
billing_cycle_number | integer | 购买时长. |
auto_renew | boolean | 自动续费. |
currency_code | string | 货币代码. |
payment_channel | string | 支付方式. |
note | string | 订单备注. |
order_type | string | 订单类型. |
order_id | string | 订单id. |
start_time | string | 订单生效日期. |
payment_model | string | 付费类型. |
billing_model | string | 计费类型. |
original_id | string | 合同包ID. |
end_time | string | 订单结束时间. |
其中,payment_channel
有如下情况
状态 | 含义 |
---|---|
PC_UNSPECIFIED | 未指定 |
PC_BALANCE | 余额支付 |
PC_CREDIT | 信用支付 |
PC_FROZENACCOUNT | 冻结款支付 |
PC_REMIT_OFFLINE | 线下汇款 |
PC_ALIPAY | 支付宝支付 |
PC_UNIONPAY | 银联支付 |
PC_REMIT_ONLINE | 在线转账 |
PC_CONTRACT | 合同包支付 |
其中,order_type
有如下情况
状态 | 含义 |
---|---|
OT_UNSPECIFIED | 未指定 |
OT_ORIGINAL | 原始订单 |
OT_RENEW | 续费订单 |
OT_UPGRADED | 升配订单 |
OT_DOWNGRADED | 降配订单 |
OT_CONTRACT | 合同订单 |
OT_UNSUBSCRIBE | 退订订单 |
OT_RESIZE | 扩缩容订单 |
其中,payment_model
有如下情况
状态 | 含义 |
---|---|
PM_UNSPECIFIED | 未指定 |
PM_PREPAID | 预付 |
PM_POSTPAID | 后付费 |
其中,billing_model
有如下情况
状态 | 含义 |
---|---|
BM_UNSPECIFIED | 未指定 |
BM_USAGE | 按量计费 |
BM_MONTHLY | 包月 |
BM_YEARLY | 包年 |
响应示例(Response Example)
{
"id": "a3c01120-7183-11ee-85b4-da68b9bf2c6e",
"rid": "/subscriptions/c28f173a-8f18-474c-866b-4ce89a612958/resourceGroups/default/zones/cn-sh-01a/caches/f96ba15d-4479-40fe-bb0d-8f09f240e1ce",
"name": "f96ba15d-4479-40fe-bb0d-8f09f240e1ce",
"display_name": "zhangxy_test111",
"type": "storage.acs.v1.cache",
"state": "ACTIVE",
"zone": "cn-sh-01a",
"properties": "{\"resources\": {\"billing_items\": {\"capacity\": 115, \"capacity_unit\": \"GB\"}}, \"bucket_path\": [\"aoss://101202\"], \"other_bucket_path\": [], \"third_party_bucket_path\": []}",
"sku_id": "c012f40c-99c2-4cd3-b9a4-92b12472e774",
"subscription_name": "c28f173a-8f18-474c-866b-4ce89a612958",
"resource_group_name": "default",
"resource_group_id": "5598bd4a-4c24-4b13-8182-e79625643cd8",
"resource_group_display_name": "默认资源组",
"resource_group_rid": "/subscriptions/c28f173a-8f18-474c-866b-4ce89a612958/resourceGroups/default",
"creator_id": "",
"owner_id": "a51b3495-3ba1-4add-b760-3d257e299f37",
"order_info": {
"billing_cycle_number": 0,
"auto_renew": true,
"currency_code": "CNY",
"payment_channel": "PC_BALANCE",
"note": "",
"order_type": "OT_RESIZE",
"order_id": "37741978428373907439616",
"start_time": "2023-10-23T09:08:00Z",
"payment_model": "PM_POSTPAID",
"billing_model": "BM_USAGE",
"original_id": "",
"end_time": "9999-12-31T23:59:59Z",
"auto_convert_postpaid": false
},
"deleted": false,
"create_time": "2023-10-23T09:07:49.826539Z",
"update_time": "2023-10-23T09:08:02.031134Z"
}