PUT zstack/v1/tickets/{uuid}/actions
Authorization: OAuth the-session-uuid
{
"changeTicketStatus": {
"statusEvent": "approve",
"comment": "this is the comment for change status operation"
},
"systemTags": [],
"userTags": []
}
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X PUT -d '{"changeTicketStatus":{"statusEvent":"approve","comment":"this is the comment for change status operation"}}' http://localhost:8080/zstack/v1/tickets/e9377476db3f375bbff78dc3b9204f00/actions
名字 | 类型 | 位置 | 描述 | 可选值 | 起始版本 |
---|---|---|---|---|---|
uuid | String | url | 资源的UUID,唯一标示该资源 | 3.0.0 | |
statusEvent | TicketStatusEvent | body(包含在changeTicketStatus结构中) |
| 3.0.0 | |
comment (可选) | String | body(包含在changeTicketStatus结构中) | 3.0.0 | ||
systemTags (可选) | List | body | 3.0.0 | ||
userTags (可选) | List | body | 3.0.0 |
{
"inventory": {
"uuid": "f4483251fdfd48cdae0dbb966a2652c9",
"name": "ticket",
"description": "ticket description",
"status": "IntermediateApproved",
"request": [
{
"requestName": "create vm",
"apiName": "org.zstack.header.vm.APICreateVmInstanceMsg",
"executeTimes": 1.0,
"apiBody": {
"name": "vm name",
"instanceOfferingUuid": "e539401d4cf74a6c93b173b9fa01d4e6",
"imageUuid": "16e0a61a2ca145eaaae6c7e9ef72ae31",
"l3NetworkUuids": [
"0fbf9d6545e6480790ee9b2f7da59f65"
],
"strategy": "InstantStart",
"timeout": -1.0,
"headers": {},
"id": "3f1b84f2f3ca453caf3086625d57eff5",
"createdTime": 1.56402555717E12
}
}
],
"accountSystemType": "iam2",
"ticketTypeUuid": "3b933e9aaf2d49b9a3dcf0c92867790f",
"accountSystemContext": {
"projectUuid": "21423d5537cc4891b33745b3ad9045f8",
"virtualIDUuid": "1470a380fe454b4298ba178245aa499c"
},
"flowCollectionUuid": "6aa051e47de74658885bca987b9c4a35"
}
}
名字 | 类型 | 描述 | 起始版本 |
---|---|---|---|
error | ErrorCode | 错误码,若不为null,则表示操作失败, 操作成功时该字段为null。 详情参考error | 3.0.0 |
inventory | TicketInventory | 详情参考inventory | 3.0.0 |
名字 | 类型 | 描述 | 起始版本 |
---|---|---|---|
code | String | 错误码号,错误的全局唯一标识,例如SYS.1000, HOST.1001 | 3.0.0 |
description | String | 错误的概要描述 | 3.0.0 |
details | String | 错误的详细信息 | 3.0.0 |
elaboration | String | 保留字段,默认为null | 3.0.0 |
opaque | LinkedHashMap | 保留字段,默认为null | 3.0.0 |
cause | ErrorCode | 根错误,引发当前错误的源错误,若无原错误,该字段为null | 3.0.0 |
名字 | 类型 | 描述 | 起始版本 |
---|---|---|---|
uuid | String | 资源的UUID,唯一标示该资源 | 3.0.0 |
name | String | 资源名称 | 3.0.0 |
description | String | 资源的详细描述 | 3.0.0 |
accountSystemType | String | 3.0.0 | |
ticketTypeUuid | String | 工单类型UUID | 3.6.0 |
accountSystemContext | Object | 3.0.0 | |
currentFlowUuid | String | 3.0.0 | |
flowCollectionUuid | String | 3.0.0 | |
createDate | Timestamp | 创建时间 | 3.0.0 |
lastOpDate | Timestamp | 最后一次修改时间 | 3.0.0 |
status | TicketStatus | 详情参考status | 3.0.0 |
request | List | 详情参考request | 3.0.0 |
名字 | 类型 | 描述 | 起始版本 |
---|---|---|---|
name | String | 资源名称 | 3.0.0 |
ordinal | int | 3.0.0 |
名字 | 类型 | 描述 | 起始版本 |
---|---|---|---|
requestName | String | 3.0.0 | |
apiName | String | 3.0.0 | |
executeTimes | int | 3.0.0 | |
apiBody | Object | 3.0.0 |
ChangeTicketStatusAction action = new ChangeTicketStatusAction();
action.uuid = "e9377476db3f375bbff78dc3b9204f00";
action.statusEvent = "approve";
action.comment = "this is the comment for change status operation";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
ChangeTicketStatusAction.Result res = action.call();
ChangeTicketStatusAction action = ChangeTicketStatusAction()
action.uuid = "e9377476db3f375bbff78dc3b9204f00"
action.statusEvent = "approve"
action.comment = "this is the comment for change status operation"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
ChangeTicketStatusAction.Result res = action.call()
学习路径
ZStack Cloud 产品学习路径
快速梳理文档,点击相应文本链接,快速跳转到相应文档的页面,学习 ZStack Cloud 产品。
商务咨询:
400-962-2212 转 1售后咨询:
400-962-2212 转 2商务联系:
sales@zstack.io商务咨询:
400-962-2212 转 1商务联系:
channel@zstack.io商务咨询:
400-962-2212 转 1售后咨询:
400-962-2212 转 2商务联系:
sales@zstack.io商务咨询:
400-962-2212 转 1商务联系:
channel@zstack.io商务咨询:
400-962-2212 转 1商务联系:
channel@zstack.io下载链接已发送至您的邮箱。
如未收到,请查看您的垃圾邮件、订阅邮件、广告邮件。 当您收到电子邮件后,请点击 URL 链接,以完成下载。感谢您使用 ZStack 产品和服务。
成功提交申请。
我们将安排工作人员尽快与您取得联系。感谢您使用 ZStack 产品和服务。
立即体验
联系我们
回到顶部
商务咨询:
400-962-2212 转 1售后咨询:
400-962-2212 转 2商务联系:
sales@zstack.io成功提交申请。
我们将安排工作人员尽快与您取得联系。感谢您使用 ZStack 产品和服务。