服务请求
提供者
使用下表中列出的方法创建和检索服务请求。
HTTP 方法 |
路径 |
Description |
|
` /v2.1/tenant/ { tenant_id } /servicerequests` |
检索服务请求。 |
|
` /v2.1/tenant/ { tenant_id } / 服务要求 / { id }` |
按 ID 检索服务请求。 |
|
` /v2.1/tenant/ { tenant_id } /servicereques/` |
创建服务请求。 |
|
` /v2.1/tenant/{ tenant_id } /servicerequies/categories` |
检索服务请求类别。 |
服务请求属性
下表列出了服务请求属性。
属性 |
Type |
Description |
|
string |
服务请求的标识符。例如: |
|
string |
服务请求的主题。 |
|
string |
对服务请求的注释 |
|
string |
请求的类别:备份,灾难恢复,技术,其他或订阅。 |
|
string |
服务请求的优先级:极低,低,正常,高或紧急。 |
|
string |
Zuora 订阅编号。 |
|
– |
订阅承诺详细信息,包括:
|
|
string |
分区名称。 |
|
string |
子租户标识符。 |
|
string |
存储对象类型:文件服务器或块存储。 |
|
string |
存储对象的标识符。例如: |
|
string |
服务类型:文件服务,块存储或对象存储。 |
检索服务请求
使用下表中列出的方法检索指定租户的服务请求类别。
HTTP 方法 |
路径 |
Description |
Parameters |
|
` /v2.1/tenant/ { tenant_id } /servicerequests` |
检索服务请求。 |
|
所需的请求正文属性: none
-
请求正文示例: *
none
-
响应正文示例: *
{ "status": { "user_message": "Okay. Returned 1 record.", "verbose_message": "", "code": 200 }, "result": { "returned_records": 1, "total_records": 34, "sort_by": "created", "order_by": "desc", "offset": 6, "limit": 1, "records": [ { "id": "SRQ0035952014", "subject": "DR Failover - fileserver", "description": "catgory:Disaster Recovery Failover \n subtenant: DefaultSubtenants2 \n region: au-east2 \n zone: au-east2-a \n fileserver: Demotsysserv1 \n tenant:MyOrg \n comments:comments", "priority": "Urgent", "status": "New", "createdDate": "2020-05-22T04:23:12+0000", "updatedDate": "2020-05-22T04:23:12+0000" } ] } }
按 ID 检索服务请求
使用下表中列出的方法按服务请求 ID 检索服务请求。
HTTP 方法 |
路径 |
Description |
Parameters |
|
` /v2.1/tenant/ { tenant_id } / 服务要求 / { id }` |
按 ID 检索服务请求。 |
|
所需的请求正文属性: none
-
请求正文示例: *
none
-
响应正文示例: *
{ "status": { "user_message": "Okay. Returned 1 record.", "verbose_message": "", "code": 200 }, "result": { "returned_records": 1, "records": [ { "id": "SRQ0035952014", "subject": "DR Failover - fileserver", "description": "catgory:Disaster Recovery Failover \n subtenant: DefaultSubtenants2 \n region: au-east2 \n zone: au-east2-a \n fileserver: Demotsysserv1 \n tenant:MyOrg \n comments:comments", "priority": "Urgent", "status": "New", "createdDate": "2020-05-22T04:23:12+0000", "updatedDate": "2020-05-22T04:23:12+0000" } ] } }
创建服务请求
使用下表中列出的方法创建服务请求。
HTTP 方法 |
路径 |
Description |
Parameters |
|
` /v2.1/tenant/{ tenant_id } /servicerequies/categories` |
创建服务请求。 |
|
所需请求正文属性:所需属性取决于服务请求的类别。下表列出了请求正文属性。
类别 |
Required |
订阅。 |
|
灾难恢复 |
|
技术 |
|
其他 |
分区 |
-
请求正文示例: *
{ "subject": "string", "comment": "string", "category": "subscription", "priority": "Normal", "subscription": "A-S00003969", "commitment": { "service_level": "standard", "new_commitment": 10 }, "zone": "au-east1-a", "subtenant_id": "5d2fb0fb4f47df00015274e3", "storage_object_type": "fileserver", "storage_object_id": "5d2fb0fb4f47df00015274e3", "service_type": "File Services" }
-
响应正文示例: *
{ "status": { "user_message": "string", "verbose_message": "string", "code": "string" }, "result": { "returned_records": 1, "records": [ { "id": "string", "subject": "string", "description": "string", "status": "New", "priority": "Normal", "createdDate": "2020-05-12T03:18:25+0000", "UpdatedDate": "2020-05-12T03:18:25+0000" } ] }
检索服务请求类别
下表列出了指定租户的检索服务请求类别。
HTTP 方法 |
路径 |
Description |
Parameters |
|
` /v2.1/tenant/{ tenant_id } /servicerequies/categories` |
检索服务请求类别。 |
|
所需的请求正文属性: none
-
请求正文示例: *
none
-
响应正文示例: *
{ "status": { "user_message": "Okay. Returned 5 records.", "verbose_message": "", "code": 200 }, "result": { "returned_records": 5, "records": [ { "key": "dr", "value": "Disaster Recovery Failover" }, { "key": "technical", "value": "Technical Issue" }, { "key": "other", "value": "Other" }, { "key": "subscription", "value": "Subscription Management" }, { "key": "backup", "value": "Backup Restore" } ] } }