ITag - openitag CLI 命令参考
本文列出 ITag - openitag 在阿里云 CLI 中的可用命令,并提供各命令的语法和参数说明。
前提条件
地域与接入点
凭证配置中的默认地域可用 --region <regionId> 覆盖。
未指定接入地址时,CLI 按产品规则尝试解析,需要指定时可按地域和网络类型查看 Endpoint,再使用 --endpoint <endpoint>。
版本信息
属性 | 值 |
CLI 版本 | 3.5.4 |
API 版本 | 2022-06-16 |
可用命令
单击命令名称,查看命令描述、语法和参数说明。
租户
命令 | 说明 |
查询iTAG租户的相关信息 | |
查询阿里云账号下的iTAG租户 | |
修改iTAG租户的相关信息 |
标注模板
命令 | 说明 |
您可以为当前租户添加新的模板,并根据自身的业务需求自定义标注模板 | |
删除当前租户下的模板 | |
查询租户下的模版信息 | |
查询模版中的单选、多选等题目信息 | |
查询模版中图片、文本、音频等展示信息 | |
展示当前租户的模板列表 | |
修改当前租户下的模板 |
标注任务
命令 | 说明 |
任务追加数据 | |
为当前租户新增标注任务 | |
删除当前租户下的某个任务 | |
查询单个标注任务信息 | |
查询任务当前的统计信息 | |
查询任务当前的状态 | |
查询任务当前的模板信息 | |
查询任务模板题目 | |
查询任务模版中的数据展示信息 | |
展示当前租户标注任务列表 | |
修改当前租户下的任务 |
子任务包
命令 | 说明 |
查询单个子任务包信息 | |
查询子任务包中的单个标注数据 | |
展示单个子任务包的标注数据 | |
展示子任务包列表 |
标注结果
命令 | 说明 |
导出标注任务的结果数据 | |
查询单个标注导出结果的信息 | |
展示所有导出的标注结果的列表 |
标注人员管理
命令 | 说明 |
租户内新增成员 | |
删除租户内某个成员 | |
查询租户里单个成员的详细信息 | |
展示当前租户下的全部标注成员 | |
更新租户内成员信息 |
任务人员
命令 | 说明 |
为标注任务的工作节点(标注、质检和验收)进行人员分配 | |
查询任务中各个结点配置的人员信息 | |
查询任务中各成员的统计数据 | |
删除任务中某个工作结点(包括标注、质检或验收)的成员 | |
更新任务成员 |
命令详情
语法逐行列出命令参数:<类型> 是需要替换的值占位符,方括号表示可选参数,# 表示列表项序号;[options] 表示 CLI 通用选项,见“全局选项”。可选对象或列表内标为必填的字段,仅在提供该对象或列表项时必填。完整参数定义见各命令的参数说明。
AddWorkNodeWorkforce
命令描述
为标注任务的工作节点(标注、质检和验收)进行人员分配
contentType:application/json
HTTP 方法:POST
protocol:HTTPS
requestBodyType:json
url:/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}/worknodes/{WorkNodeId}/workforce
语法
aliyun openitag AddWorkNodeWorkforce
--TaskId <int>
--TenantId <string>
--WorkNodeId <int>
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--TaskId | Integer | 是 | 任务ID。如何获取任务ID,请参见https://help.aliyun.com/document_detail/454662.html |
--TenantId | String | 是 | 租户ID。如何获取租户ID,请参见https://help.aliyun.com/document_detail/454649.html |
--WorkNodeId | Integer | 是 | 工作结点ID,工作流顺序,从0开始。例如标注-质检-验收中,标注是0,质检是1,验收是2 |
--body | String | 否 | 项目 |
示例
aliyun openitag POST /openapi/api/v1/tenants/GA000W134/tasks/1543000518306500608/worknodes/0/workforce --region cn-hangzhou --header "Content-Type=application/json"
AppendAllDataToTask
命令描述
任务追加数据
contentType:application/json
HTTP 方法:PUT
protocol:HTTPS
requestBodyType:json
url:/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}/appendAllDataToTask
语法
aliyun openitag AppendAllDataToTask
--TaskId <string>
--TenantId <string>
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--TaskId | String | 是 | 任务ID。如何获取任务ID,请参见https://help.aliyun.com/document_detail/454662.html |
--TenantId | String | 是 | 租户ID。如何获取租户ID,请参见https://help.aliyun.com/document_detail/454649.html |
--body | String | 否 | 参数 |
示例
aliyun openitag PUT /openapi/api/v1/tenants/GAR000134/tasks/154000518306500608/appendAllDataToTask --region cn-hangzhou --header "Content-Type=application/json"
CreateTask
命令描述
为当前租户新增标注任务
contentType:application/json
HTTP 方法:POST
protocol:HTTPS
requestBodyType:json
url:/openapi/api/v1/tenants/{TenantId}/tasks
语法
aliyun openitag CreateTask
--TenantId <string>
--body <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--TenantId | String | 是 | 租户id,可以通过ListTenantId租户列表查询的API来查询 |
--body | String | 是 | 任务详情 |
示例
aliyun openitag POST /openapi/api/v1/tenants/GA000W134/tasks --region cn-hangzhou --header "Content-Type=application/json" --body '{"AssignConfig":{},"Exif":{"TaskCaptionType":"DOC_LINK"},"AllowAppendData":true,"TaskWorkflow":["MARK"],"TaskName":"测试任务202208101424","VoteConfigs":{"key":"example-string"},"Admins":{},"UUID":"1662300080757311","TaskTemplateConfig":{},"DatasetProxyRelations":[{}],"TemplateId":"1529360008342353920","Tags":["text"]}'
CreateTemplate
命令描述
您可以为当前租户添加新的模板,并根据自身的业务需求自定义标注模板
contentType:application/json
HTTP 方法:POST
protocol:HTTPS
requestBodyType:json
url:/openapi/api/v1/tenants/{TenantId}/templates
语法
aliyun openitag CreateTemplate
--TenantId <string>
--body <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--TenantId | String | 是 | 租户ID。如何查询租户ID,请参见https://help.aliyun.com/document_detail/454649.html |
--body | String | 是 | 模板信息 |
示例
aliyun openitag POST /openapi/api/v1/tenants/GAR000134/templates --region cn-hangzhou --header "Content-Type=application/json" --body '{"Exif":"false","Description":"demo","ViewConfigs":{},"QuestionConfigs":[{}],"Classify":"picture","TemplateName":"demo","SharedMode":"true","RobotConfigs":["example-string"],"Tags":["TEXT"],"TemplateId":"152900048342353920"}'
CreateUser
命令描述
租户内新增成员
contentType:application/json
HTTP 方法:POST
protocol:HTTPS
requestBodyType:json
url:/openapi/api/v1/tenants/{TenantId}/users
语法
aliyun openitag CreateUser
--TenantId <string>
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--TenantId | String | 是 | 租户ID。如何获取租户ID,请参见https://help.aliyun.com/document_detail/454649.html |
--body | String | 否 | 项目 |
示例
aliyun openitag POST /openapi/api/v1/tenants/GAR000W134/users --region cn-hangzhou --header "Content-Type=application/json"
DeleteTask
命令描述
删除当前租户下的某个任务
HTTP 方法:DELETE
protocol:HTTPS
url:/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}
语法
aliyun openitag DeleteTask
--TaskId <string>
--TenantId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--TaskId | String | 是 | 任务id,可在iTAG的任务中心中获取 |
--TenantId | String | 是 | 租户id,可以通过ListTenantId租户列表查询的API来查询 |
示例
aliyun openitag DELETE /openapi/api/v1/tenants/GA000W134/tasks/150002518306500608 --region cn-hangzhou --header "Content-Type=application/json"
DeleteTemplate
命令描述
删除当前租户下的模板
HTTP 方法:DELETE
protocol:HTTPS
url:/openapi/api/v1/tenants/{TenantId}/templates/{TemplateId}
语法
aliyun openitag DeleteTemplate
--TemplateId <string>
--TenantId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--TemplateId | String | 是 | 模板id,可在iTAG的模板管理中获取 |
--TenantId | String | 是 | 租户id,可以通过ListTenantId租户列表查询的API来查询 |
示例
aliyun openitag DELETE /openapi/api/v1/tenants/GA000W134/templates/1529000348342353920 --region cn-hangzhou --header "Content-Type=application/json"
DeleteUser
命令描述
删除租户内某个成员
HTTP 方法:DELETE
protocol:HTTPS
url:/openapi/api/v1/tenants/{TenantId}/users/{UserId}
语法
aliyun openitag DeleteUser
--TenantId <string>
--UserId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--TenantId | String | 是 | 租户id,可以通过ListTenantId租户列表查询的API来查询 |
--UserId | String | 是 | 用户id |
示例
aliyun openitag DELETE /openapi/api/v1/tenants/GAR000W134/users/166000980757311 --region cn-hangzhou --header "Content-Type=application/json"
ExportAnnotations
命令描述
导出标注任务的结果数据
HTTP 方法:GET
protocol:HTTPS
url:/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}/annotations/export
语法
aliyun openitag ExportAnnotations
--OssPath <string>
[--RegisterDataset <string>]
[--Target <string>]
--TaskId <string>
--TenantId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--OssPath | String | 是 | OSS路径 |
--RegisterDataset | String | 否 | 是否注册成为PAI数据集。取值如下: |
--Target | String | 否 | 目标 |
--TaskId | String | 是 | 任务ID。如何获取任务ID,请参见https://help.aliyun.com/document_detail/454662.html |
--TenantId | String | 是 | 租户ID。如何获取租户ID,请参见https://help.aliyun.com/document_detail/454649.html |
示例
aliyun openitag GET /openapi/api/v1/tenants/GA000W134/tasks/1500002518306500608/annotations/export --region cn-hangzhou --OssPath 'oss://000-hz-oss.oss-cn-hangzhou.aliyuncs.com/output/' --header "Content-Type=application/json"
GetJob
命令描述
查询单个标注导出结果的信息
HTTP 方法:GET
protocol:HTTPS
url:/openapi/api/v1/tenants/{TenantId}/jobs/{JobId}
语法
aliyun openitag GetJob
--JobId <string>
[--JobType <string>]
--TenantId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--JobId | String | 是 | 任务id,可在iTAG的任务中心中获取 |
--JobType | String | 否 | 任务类型,暂时只开放:DOWNLOWD_MARKRESULT_FLOW |
--TenantId | String | 是 | 租户id,可以通过ListTenantId租户列表查询的API来查询 |
示例
aliyun openitag GET /openapi/api/v1/tenants/GA000W134/jobs/147000441221943296 --region cn-hangzhou --header "Content-Type=application/json"
GetSubtask
命令描述
查询单个子任务包信息
HTTP 方法:GET
protocol:HTTPS
url:/openapi/api/v1/tenants/{TenantId}/tasks/{TaskID}/subtasks/{SubtaskId}
语法
aliyun openitag GetSubtask
--SubtaskId <string>
--TaskID <string>
--TenantId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--SubtaskId | String | 是 | 子任务ID。如何获取子任务ID,请参见https://help.aliyun.com/document_detail/454675.html |
--TaskID | String | 是 | 任务ID。如何获取任务ID,请参见https://help.aliyun.com/document_detail/454662.html |
--TenantId | String | 是 | 租户ID。如何获取租户ID,请参见https://help.aliyun.com/document_detail/454649.html |
示例
aliyun openitag GET /openapi/api/v1/tenants/GA000W134/tasks/1540002518306500608/subtasks/150000502979956736 --region cn-hangzhou --header "Content-Type=application/json"
GetSubtaskItem
命令描述
查询子任务包中的单个标注数据
HTTP 方法:GET
protocol:HTTPS
url:/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}/subtasks/{SubtaskId}/items/{ItemId}
语法
aliyun openitag GetSubtaskItem
--ItemId <string>
--SubtaskId <string>
--TaskId <string>
--TenantId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ItemId | String | 是 | 数据项ID。如何获取数据项ID,请参见https://help.aliyun.com/document_detail/454677.html |
--SubtaskId | String | 是 | 子任务ID。如何获取子任务ID,请参见https://help.aliyun.com/document_detail/454675.html |
--TaskId | String | 是 | 任务ID。如何获取任务ID,请参见https://help.aliyun.com/document_detail/454662.html |
--TenantId | String | 是 | 租户ID。如何获取租户ID,请参见https://help.aliyun.com/document_detail/454649.html |
示例
aliyun openitag GET /openapi/api/v1/tenants/GA000W134/tasks/154000518306500608/subtasks/1500082502979956736/items/150002994667356160 --region cn-hangzhou --header "Content-Type=application/json"
GetTask
命令描述
查询单个标注任务信息
HTTP 方法:GET
protocol:HTTPS
url:/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}
语法
aliyun openitag GetTask
--TaskId <string>
--TenantId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--TaskId | String | 是 | 任务ID。如何查询任务ID,请参见https://help.aliyun.com/document_detail/454662.html |
--TenantId | String | 是 | 租户ID。如何查询租户ID,请参见https://help.aliyun.com/document_detail/454649.html |
示例
aliyun openitag GET /openapi/api/v1/tenants/GA000W134/tasks/150002518306500608 --region cn-hangzhou --header "Content-Type=application/json"
GetTaskStatistics
命令描述
查询任务当前的统计信息
HTTP 方法:GET
protocol:HTTPS
url:/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}/statistics
语法
aliyun openitag GetTaskStatistics
[--StatType <string>]
--TaskId <string>
--TenantId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--StatType | String | 否 | 统计类型,取值如下: |
--TaskId | String | 是 | 任务ID。如何获取任务ID,请参见https://help.aliyun.com/document_detail/454662.html |
--TenantId | String | 是 | 租户ID。如何获取租户ID,请参见https://help.aliyun.com/document_detail/454649.html |
示例
aliyun openitag GET /openapi/api/v1/tenants/GAR000134/tasks/1540002518306500608/statistics --region cn-hangzhou --header "Content-Type=application/json"
GetTaskStatus
命令描述
查询任务当前的状态
HTTP 方法:GET
protocol:HTTPS
url:/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}/status
语法
aliyun openitag GetTaskStatus
--TaskId <string>
--TenantId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--TaskId | String | 是 | 任务ID。如何获取任务ID,请参见https://help.aliyun.com/document_detail/454662.html |
--TenantId | String | 是 | 租户ID。如何获取租户ID,请参见https://help.aliyun.com/document_detail/454649.html |
示例
aliyun openitag GET /openapi/api/v1/tenants/GA000W134/tasks/154000518306500608/status --region cn-hangzhou --header "Content-Type=application/json"
GetTaskTemplate
命令描述
查询任务当前的模板信息
HTTP 方法:GET
protocol:HTTPS
url:/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}/template
语法
aliyun openitag GetTaskTemplate
--TaskId <string>
--TenantId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--TaskId | String | 是 | 任务ID。如何获取任务ID,请参见https://help.aliyun.com/document_detail/454662.html |
--TenantId | String | 是 | 租户ID。如何获取租户ID,请参见https://help.aliyun.com/document_detail/454649.html |
示例
aliyun openitag GET /openapi/api/v1/tenants/GA000W134/tasks/154000518306500608/template --region cn-hangzhou --header "Content-Type=application/json"
GetTaskTemplateQuestions
命令描述
查询任务模板题目
HTTP 方法:GET
protocol:HTTPS
url:/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}/template/questions
语法
aliyun openitag GetTaskTemplateQuestions
--TaskId <string>
--TenantId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--TaskId | String | 是 | 任务id,可在iTAG的任务中心中获取 |
--TenantId | String | 是 | 租户id,可以通过ListTenantId租户列表查询的API来查询 |
示例
aliyun openitag GET /openapi/api/v1/tenants/GA000W134/tasks/154000518306500608/template/questions --region cn-hangzhou --header "Content-Type=application/json"
GetTaskTemplateViews
命令描述
查询任务模版中的数据展示信息
HTTP 方法:GET
protocol:HTTPS
url:/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}/template/views
语法
aliyun openitag GetTaskTemplateViews
--TaskId <string>
--TenantId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--TaskId | String | 是 | 任务id,可在iTAG的任务中心中获取 |
--TenantId | String | 是 | 租户id,可以通过ListTenantId租户列表查询的API来查询 |
示例
aliyun openitag GET /openapi/api/v1/tenants/GA000W134/tasks/1540002518306500608/template/views --region cn-hangzhou --header "Content-Type=application/json"
GetTaskWorkforce
命令描述
查询任务中各个结点配置的人员信息
HTTP 方法:GET
protocol:HTTPS
url:/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}/workforce
语法
aliyun openitag GetTaskWorkforce
--TaskId <int>
--TenantId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--TaskId | Integer | 是 | 任务ID。如何获取任务ID,请参见https://help.aliyun.com/document_detail/454662.html |
--TenantId | String | 是 | 租户ID。如何获取租户ID,请参见https://help.aliyun.com/document_detail/454649.html |
示例
aliyun openitag GET /openapi/api/v1/tenants/G000W134/tasks/154000518306500608/workforce --region cn-hangzhou --header "Content-Type=application/json"
GetTaskWorkforceStatistic
命令描述
查询任务中各成员的统计数据
HTTP 方法:GET
protocol:HTTPS
url:/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}/workforce/statistic
语法
aliyun openitag GetTaskWorkforceStatistic
[--PageNumber <int>]
[--PageSize <int>]
[--StatType <string>]
--TaskId <string>
--TenantId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--PageNumber | Integer | 否 | 任务成员列表的页码。起始值为1,默认为1 |
--PageSize | Integer | 否 | 分页查询时设置的每页显示的任务成员数量,默认为20 |
--StatType | String | 否 | 统计类型,取值如下:
|
--TaskId | String | 是 | 任务ID。如何获取任务ID,请参见https://help.aliyun.com/document_detail/454662.html |
--TenantId | String | 是 | 租户ID。如何获取租户ID,请参见https://help.aliyun.com/document_detail/454649.html |
示例
aliyun openitag GET /openapi/api/v1/tenants/GA000W134/tasks/15400008306500608/workforce/statistic --region cn-hangzhou --header "Content-Type=application/json"
GetTemplate
命令描述
查询租户下的模版信息
HTTP 方法:GET
protocol:HTTPS
url:/openapi/api/v1/tenants/{TenantId}/templates/{TemplateId}
语法
aliyun openitag GetTemplate
--TemplateId <string>
--TenantId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--TemplateId | String | 是 | 模板id,可在iTAG的模板管理中获取 |
--TenantId | String | 是 | 租户id,可以通过ListTenantId租户列表查询的API来查询 |
示例
aliyun openitag GET /openapi/api/v1/tenants/GA000W134/templates/1529000348342353920 --region cn-hangzhou --header "Content-Type=application/json"
GetTemplateQuestions
命令描述
查询模版中的单选、多选等题目信息
HTTP 方法:GET
protocol:HTTPS
url:/openapi/api/v1/tenants/{TenantId}/templates/{TemplateId}/questions
语法
aliyun openitag GetTemplateQuestions
--TemplateId <string>
--TenantId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--TemplateId | String | 是 | 模板id,可在iTAG的模板管理中获取 |
--TenantId | String | 是 | 租户id,可以通过ListTenantId租户列表查询的API来查询 |
示例
aliyun openitag GET /openapi/api/v1/tenants/GA000W134/templates/1529000348342353920/questions --region cn-hangzhou --header "Content-Type=application/json"
GetTemplateView
命令描述
查询模版中图片、文本、音频等展示信息
HTTP 方法:GET
protocol:HTTPS
url:/openapi/api/v1/tenants/{TenantId}/templates/{TemplateId}/views
语法
aliyun openitag GetTemplateView
--TemplateId <string>
--TenantId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--TemplateId | String | 是 | 模板id,可在iTAG的模板管理中获取 |
--TenantId | String | 是 | 租户id,可以通过ListTenantId租户列表查询的API来查询 |
示例
aliyun openitag GET /openapi/api/v1/tenants/GA000W134/templates/1529000348342353920/views --region cn-hangzhou --header "Content-Type=application/json"
GetTenant
命令描述
查询iTAG租户的相关信息
HTTP 方法:GET
protocol:HTTPS
url:/openapi/api/v1/tenants/{TenantId}
语法
aliyun openitag GetTenant
--TenantId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--TenantId | String | 是 | 租户ID。如何获取租户ID,请参见https://help.aliyun.com/document_detail/454649.html |
示例
aliyun openitag GET /openapi/api/v1/tenants/GA000W134 --region cn-hangzhou --header "Content-Type=application/json"
GetUser
命令描述
查询租户里单个成员的详细信息
HTTP 方法:GET
protocol:HTTPS
url:/openapi/api/v1/tenants/{TenantId}/users/{UserId}
语法
aliyun openitag GetUser
--TenantId <string>
--UserId <int>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--TenantId | String | 是 | 租户ID。如何获取租户ID,请参见https://help.aliyun.com/document_detail/454649.html |
--UserId | Integer | 是 | 用户ID。如何查询用户ID,请参见https://help.aliyun.com/document_detail/454688.html |
示例
aliyun openitag GET /openapi/api/v1/tenants/GA000W134/users/1660009980757311 --region cn-hangzhou --header "Content-Type=application/json"
ListJobs
命令描述
展示所有导出的标注结果的列表
HTTP 方法:GET
protocol:HTTPS
url:/openapi/api/v1/tenants/{TenantId}/jobs
语法
aliyun openitag ListJobs
[--JobType <string>]
[--PageNumber <int>]
[--PageSize <int>]
--TenantId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--JobType | String | 否 | 任务类型,暂时只开放:DOWNLOWD_MARKRESULT_FLOW |
--PageNumber | Integer | 否 | 分页查询时设置的每页显示的标注结果数量,默认为20 |
--PageSize | Integer | 否 | 标注结果列表的页码。起始值为1,默认为1 |
--TenantId | String | 是 | 租户ID。如何获取租户ID,请参见https://help.aliyun.com/document_detail/454649.html |
示例
aliyun openitag GET /openapi/api/v1/tenants/GA000W134/jobs --region cn-hangzhou --header "Content-Type=application/json"
ListSubtaskItems
命令描述
展示单个子任务包的标注数据
HTTP 方法:GET
protocol:HTTPS
url:/openapi/api/v1/tenants/{TenantId}/tasks/{TaskID}/subtasks/{SubtaskId}/items
语法
aliyun openitag ListSubtaskItems
[--PageNumber <int>]
[--PageSize <int>]
--SubtaskId <string>
--TaskID <string>
--TenantId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--PageNumber | Integer | 否 | 任务包标注数据的页码。起始值为1,默认为1
|
--PageSize | Integer | 否 | 分页查询时设置的每页显示的任务包标注数据的数量,默认为20
|
--SubtaskId | String | 是 | 子任务ID。如何获取子任务ID,请参见https://help.aliyun.com/document_detail/454675.html |
--TaskID | String | 是 | 任务ID。如何获取任务ID,请参见https://help.aliyun.com/document_detail/454662.html |
--TenantId | String | 是 | 租户ID。如何获取租户ID,请参见https://help.aliyun.com/document_detail/454649.html |
示例
aliyun openitag GET /openapi/api/v1/tenants/GA000W134/tasks/15400018306500608/subtasks/15000002979956736/items --region cn-hangzhou --header "Content-Type=application/json"
ListSubtasks
命令描述
展示子任务包列表
HTTP 方法:GET
protocol:HTTPS
url:/openapi/api/v1/tenants/{TenantId}/tasks/{TaskID}/subtasks
语法
aliyun openitag ListSubtasks
[--PageNumber <int>]
[--PageSize <int>]
--TaskID <string>
--TenantId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--PageNumber | Integer | 否 | 子任务列表的页码。起始值为1,默认为1
|
--PageSize | Integer | 否 | 分页查询时设置的每页显示的子任务数量,默认为20 |
--TaskID | String | 是 | 如何获取任务ID,请参见https://help.aliyun.com/document_detail/454662.html |
--TenantId | String | 是 | 租户ID。如何获取租户ID,请参见https://help.aliyun.com/document_detail/454649.html |
示例
aliyun openitag GET /openapi/api/v1/tenants/GAR000134/tasks/1540002518306500608/subtasks --region cn-hangzhou --header "Content-Type=application/json"
ListTasks
命令描述
展示当前租户标注任务列表
HTTP 方法:GET
protocol:HTTPS
url:/openapi/api/v1/tenants/{TenantId}/tasks
语法
aliyun openitag ListTasks
[--PageNumber <int>]
[--PageSize <int>]
--TenantId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--PageNumber | Integer | 否 | 页码
|
--PageSize | Integer | 否 | 单页大小
|
--TenantId | String | 是 | 租户id,可以通过ListTenantId租户列表查询的API来查询 |
示例
aliyun openitag GET /openapi/api/v1/tenants/GA000W134/tasks --region cn-hangzhou --header "Content-Type=application/json"
ListTemplates
命令描述
展示当前租户的模板列表
HTTP 方法:GET
protocol:HTTPS
url:/openapi/api/v1/tenants/{TenantId}/templates
语法
aliyun openitag ListTemplates
[--PageNumber <int>]
[--PageSize <int>]
[--SearchKey <string>]
--TenantId <string>
[--Types <array>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--PageNumber | Integer | 否 | 页面标号
|
--PageSize | Integer | 否 | 页面大小
|
--SearchKey | String | 否 | 搜索内容 |
--TenantId | String | 是 | 租户id,可以通过ListTenants租户列表查询的API来查询 |
--Types | List | 否 | 应用类型列表 |
示例
aliyun openitag GET /openapi/api/v1/tenants/GAR000134/templates --region cn-hangzhou --header "Content-Type=application/json"
ListTenants
命令描述
查询阿里云账号下的iTAG租户
HTTP 方法:GET
protocol:HTTPS
url:/openapi/api/v1/tenants
语法
aliyun openitag ListTenants
[--PageNumber <int>]
[--PageSize <int>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--PageNumber | Integer | 否 | 租户列表的页码。起始值为1,默认为1 |
--PageSize | Integer | 否 | 分页查询时设置的每页显示的租户数量,默认为20 |
示例
aliyun openitag GET /openapi/api/v1/tenants --region cn-hangzhou --PageSize 20 --PageNumber 1 --header "Content-Type=application/json"
ListUsers
命令描述
展示当前租户下的全部标注成员
HTTP 方法:GET
protocol:HTTPS
url:/openapi/api/v1/tenants/{TenantId}/users
语法
aliyun openitag ListUsers
[--PageNumber <int>]
[--PageSize <int>]
--TenantId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--PageNumber | Integer | 否 | 分页查询时设置的每页显示的标注成员数量,默认为20 |
--PageSize | Integer | 否 | 标注成员列表的页码。起始值为1,默认为1 |
--TenantId | String | 是 | 租户ID。如何获取租户ID,请参见https://help.aliyun.com/document_detail/454649.html |
示例
aliyun openitag GET /openapi/api/v1/tenants/GA000W134/users --region cn-hangzhou --header "Content-Type=application/json"
RemoveWorkNodeWorkforce
命令描述
删除任务中某个工作结点(包括标注、质检或验收)的成员
contentType:application/json
HTTP 方法:PUT
protocol:HTTPS
requestBodyType:json
url:/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}/worknodes/{WorkNodeId}/workforce
语法
aliyun openitag RemoveWorkNodeWorkforce
--TaskId <string>
--TenantId <string>
--WorkNodeId <int>
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--TaskId | String | 是 | 任务ID。如何获取任务ID,请参见https://help.aliyun.com/document_detail/454662.html |
--TenantId | String | 是 | 租户ID。如何获取租户ID,请参见https://help.aliyun.com/document_detail/454649.html |
--WorkNodeId | Integer | 是 | 工作结点ID,工作流顺序,从0开始。例如标注-质检-验收中,标注是0,质检是1,验收是2
|
--body | String | 否 | 项目 |
示例
aliyun openitag PUT /openapi/api/v1/tenants/GA000W134/tasks/154000518306500608/worknodes/0/workforce --region cn-hangzhou --header "Content-Type=application/json"
UpdateTask
命令描述
修改当前租户下的任务
contentType:application/json
HTTP 方法:PUT
protocol:HTTPS
requestBodyType:json
url:/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}
语法
aliyun openitag UpdateTask
--TaskId <string>
--TenantId <string>
--body <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--TaskId | String | 是 | 任务id,可在iTAG的任务中心中获取 |
--TenantId | String | 是 | 租户id,可以通过ListTenantId租户列表查询的API来查询 |
--body | String | 是 | 任务状态 |
示例
aliyun openitag PUT /openapi/api/v1/tenants/GA000W134/tasks/15000518306500608 --region cn-hangzhou --header "Content-Type=application/json" --body '{"Exif":{"key":"example-string"},"TaskName":"demo","Tags":["TEXT"],"Remark":"demo"}'
UpdateTaskWorkforce
命令描述
更新任务成员
contentType:application/json
HTTP 方法:PUT
protocol:HTTPS
requestBodyType:json
url:/openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}/workforce
语法
aliyun openitag UpdateTaskWorkforce
--TaskId <string>
--TenantId <string>
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--TaskId | String | 是 | 如何获取任务ID,请参见https://help.aliyun.com/document_detail/454662.html |
--TenantId | String | 是 | 租户ID。如何获取租户ID,请参见https://help.aliyun.com/document_detail/454649.html |
--body | String | 否 | 项目 |
示例
aliyun openitag PUT /openapi/api/v1/tenants/G000W134/tasks/15000518306500608/workforce --region cn-hangzhou --header "Content-Type=application/json"
UpdateTemplate
命令描述
修改当前租户下的模板
contentType:application/json
HTTP 方法:PUT
protocol:HTTPS
requestBodyType:json
url:/openapi/api/v1/tenants/{TenantId}/templates/{TemplateId}
语法
aliyun openitag UpdateTemplate
--TemplateId <string>
--TenantId <string>
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--TemplateId | String | 是 | 模板id,可在iTAG的模板管理中获取 |
--TenantId | String | 是 | 租户id,可以通过ListTenantId租户列表查询的API来查询 |
--body | String | 否 | 模板 |
示例
aliyun openitag PUT /openapi/api/v1/tenants/GA000W134/templates/1520000348342353920 --region cn-hangzhou --header "Content-Type=application/json"
UpdateTenant
命令描述
修改iTAG租户的相关信息
contentType:application/json
HTTP 方法:PUT
protocol:HTTPS
requestBodyType:json
url:/openapi/api/v1/tenants/{TenantId}
语法
aliyun openitag UpdateTenant
--TenantId <string>
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--TenantId | String | 是 | 租户ID。如何查询租户ID,请参见https://help.aliyun.com/document_detail/454649.html |
--body | String | 否 | 参数 |
示例
aliyun openitag PUT /openapi/api/v1/tenants/GA000W134 --region cn-hangzhou --header "Content-Type=application/json"
UpdateUser
命令描述
更新租户内成员信息
contentType:application/json
HTTP 方法:PUT
protocol:HTTPS
requestBodyType:json
url:/openapi/api/v1/tenants/{TenantId}/users/{UserId}
语法
aliyun openitag UpdateUser
--TenantId <string>
--UserId <string>
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--TenantId | String | 是 | 租户ID。如何获取租户ID,请参见https://help.aliyun.com/document_detail/454649.html |
--UserId | String | 是 | 用户ID。如何查询用户ID,请参见https://help.aliyun.com/document_detail/454688.html |
--body | String | 否 | 请求体 |
示例
aliyun openitag PUT /openapi/api/v1/tenants/GA00W134/users/16600080757311 --region cn-hangzhou --header "Content-Type=application/json"
全局选项
以下为 CLI 通用选项,各选项的适用范围以说明为准。
选项 | 说明 |
--cli-dry-run | 使用 |
--cli-input-json | 使用 |
--cli-output | 设置宿主 CLI Help、本地错误和更新检查的输出格式(json) |
--cli-query | 使用 |
--cli-sign-version | 短横线命令的 OpenAPI 签名版本:当前仅支持 v4;设为空值可清空并恢复默认签名( |
--language | 使用 |
--output -o | 使用 |
--profile -p | 使用 |
--region | 使用 |
--version --api-version | 使用 |
--yes -y | 跳过安全策略的确认提示(用于非交互式/Agent 场景) |