模型在线服务 EAS - eas CLI 命令参考
本文列出模型在线服务 EAS - eas 在阿里云 CLI 中的可用命令,并提供各命令的语法和参数说明。
前提条件
地域与接入点
凭证配置中的默认地域可用 --region <regionId> 覆盖。
未指定接入地址时,CLI 按产品规则尝试解析,需要指定时可按地域和网络类型查看 Endpoint,再使用 --endpoint <endpoint>。
版本信息
属性 | 值 |
CLI 版本 | 3.5.4 |
API 版本 | 2021-07-01 |
可用命令
单击命令名称,查看命令描述、语法和参数说明。
服务
命令 | 说明 |
复制服务 | |
将自定义容器服务中Worker0容器提交为新镜像,并重新部署服务 | |
介绍如何创建应用服务,获取大模型推理能力 | |
创建故障注入任务 | |
创建PAI-EAS服务 | |
开通服务自动扩缩容功能,为服务创建自动扩缩控制器 | |
开通服务定时扩缩容功能 | |
调用本接口可以获取登录到容器所需的 token 以及 websocket 地址 | |
开启服务流量镜像功能,可以将一个服务接受到的请求镜像到另一个服务上 | |
创建服务更新计划 | |
删除故障注入任务 | |
删除指定的服务 | |
删除服务已有的弹性伸缩控制器,关闭自动弹性伸缩功能 | |
关闭服务定时扩缩容功能 | |
调用DeleteServiceInstances重启服务的指定实例 | |
删除已有的服务标签 | |
关闭服务流量镜像功能 | |
删除服务更新计划 | |
查看服务群组信息 | |
获取群组端点列表 | |
查询可用机器规格列表 | |
获取指定服务的详细信息 | |
查看服务的自动扩缩配置详情 | |
查看服务的定时扩缩容配置详情 | |
查看服务的诊断详情 | |
获取服务端点列表 | |
查询服务近期部署事件 | |
查看服务实例的诊断详情 | |
获取指定服务的日志信息 | |
查看指定服务的流量镜像配置详情 | |
查看服务更新计划 | |
获取服务免登录Web访问链接 | |
查询抢占式实例历史价格。关于抢占式实例,请参考高级配置:抢占型实例选择 | |
将容器服务转为开发模式,或退出开发模式 | |
列举已创建的服务群组 | |
查询服务的容器列表 | |
获取故障注入信息 | |
获取指定服务的实例列表 | |
查询服务历史版本 | |
列举服务 | |
修复服务的流量状态和权重 | |
重启服务 | |
伸缩服务 | |
启动一个已停止状态的服务 | |
停止一个运行中的服务 | |
更新应用服务 | |
更新服务组的部分字段 | |
用于服务的模型或Processor更新。如果只更新metadata.instance字段,则用于服务扩缩容功能 | |
修改服务已有的自动扩缩控制器配置 | |
更新服务定时扩缩容配置信息 | |
更新服务实例属性,目前只支持隔离服务实例 | |
新增服务标签,或更新已有的服务标签 | |
更新服务流量镜像配置 | |
更新服务发布计划 | |
更新服务安全锁,可以一定程度上避免对服务的误操作 | |
更新服务的当前版本,用于服务在历史版本的切换,可实现回滚功能 | |
更新服务版本备注信息 |
资源组
命令 | 说明 |
创建一个新的资源组 | |
在专属资源组中创建新的机器实例 | |
开通资源组SLS日志投递功能 | |
创建一个新的虚拟资源组 | |
删除一个已有的资源组,仅当资源组中无任务服务和资源实例的情况下才允许删除 | |
关闭专属资源组VPC直连功能 | |
删除资源组实例标签 | |
删除专属资源组中的机器实例,普通用户仅允许删除后付费实例 | |
关闭专属资源组SLS日志投递功能 | |
删除一个已有的虚拟资源组,仅当虚拟资源组中无服务任务的情况下才允许删除 | |
查看资源组详情 | |
查看专属资源组VPC直连配置详情 | |
查看专属资源组SLS日志投递配置详情 | |
查看虚拟资源组详情 | |
列举资源实例的服务Worker列表 | |
获取指定专属资源组中的机器实例列表 | |
列举专属资源组中已部署的服务列表 | |
获取当前用户的专属资源组列表 | |
获取当前用户的虚拟资源组列表 | |
资源组机器迁移 | |
更新专属资源组信息 | |
更新指定专属资源组的VPC直连配置 | |
更新专属资源组机器实例的调度状态 | |
更新资源组实例标签 | |
更新虚拟资源组信息 |
压测任务
命令 | 说明 |
调用CreateBenchmarkTask,创建压测任务 | |
删除指定的压测任务 | |
查看指定压测任务的详细配置信息 | |
查看指定压测任务的报告 | |
查看当前用户部署的所有压测任务 | |
启动指定的压测任务 | |
停止指定的压测任务 | |
更新指定的压测任务 |
私有网关
命令 | 说明 |
私有网关绑定自定义域名 | |
创建私有网关的访问权限,添加权限的IP段可以访问网关 | |
创建网关 | |
创建私有网关内网访问端点 | |
创建网关内网访问端点跨VPC连接 | |
删除网关的访问权限,删除的IP段不再具备访问网关的权限 | |
删除私有网关 | |
删除私有网关内网访问端点 | |
删除网关内网访问端点跨VPC连接 | |
删除网关标签 | |
查看私有网关详情 | |
私有网关解绑自定义域名 | |
查看网关访问权限的列表 | |
查询私有网关列表 | |
查询私有网关自定义域名列表 | |
查看私有网关内网访问端点列表 | |
获取网关内网访问端点跨VPC连接列表 | |
获取网关内网支持的可用区 | |
更新私有网关 | |
新增网关标签,或更新已有的网关标签 |
其他
命令 | 说明 |
用于在指定服务中创建单个动态参数 | |
创建分组 | |
用于删除指定服务下的单个动态参数 | |
删除服务分组 | |
查询制品详情 | |
查询可用的地域信息 | |
查询指定服务下的动态参数列表 | |
查看租户插件列表 | |
重置租户配置 | |
用于更新指定集群、服务下的单个动态参数的值 |
命令详情
语法逐行列出命令参数:<类型> 是需要替换的值占位符,方括号表示可选参数,# 表示列表项序号;[options] 表示 CLI 通用选项,见“全局选项”。可选对象或列表内标为必填的字段,仅在提供该对象或列表项时必填。完整参数定义见各命令的参数说明。
AttachGatewayDomain
命令描述
私有网关绑定自定义域名
HTTP 方法:PUT
protocol:HTTPS
url:/api/v2/gateways/{ClusterId}/{GatewayId}/domain/attach
语法
aliyun eas AttachGatewayDomain
--ClusterId <string>
--CustomDomain <object>
--GatewayId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 私有网关所在地域 |
--CustomDomain | Object | 是 | 自定义域名信息 |
--GatewayId | String | 是 | 私有网关ID。如何获取私有网关ID,请参见接口ListGateway (https://apiworkbench.aliyun-inc.com/document/eas/2021-07-01/ListGateway?spm=openapi-amp.newDocPublishment.0.0.765e281fL2IcjJ&Env=online)返回结果中的GatewayId字段 |
示例
aliyun eas PUT /api/v2/gateways/cn-shanghai/gw-1uhcqmsc7x22000000/domain/attach --region cn-hangzhou --CustomDomain '{"Type":"intranet","Domain":"test.com"}' --header "Content-Type=application/json"
CloneService
命令描述
复制服务
contentType:application/json
HTTP 方法:POST
protocol:HTTPS
requestBodyType:json
url:/api/v2/services/{ClusterId}/{ServiceName}/clone
语法
aliyun eas CloneService
--ClusterId <string>
[--Labels <map>]
--ServiceName <string>
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 服务所在地域 |
--Labels | Map | 否 | 复制服务对应的Label |
--ServiceName | String | 是 | 服务名。如何查看服务名称,请参见https://help.aliyun.com/document_detail/412109.html |
--body | String | 否 | 请求body。参数配置说明,请参见https://help.aliyun.com/document_detail/412086.html |
示例
aliyun eas POST /api/v2/services/cn-hangzhou/foo/clone --region cn-hangzhou --header "Content-Type=application/json"
CommitService
命令描述
将自定义容器服务中Worker0容器提交为新镜像,并重新部署服务
HTTP 方法:PUT
protocol:HTTPS
url:/api/v2/services/{ClusterId}/{ServiceName}/commit
语法
aliyun eas CommitService
[--ClusterId <string>]
[--ServiceName <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 否 | 服务所在地域ID |
--ServiceName | String | 否 | 服务名称。如何查看服务名称,请参见https://help.aliyun.com/document_detail/412109.html |
示例
aliyun eas PUT /api/v2/services/cn-beijing/foo/commit --region cn-hangzhou --header "Content-Type=application/json"
CreateAclPolicy
命令描述
创建私有网关的访问权限,添加权限的IP段可以访问网关
HTTP 方法:POST
protocol:HTTPS
url:/api/v2/gateways/{ClusterId}/{GatewayId}/acl_policy
语法
aliyun eas CreateAclPolicy
--AclPolicyList <array>
--ClusterId <string>
--GatewayId <string>
[--VpcId <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--AclPolicyList | List | 是 | 专有网络可访问IP段白名单列表 |
--ClusterId | String | 是 | 私有网关所在地域 |
--GatewayId | String | 是 | 私有网关ID。如何获取私有网关ID,请参见ListResources接口返回结果中的private_gateway_id字段 |
--VpcId | String | 否 | 专有网络的ID。如何获取专有网络ID,请参见DescribeVpcs |
示例
aliyun eas POST /api/v2/gateways/cn-wulanchabu/gw-1uhcqmsc7x22000000/acl_policy --region cn-hangzhou --AclPolicyList '[{"Entry":"10.23.XX.XX/32"}]' --header "Content-Type=application/json"
CreateAppService
命令描述
介绍如何创建应用服务,获取大模型推理能力
contentType:application/json
HTTP 方法:POST
protocol:HTTPS
requestBodyType:json
url:/api/v2/app_services
语法
aliyun eas CreateAppService
[--ClientToken <string>]
[--DryRun <bool>]
[--QuotaId <string>]
[--WorkspaceId <string>]
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClientToken | String | 否 | 用于保证请求的幂等性 |
--DryRun | Boolean | 否 | 是否只预检此次请求。 |
--QuotaId | String | 否 | 归属额度ID |
--WorkspaceId | String | 否 | 工作空间ID |
--body | String | 否 | 请求Body |
示例
aliyun eas POST /api/v2/app_services --region cn-hangzhou --header "Content-Type=application/json" --body '{"ServiceName":"foo","ServiceSpec":"llama_7b_fp16","Replicas":1,"AppType":"LLM"}'
CreateBenchmarkTask
命令描述
调用CreateBenchmarkTask,创建压测任务
contentType:application/json
HTTP 方法:POST
protocol:HTTPS
requestBodyType:json
url:/api/v2/benchmark-tasks
语法
aliyun eas CreateBenchmarkTask
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--body | String | 否 | 压测任务的配置参数 |
示例
aliyun eas POST /api/v2/benchmark-tasks --region cn-hangzhou --header "Content-Type=application/json" --body '"{\n \"base\": {\n \"duration\": 600\n },\n \"service\": {\n \"serviceName\": \"test_service\",\n \"requestToken\": \"test_token\"\n },\n \"data\": {\n \"path\": \"https://larec-benchmark-cd.oss-cn-chengdu.aliyuncs.com/youbei/sv_dbmtl/data/youbei.warmup.tf.bin\",\n \"dataType\": \"binary\"\n },\n \"optional\": {\n \"maxRt\": 100\n }\n}"'
CreateConfig
命令描述
用于在指定服务中创建单个动态参数
contentType:application/json
HTTP 方法:POST
protocol:HTTPS
requestBodyType:json
url:/api/v2/configs/{ClusterId}/{ConfigType}/{Name}/{ConfigKey}
语法
aliyun eas CreateConfig
[--ClusterId <string>]
[--ConfigKey <string>]
[--ConfigType <string>]
[--Name <string>]
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 否 | 服务所属地域(必填) |
--ConfigKey | String | 否 | 动态参数名称(必填),支持字母、数字、点、下划线、连字符、斜杠,最大长度 100 字符 |
--ConfigType | String | 否 | 配置类型(必填),目前仅支持 |
--Name | String | 否 | 服务名称(必填) |
--body | String | 否 | 动态参数值(必填) |
示例
aliyun eas POST /api/v2/configs/cn-hangzhou/service/my_llm_service/rate_limit --region cn-hangzhou --header "Content-Type=application/json" --body '{"Value":"{\"model\": \"gpt-4\"}"}'
CreateFaultInjection
命令描述
创建故障注入任务
contentType:application/json
HTTP 方法:POST
protocol:HTTPS
requestBodyType:json
url:/api/v2/services/{ClusterId}/{ServiceName}/instances/{InstanceName}/faults
语法
aliyun eas CreateFaultInjection
--ClusterId <string>
--InstanceName <string>
--ServiceName <string>
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 私有网关对应地域 |
--InstanceName | String | 是 | 服务实例的名字。如何查看实例名称,请参见https://help.aliyun.com/document_detail/412108.html |
--ServiceName | String | 是 | 服务名称。如何查看服务名称,请参见https://help.aliyun.com/document_detail/412109.html |
--body | String | 否 | 请求body。其中关键请求参数配置说明,请参见下方的表 1. 请求 Body 参数和表 2. metadata 参数。更多参数配置详情,请参见https://help.aliyun.com/document_detail/450525.html |
示例
aliyun eas POST /api/v2/services/cn-shanghai/foo/instances/foo-69xxxx4f4-5w9r9/faults --region cn-hangzhou --header "Content-Type=application/json"
CreateGateway
命令描述
创建网关
contentType:application/json
HTTP 方法:POST
protocol:HTTPS
requestBodyType:json
url:/api/v2/gateways
语法
aliyun eas CreateGateway
[--ResourceName <string>]
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ResourceName | String | 否 | 资源组名称。请参见https://help.aliyun.com/document_detail/412133.html接口返回的,ResourceType为SelfManaged的ResourceName字段 |
--body | String | 否 | 请求Body |
示例
aliyun eas POST /api/v2/gateways --region cn-hangzhou --ResourceName 'eas-r-4gt8twzwllfo******' --header "Content-Type=application/json" --body '{"EnableInternet":false,"AutoRenewal":true,"ChargeType":"PostPaid","EnableIntranet":true,"GatewayType":"ALB","InstanceType":"2c4g","Replicas":2,"Name":"mygateway1"}'
CreateGatewayIntranetLinkedVpc
命令描述
创建私有网关内网访问端点
HTTP 方法:POST
protocol:HTTPS
url:/api/v2/gateways/{ClusterId}/{GatewayId}/intranet_endpoint_linked_vpc
语法
aliyun eas CreateGatewayIntranetLinkedVpc
[--AccountId <string>]
--ClusterId <string>
[--EnableAuthoritativeDns <bool>]
--GatewayId <string>
[--VSwitchId <string>]
[--VpcId <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--AccountId | String | 否 | Vpc所属阿里云账号ID |
--ClusterId | String | 是 | 私有网关对应地域 |
--EnableAuthoritativeDns | Boolean | 否 | 是否开启权威DNS解析(默认值为false) |
--GatewayId | String | 是 | 私有网关ID。如何获取私有网关ID,请参见https://help.aliyun.com/document_detail/412133.html接口返回结果中的private_gateway_id字段 |
--VSwitchId | String | 否 | 虚拟交换机ID。如何获取虚拟交换机ID,请参见https://help.aliyun.com/document_detail/448581.html |
--VpcId | String | 否 | 专有网络的ID。如何获取专有网络ID,请参见https://help.aliyun.com/document_detail/448581.html |
示例
aliyun eas POST /api/v2/gateways/cn-wulanchabu/gw-1uhcqmsc7x22000000/intranet_endpoint_linked_vpc --region cn-hangzhou --header "Content-Type=application/json"
CreateGatewayIntranetLinkedVpcPeer
命令描述
创建网关内网访问端点跨VPC连接
HTTP 方法:POST
protocol:HTTPS
url:/api/v2/gateways/{ClusterId}/{GatewayId}/intranet_endpoint_linked_vpc_peer
语法
aliyun eas CreateGatewayIntranetLinkedVpcPeer
[--ClusterId <string>]
[--GatewayId <string>]
[--PeerVpcs <string>]
[--VpcId <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 否 | 私有网关对应地域 |
--GatewayId | String | 否 | 私有网关ID。如何获取私有网关ID,请参见https://help.aliyun.com/document_detail/2841911.html |
--PeerVpcs | String | 否 | 对等VPC列表 |
--VpcId | String | 否 | 专有网络的ID。如何获取专有网络ID,请参见https://help.aliyun.com/document_detail/2621223.html |
示例
aliyun eas POST /api/v2/gateways/cn-wulanchabu/gw-1uhcqmsc7x22000000/intranet_endpoint_linked_vpc_peer --region cn-hangzhou --PeerVpcs '[{"VpcId":"vpc-uf66uio7md****","Region":"cn-shanghai"}]' --VpcId 'vpc-2zetuli9ws0qgjd******' --header "Content-Type=application/json"
CreateGroup
命令描述
创建分组
contentType:application/json
HTTP 方法:POST
protocol:HTTPS
requestBodyType:json
url:/api/v2/groups
语法
aliyun eas CreateGroup
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--body | String | 否 | 请求Body |
示例
aliyun eas POST /api/v2/groups --region cn-hangzhou --header "Content-Type=application/json" --body '{"WorkSpaceId":"12xx34","Network":{"VpcId":"vpc-bp1xxxxxx0qrykjr9b","VSwitchId":"vsw-bp1xxxxxxwmssgq28gye8","SecurityGroupId":"sg-584xxxxxx7h08llvoww5tv5gl","GatewayId":"gw-248xxxxxxvlkhtbrda"},"Labels":{"key1":"value1","key2":"{\"key1\":\"value1\",\"key2\":null}\n"},"Name":"foo"}'
CreateResource
命令描述
创建一个新的资源组
contentType:application/json
HTTP 方法:POST
protocol:HTTPS
requestBodyType:json
url:/api/v2/resources
语法
aliyun eas CreateResource
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--body | String | 否 | 请求Body |
示例
aliyun eas POST /api/v2/resources --region cn-hangzhou --header "Content-Type=application/json" --body '{"AutoRenewal":false,"SystemDiskSize":200,"ChargeType":"PostPaid","Zone":"cn-shanghai-f","ResourceName":"MyResource","SelfManagedResourceOptions":{"RoleName":"clusterrole","NodeTolerations":[{"effect":"NoSchedule","value":"value1","key":"key1","operator":"Equal"}],"NodeMatchLabels":{"key":"\"key1\": \"value1\""},"ExternalClusterId":"cf0386f250f2545689ca7fdd1cd******"},"UsageMode":"inference","ResourceType":"Dedicated","Labels":{"key":"value"},"EcsInstanceType":"ecs.c6.8xlarge","EcsInstanceCount":5}'
CreateResourceInstances
命令描述
在专属资源组中创建新的机器实例
contentType:application/json
HTTP 方法:POST
protocol:HTTPS
requestBodyType:json
url:/api/v2/resources/{ClusterId}/{ResourceId}/instances
语法
aliyun eas CreateResourceInstances
--ClusterId <string>
--ResourceId <string>
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 资源组所在的集群ID |
--ResourceId | String | 是 | 资源组ID,如何查询资源组ID,请参见https://help.aliyun.com/document_detail/412133.html |
--body | String | 否 | 请求Body |
示例
aliyun eas POST /api/v2/resources/cn-shanghai/eas-r-asdasdasd/instances --region cn-hangzhou --header "Content-Type=application/json" --body '{"ChargeType":"PrePaid","EcsInstanceType":"ecs.s6-c1m2.xlarge","EcsInstanceCount":5}'
CreateResourceLog
命令描述
开通资源组SLS日志投递功能
contentType:application/json
HTTP 方法:POST
protocol:HTTPS
requestBodyType:json
url:/api/v2/resources/{ClusterId}/{ResourceId}/log
语法
aliyun eas CreateResourceLog
--ClusterId <string>
--ResourceId <string>
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 资源组所在的地域ID。例如华东2(上海)为cn-shanghai |
--ResourceId | String | 是 | 资源组的ID。如何查询资源组ID,请参见https://help.aliyun.com/document_detail/412133.html |
--body | String | 否 | 请求 Body。此参数实际为必填项,省略时服务端无法解析请求内容;其中 ProjectName 和 LogStore 均为必填字段 |
示例
aliyun eas POST /api/v2/resources/cn-shanghai/eas-r-asdasdasd0000/log --region cn-hangzhou --header "Content-Type=application/json" --body '{"ProjectName":"eas-r-asdasdasd-sls","LogStore":"access_log"}'
CreateService
命令描述
创建PAI-EAS服务
contentType:application/json
HTTP 方法:POST
protocol:HTTPS
requestBodyType:json
url:/api/v2/services
语法
aliyun eas CreateService
[--ClientToken <string>]
[--Develop <string>]
[--DryRun <bool>]
[--Labels <map>]
[--WorkspaceId <string>]
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClientToken | String | 否 | 用于保证请求的幂等性 |
--Develop | String | 否 | 是否进入开发模式
|
--DryRun | Boolean | 否 | 是否只预检此次请求。 |
--Labels | Map | 否 | 用户自定义标签 |
--WorkspaceId | String | 否 | 工作空间ID |
--body | String | 否 | 请求body。其中关键请求参数配置说明,请参见下方的表 1. 请求 Body 参数和表 2. metadata 参数。更多参数配置详情,请参见https://help.aliyun.com/document_detail/450525.html |
示例
aliyun eas POST /api/v2/services --region cn-hangzhou --Develop true --WorkspaceId 123456 --DryRun false --Labels '{"key":"value"}' --ClientToken '5db780a0-9d3e-4f35-a84a-xxxxx' --header "Content-Type=application/json" --body '"镜像部署服务:\n{\n \"name\": \"foo\",\n \"metadata\": {\n \"instance\": 2,\n \"memory\": 7000,\n \"cpu\": 4\n },\n \"containers\": [\n {\n \"image\": \"****\",\n \"script\": \"**** --listen=0.0.0.0 --server_port=8000 --headless\",\n \"port\": 8000\n }\n ],\n \"storage\": [\n {\n \"oss\": {\n \"path\": \"oss://examplebuket/data111/\",\n \"readOnly\": false\n },\n \"properties\": {\n \"resource_type\": \"model\"\n },\n \"mount_path\": \"/data\"\n }\n ]\n}\n镜像部署AI-Web应用:\n{\n \"name\": \"foo\",\n \"metadata\": {\n \"instance\": 1,\n \"memory\": 7000,\n \"cpu\": 4,\n \"enable_webservice\": true\n },\n \"containers\": [\n {\n \"image\": \"****\",\n \"script\": \"**** --listen=0.0.0.0 --server_port=8000 --headless\",\n \"port\": 8000\n }\n ],\n \"storage\": [\n {\n \"oss\": {\n \"path\": \"oss://examplebucket/data111/\",\n \"readOnly\": false\n },\n \"properties\": {\n \"resource_type\": \"model\"\n },\n \"mount_path\": \"/data\"\n }\n ]\n}\n模型+processor部署服务:\n{\n \"metadata\": {\n \"instance\": 1,\n \"memory\": 7000,\n \"cpu\": 4\n },\n \"name\": \"foo\",\n \"model_config\": {},\n \"processor_type\": \"python\",\n \"processor_path\": \"oss://****\",\n \"processor_entry\": \"a.py\",\n \"model_path\": \"oss://****\"\n}"'
CreateServiceAutoScaler
命令描述
开通服务自动扩缩容功能,为服务创建自动扩缩控制器
contentType:application/json
HTTP 方法:POST
protocol:HTTPS
requestBodyType:json
url:/api/v2/services/{ClusterId}/{ServiceName}/autoscaler
语法
aliyun eas CreateServiceAutoScaler
--ClusterId <string>
--ServiceName <string>
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 服务所在地域 |
--ServiceName | String | 是 | 服务名称。如何查看服务名称,请参见https://help.aliyun.com/document_detail/412109.html |
--body | String | 否 | 请求Body |
示例
aliyun eas POST /api/v2/services/cn-shanghai/foo/autoscaler --region cn-hangzhou --header "Content-Type=application/json" --body '{"min":2,"max":8,"scaleStrategies":[{"metricName":"qps","threshold":10.0}]}'
CreateServiceCronScaler
命令描述
开通服务定时扩缩容功能
contentType:application/json
HTTP 方法:POST
protocol:HTTPS
requestBodyType:json
url:/api/v2/services/{ClusterId}/{ServiceName}/cronscaler
语法
aliyun eas CreateServiceCronScaler
--ClusterId <string>
--ServiceName <string>
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 服务所在地域 |
--ServiceName | String | 是 | 服务名称。如何查看服务名称,请参见https://help.aliyun.com/document_detail/412109.html |
--body | String | 否 | 请求Body |
示例
aliyun eas POST /api/v2/services/cn-shanghai/foo/cronscaler --region cn-hangzhou --header "Content-Type=application/json" --body '{"ScaleJobs":[{"TargetSize":1,"Schedule":"0 18 * * * *"}]}'
CreateServiceInstanceToken
命令描述
调用本接口可以获取登录到容器所需的 token 以及 websocket 地址
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/services/{ClusterId}/{ServiceName}/instances/{InstanceName}/token
语法
aliyun eas CreateServiceInstanceToken
[--ActionType <string>]
--ClusterId <string>
--InstanceName <string>
--ServiceName <string>
[--WorkerName <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ActionType | String | 否 | 需要获取的链接类型。取值:
|
--ClusterId | String | 是 | 区域ID |
--InstanceName | String | 是 | 服务实例的名字 |
--ServiceName | String | 是 | 服务名字 |
--WorkerName | String | 否 | 服务worker的名称。您可以调用ListServiceContainers接口获取worker名称 |
示例
aliyun eas GET /api/v2/services/cn-shanghai/deepseekv3_3/instances/deepseekv3-3-7b56869574-44nq9/token --region cn-hangzhou --header "Content-Type=application/json"
CreateServiceMirror
命令描述
开启服务流量镜像功能,可以将一个服务接受到的请求镜像到另一个服务上
contentType:application/json
HTTP 方法:POST
protocol:HTTPS
requestBodyType:json
url:/api/v2/services/{ClusterId}/{ServiceName}/mirror
语法
aliyun eas CreateServiceMirror
--ClusterId <string>
--ServiceName <string>
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 服务所在地域。例如华东2(上海)为cn-shanghai |
--ServiceName | String | 是 | 服务名称。如何查看服务名称,请参见https://help.aliyun.com/document_detail/412109.html |
--body | String | 否 | 请求Body |
示例
aliyun eas POST /api/v2/services/cn-shanghai/foo/mirror --region cn-hangzhou --header "Content-Type=application/json"
CreateServiceRollout
命令描述
创建服务更新计划
contentType:application/json
HTTP 方法:POST
protocol:HTTPS
requestBodyType:json
url:/api/v2/services/{ClusterId}/{ServiceName}/rollout
语法
aliyun eas CreateServiceRollout
--ClusterId <string>
--ServiceName <string>
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 地域ID。服务所在的地域标识,可通过ListServices接口获取可用地域列表 |
--ServiceName | String | 是 | 服务名称。要创建发布策略的服务名称,服务名称在同一地域内必须唯一。可通过DescribeService接口获取服务详情 |
--body | String | 否 | 请求Body |
示例
aliyun eas POST /api/v2/services/cn-shanghai/my-service/rollout --region cn-hangzhou --header "Content-Type=application/json"
CreateVirtualResource
命令描述
创建一个新的虚拟资源组
contentType:application/json
HTTP 方法:POST
protocol:HTTPS
requestBodyType:json
url:/api/v2/virtualresources
语法
aliyun eas CreateVirtualResource
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--body | String | 否 | 请求Body |
示例
aliyun eas POST /api/v2/virtualresources --region cn-hangzhou --header "Content-Type=application/json" --body '{"VirtualResourceName":"MyVirtualResource","DisableSpotProtectionPeriod":true,"Resources":[{"QuotaId":"quota185lqxxxxxx","ResourceId":"eas-r-g55ieatgg3buxxxxxx","Priority":6,"Region":"cn-hangzhou","SpotPriceLimit":10.05,"InstanceType":"ecs.s6-c1m2.xlarge\n"}]}'
DeleteAclPolicy
命令描述
删除网关的访问权限,删除的IP段不再具备访问网关的权限
HTTP 方法:DELETE
protocol:HTTPS
url:/api/v2/gateways/{ClusterId}/{GatewayId}/acl_policy
语法
aliyun eas DeleteAclPolicy
[--AclPolicyList <array>]
--ClusterId <string>
--GatewayId <string>
[--VpcId <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--AclPolicyList | List | 否 | 专有网络可访问 IP 段白名单列表。此参数实际为必填项,未提供时会返回 InvalidParameter(AclPolicyList must be set) |
--ClusterId | String | 是 | 私有网关所在地域 |
--GatewayId | String | 是 | 私有网关ID。本接口仅支持 FullyManaged(非 ALB 后端)类型网关;ALB 后端网关调用时会返回 InvalidParameter。可通过 ListGateway 筛选 GatewayType=FullyManaged 的网关 |
--VpcId | String | 否 | 专有网络的ID。如何获取专有网络ID,请参见DescribeVpcs |
示例
aliyun eas DELETE /api/v2/gateways/cn-wulanchabu/gw-1uhcqmsc7x22000000/acl_policy --region cn-hangzhou --header "Content-Type=application/json"
DeleteBenchmarkTask
命令描述
删除指定的压测任务
HTTP 方法:DELETE
protocol:HTTPS
url:/api/v2/benchmark-tasks/{ClusterId}/{TaskName}
语法
aliyun eas DeleteBenchmarkTask
--ClusterId <string>
--TaskName <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 压测任务所在区域 |
--TaskName | String | 是 | 压测任务名称。如何获取压测任务名称,请参见https://help.aliyun.com/document_detail/432976.html |
示例
aliyun eas DELETE /api/v2/benchmark-tasks/cn-shanghai/benchmark-larec-test-2b11 --region cn-hangzhou --header "Content-Type=application/json"
DeleteConfig
命令描述
用于删除指定服务下的单个动态参数
HTTP 方法:DELETE
protocol:HTTPS
url:/api/v2/configs/{ClusterId}/{ConfigType}/{Name}/{ConfigKey}
语法
aliyun eas DeleteConfig
[--ClusterId <string>]
[--ConfigKey <string>]
[--ConfigType <string>]
[--Name <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 否 | 集群/地域 ID |
--ConfigKey | String | 否 | 要删除的配置项名称 |
--ConfigType | String | 否 | 配置类型,目前仅支持 |
--Name | String | 否 | 服务名称 |
示例
aliyun eas DELETE /api/v2/configs/cn-hangzhou/service/my-llm-service/rate_limit --region cn-hangzhou --header "Content-Type=application/json"
DeleteFaultInjection
命令描述
删除故障注入任务
HTTP 方法:DELETE
protocol:HTTPS
url:/api/v2/services/{ClusterId}/{ServiceName}/instances/{InstanceName}/faults/{FaultType}
语法
aliyun eas DeleteFaultInjection
[--ClusterId <string>]
[--FaultType <string>]
[--InstanceName <string>]
[--ServiceName <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 否 | 私有网关对应地域 |
--FaultType | String | 否 | 设备故障:1. CPU满载故障;2.内存负载故障;3.网络故障;4.磁盘读写挂账; 5.磁盘填充故障; |
--InstanceName | String | 否 | 服务实例的名字。如何查看实例名称,请参见https://help.aliyun.com/document_detail/412108.html |
--ServiceName | String | 否 | 服务名称。如何查看服务名称,请参见https://help.aliyun.com/document_detail/412109.html |
示例
aliyun eas DELETE /api/v2/services/cn-shanghai/foo/instances/echo-da290ac8-7fckm/faults/CpuFullloadTask --region cn-hangzhou --header "Content-Type=application/json"
DeleteGateway
命令描述
删除私有网关
HTTP 方法:DELETE
protocol:HTTPS
url:/api/v2/gateways/{ClusterId}/{GatewayId}
语法
aliyun eas DeleteGateway
--ClusterId <string>
--GatewayId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 私有网关所在地域 |
--GatewayId | String | 是 | 私有网关ID。如何获取私有网关ID,请参见https://help.aliyun.com/document_detail/412133.html接口返回结果中的private_gateway_id字段 |
示例
aliyun eas DELETE /api/v2/gateways/cn-wulanchabu/gw-1uhcqmsc7x22000000 --region cn-hangzhou --header "Content-Type=application/json"
DeleteGatewayIntranetLinkedVpc
命令描述
删除私有网关内网访问端点
HTTP 方法:DELETE
protocol:HTTPS
url:/api/v2/gateways/{ClusterId}/{GatewayId}/intranet_endpoint_linked_vpc
语法
aliyun eas DeleteGatewayIntranetLinkedVpc
--ClusterId <string>
--GatewayId <string>
[--VSwitchId <string>]
[--VpcId <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 私有网关所在地域 |
--GatewayId | String | 是 | 私有网关ID。如何获取私有网关ID,请参见https://help.aliyun.com/document_detail/412133.html接口返回结果中的private_gateway_id字段 |
--VSwitchId | String | 否 | 虚拟交换机ID。如何获取虚拟交换机ID,请参见https://help.aliyun.com/document_detail/448581.html |
--VpcId | String | 否 | 专有网络的ID。如何获取专有网络ID,请参见https://help.aliyun.com/document_detail/448581.html |
示例
aliyun eas DELETE /api/v2/gateways/cn-wulanchabu/gw-1uhcqmsc7x22000000/intranet_endpoint_linked_vpc --region cn-hangzhou --header "Content-Type=application/json"
DeleteGatewayIntranetLinkedVpcPeer
命令描述
删除网关内网访问端点跨VPC连接
HTTP 方法:DELETE
protocol:HTTPS
url:/api/v2/gateways/{ClusterId}/{GatewayId}/intranet_endpoint_linked_vpc_peer
语法
aliyun eas DeleteGatewayIntranetLinkedVpcPeer
[--ClusterId <string>]
[--GatewayId <string>]
[--PeerVpcs <string>]
[--VpcId <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 否 | 私有网关所在地域 |
--GatewayId | String | 否 | 私有网关ID。如何获取私有网关ID,请参见https://help.aliyun.com/document_detail/2841911.html |
--PeerVpcs | String | 否 | 对等专有网络 |
--VpcId | String | 否 | 绑定的专有网络ID。如何查询,请参见https://help.aliyun.com/document_detail/2621223.html |
示例
aliyun eas DELETE /api/v2/gateways/cn-wulanchabu/gw-1uhcqmsc7x22000000/intranet_endpoint_linked_vpc_peer --region cn-hangzhou --PeerVpcs '[{"VpcId":"vpc-uf66uio7md****","Region":"cn-shanghai"}]' --VpcId 'vpc-2zetuli9ws0qgjd******' --header "Content-Type=application/json"
DeleteGatewayLabel
命令描述
删除网关标签
HTTP 方法:DELETE
protocol:HTTPS
url:/api/v2/gateways/{ClusterId}/{GatewayId}/label
语法
aliyun eas DeleteGatewayLabel
--ClusterId <string>
--GatewayId <string>
--LabelKeys <array>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 网关所在区域 |
--GatewayId | String | 是 | 网关Id |
--LabelKeys | List | 是 | 要删除的网关标签 |
示例
aliyun eas DELETE /api/v2/gateways/cn-hangzhou/gw-1uhcqmsc7x22000000/label --region cn-hangzhou --LabelKeys '["key1"]' --header "Content-Type=application/json"
DeleteGroup
命令描述
删除服务分组
HTTP 方法:DELETE
protocol:HTTPS
url:/api/v2/groups/{ClusterId}/{GroupName}
语法
aliyun eas DeleteGroup
[--CascadeDelete <string>]
[--ClusterId <string>]
[--GroupName <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--CascadeDelete | String | 否 | 是否级联删除。开启后删除服务组会自动删除服务组下的所有服务。默认不开启 |
--ClusterId | String | 否 | 所属所在地域ID |
--GroupName | String | 否 | 服务群组名称 |
示例
aliyun eas DELETE /api/v2/groups/cn-shanghai/foo --region cn-hangzhou --CascadeDelete false --header "Content-Type=application/json"
DeleteResource
命令描述
删除一个已有的资源组,仅当资源组中无任务服务和资源实例的情况下才允许删除
HTTP 方法:DELETE
protocol:HTTPS
url:/api/v2/resources/{ClusterId}/{ResourceId}
语法
aliyun eas DeleteResource
--ClusterId <string>
--ResourceId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 资源组所在的地域ID。例如华东2(上海)为cn-shanghai |
--ResourceId | String | 是 | 资源组的ID。如何查询资源组ID,请参见https://help.aliyun.com/document_detail/412133.html |
示例
aliyun eas DELETE /api/v2/resources/cn-shanghai/eas-r-asdasdasd0000 --region cn-hangzhou --header "Content-Type=application/json"
DeleteResourceDLink
命令描述
关闭专属资源组VPC直连功能
HTTP 方法:DELETE
protocol:HTTPS
url:/api/v2/resources/{ClusterId}/{ResourceId}/dlink
语法
aliyun eas DeleteResourceDLink
--ClusterId <string>
--ResourceId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 资源组所在的地域ID。例如华东2(上海)为cn-shanghai |
--ResourceId | String | 是 | 资源组的ID。如何查询资源组ID,请参见https://help.aliyun.com/document_detail/412133.html |
示例
aliyun eas DELETE /api/v2/resources/cn-shanghai/eas-r-asdasdasd0000/dlink --region cn-hangzhou --header "Content-Type=application/json"
DeleteResourceInstanceLabel
命令描述
删除资源组实例标签
HTTP 方法:DELETE
protocol:HTTPS
url:/api/v2/resources/{ClusterId}/{ResourceId}/label
语法
aliyun eas DeleteResourceInstanceLabel
[--AllInstances <bool>]
--ClusterId <string>
[--InstanceIds <array>]
[--Keys <array>]
[--LabelKeys <array>]
--ResourceId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--AllInstances | Boolean | 否 | 是否对资源组下所有实例生效。如果为 true,则 InstanceIds 参数不生效 |
--ClusterId | String | 是 | 资源组所在的地域ID |
--InstanceIds | List | 否 | 机器实例ID |
--Keys | List | 否 | 要删除的标签。(废弃,请使用 LabelKeys) |
--LabelKeys | List | 否 | 要删除的标签 |
--ResourceId | String | 是 | 资源组的ID。如何查询资源组ID,请参见https://help.aliyun.com/document_detail/412133.html |
示例
aliyun eas DELETE /api/v2/resources/cn-shanghai/eas-r-h7lcw24dyqztwxxxxxx/label --region cn-hangzhou --header "Content-Type=application/json"
DeleteResourceInstances
命令描述
删除专属资源组中的机器实例,普通用户仅允许删除后付费实例
HTTP 方法:DELETE
protocol:HTTPS
url:/api/v2/resources/{ClusterId}/{ResourceId}/instances
语法
aliyun eas DeleteResourceInstances
[--AllFailed <bool>]
--ClusterId <string>
[--InstanceList <string>]
--ResourceId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--AllFailed | Boolean | 否 | 是否删除全部创建失败实例。 |
--ClusterId | String | 是 | 资源组所在的地域ID |
--InstanceList | String | 否 | 实例列表,多个实例之间以半角逗号(,)分割。例如: |
--ResourceId | String | 是 | 资源组的ID。如何查询资源组ID,请参见https://help.aliyun.com/document_detail/412133.html |
示例
aliyun eas DELETE /api/v2/resources/cn-shanghai/eas-r-asdasdasd0000/instances --region cn-hangzhou --header "Content-Type=application/json"
DeleteResourceLog
命令描述
关闭专属资源组SLS日志投递功能
HTTP 方法:DELETE
protocol:HTTPS
url:/api/v2/resources/{ClusterId}/{ResourceId}/log
语法
aliyun eas DeleteResourceLog
--ClusterId <string>
--ResourceId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 资源组所在的地域ID |
--ResourceId | String | 是 | 资源组ID。调用前请确保该资源组已开启日志投递;可通过 DescribeResourceLog 查询日志状态,Status 为 Ready 表示已开启。如何查询资源组ID,请参见https://help.aliyun.com/document_detail/412133.html |
示例
aliyun eas DELETE /api/v2/resources/cn-shanghai/eas-r-asdas0000/log --region cn-hangzhou --header "Content-Type=application/json"
DeleteService
命令描述
删除指定的服务
HTTP 方法:DELETE
protocol:HTTPS
url:/api/v2/services/{ClusterId}/{ServiceName}
语法
aliyun eas DeleteService
[--ClientToken <string>]
--ClusterId <string>
[--DryRun <bool>]
--ServiceName <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClientToken | String | 否 | 用于保证请求的幂等性 |
--ClusterId | String | 是 | 服务所在区域。例如华东2(上海)为cn-shanghai |
--DryRun | Boolean | 否 | 是否只预检此次请求。 |
--ServiceName | String | 是 | 服务名称。如何查看服务名称,请参见https://help.aliyun.com/document_detail/412109.html |
示例
aliyun eas DELETE /api/v2/services/cn-shanghai/foo --region cn-hangzhou --header "Content-Type=application/json"
DeleteServiceAutoScaler
命令描述
删除服务已有的弹性伸缩控制器,关闭自动弹性伸缩功能
HTTP 方法:DELETE
protocol:HTTPS
url:/api/v2/services/{ClusterId}/{ServiceName}/autoscaler
语法
aliyun eas DeleteServiceAutoScaler
--ClusterId <string>
--ServiceName <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 服务所在地域ID |
--ServiceName | String | 是 | 服务名称。如何查看服务名称,请参见https://help.aliyun.com/document_detail/412109.html |
示例
aliyun eas DELETE /api/v2/services/cn-shanghai/foo/autoscaler --region cn-hangzhou --header "Content-Type=application/json"
DeleteServiceCronScaler
命令描述
关闭服务定时扩缩容功能
HTTP 方法:DELETE
protocol:HTTPS
url:/api/v2/services/{ClusterId}/{ServiceName}/cronscaler
语法
aliyun eas DeleteServiceCronScaler
--ClusterId <string>
--ServiceName <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 服务所在地域 |
--ServiceName | String | 是 | 服务名称。如何查看服务名称,请参见https://help.aliyun.com/document_detail/412109.html |
示例
aliyun eas DELETE /api/v2/services/cn-shanghai/foo/cronscaler --region cn-hangzhou --header "Content-Type=application/json"
DeleteServiceInstances
命令描述
调用DeleteServiceInstances重启服务的指定实例
HTTP 方法:DELETE
protocol:HTTPS
url:/api/v2/services/{ClusterId}/{ServiceName}/instances
语法
aliyun eas DeleteServiceInstances
--ClusterId <string>
[--Container <string>]
[--InstanceList <string>]
[--IsReplica <bool>]
--ServiceName <string>
[--SoftRestart <bool>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 服务所在区域 |
--Container | String | 否 | 需要重启进程的容器名称。只有在SoftRestart参数为true,该参数才会生效 |
--InstanceList | String | 否 | 重启的实例列表,多个实例名称之间使用半角逗号(,)分隔。如何查看实例名称,请参见https://help.aliyun.com/document_detail/412108.html |
--IsReplica | Boolean | 否 | 当前实例是否为实例单元 |
--ServiceName | String | 是 | 服务名称。如何查看服务名称,请参见https://help.aliyun.com/document_detail/412109.html |
--SoftRestart | Boolean | 否 | 是否只重启容器进程,不重建实例。默认为false |
示例
aliyun eas DELETE /api/v2/services/cn-shanghai/foo/instances --region cn-hangzhou --header "Content-Type=application/json"
DeleteServiceLabel
命令描述
删除已有的服务标签
HTTP 方法:DELETE
protocol:HTTPS
url:/api/v2/services/{ClusterId}/{ServiceName}/label
语法
aliyun eas DeleteServiceLabel
--ClusterId <string>
[--Keys <array>]
[--LabelKeys <array>]
--ServiceName <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 服务所在区域 |
--Keys | List | 否 | 要删除的服务标签。(废弃,请使用 LabelKeys) |
--LabelKeys | List | 否 | 要删除的服务标签 |
--ServiceName | String | 是 | 服务名称。如何查看服务名称,请参见https://help.aliyun.com/document_detail/412109.html |
示例
aliyun eas DELETE /api/v2/services/cn-shanghai/foo/label --region cn-hangzhou --header "Content-Type=application/json"
DeleteServiceMirror
命令描述
关闭服务流量镜像功能
HTTP 方法:DELETE
protocol:HTTPS
url:/api/v2/services/{ClusterId}/{ServiceName}/mirror
语法
aliyun eas DeleteServiceMirror
--ClusterId <string>
--ServiceName <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 服务所在区域 |
--ServiceName | String | 是 | 服务名称。如何获取服务名称,请参见https://help.aliyun.com/document_detail/412109.html |
示例
aliyun eas DELETE /api/v2/services/cn-shanghai/foo/mirror --region cn-hangzhou --header "Content-Type=application/json"
DeleteServiceRollout
命令描述
删除服务更新计划
HTTP 方法:DELETE
protocol:HTTPS
url:/api/v2/services/{ClusterId}/{ServiceName}/rollout
语法
aliyun eas DeleteServiceRollout
--ClusterId <string>
--ServiceName <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | ClusterId |
--ServiceName | String | 是 | ServiceName |
示例
aliyun eas DELETE /api/v2/services/cn-shanghai/my-service/rollout --region cn-hangzhou --header "Content-Type=application/json"
DeleteVirtualResource
命令描述
删除一个已有的虚拟资源组,仅当虚拟资源组中无服务任务的情况下才允许删除
HTTP 方法:DELETE
protocol:HTTPS
url:/api/v2/virtualresources/{ClusterId}/{VirtualResourceId}
语法
aliyun eas DeleteVirtualResource
--ClusterId <string>
--VirtualResourceId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 虚拟资源组所在的地域 |
--VirtualResourceId | String | 是 | 虚拟资源组ID |
示例
aliyun eas DELETE /api/v2/virtualresources/cn-shanghai/eas-vr-npovr28onap1xxxxxx --region cn-hangzhou --header "Content-Type=application/json"
DescribeArtifact
命令描述
查询制品详情
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/artifacts/{ClusterId}/{ArtifactName}
语法
aliyun eas DescribeArtifact
--ArtifactName <string>
--ClusterId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ArtifactName | String | 是 | 制品名字 |
--ClusterId | String | 是 | 区域ID |
示例
aliyun eas GET /api/v2/artifacts/cn-shanghai/foo --region cn-hangzhou --header "Content-Type=application/json"
DescribeBenchmarkTask
命令描述
查看指定压测任务的详细配置信息
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/benchmark-tasks/{ClusterId}/{TaskName}
语法
aliyun eas DescribeBenchmarkTask
--ClusterId <string>
--TaskName <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 压测任务所在区域 |
--TaskName | String | 是 | 压测任务名称。如何获取压测任务名称,请参见https://help.aliyun.com/document_detail/432976.html |
示例
aliyun eas GET /api/v2/benchmark-tasks/cn-shanghai/benchmark-larec-test-eac4 --region cn-hangzhou --header "Content-Type=application/json"
DescribeBenchmarkTaskReport
命令描述
查看指定压测任务的报告
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/benchmark-tasks/{ClusterId}/{TaskName}/report
语法
aliyun eas DescribeBenchmarkTaskReport
--ClusterId <string>
[--ReportType <string>]
--TaskName <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 压测任务所在地域ID |
--ReportType | String | 否 | 报告类型,支持配置RAW和Report |
--TaskName | String | 是 | 压测任务名称。如何获取压测任务名称,请参见https://help.aliyun.com/document_detail/432976.html |
示例
aliyun eas GET /api/v2/benchmark-tasks/cn-shanghai/benchmark-larec-test-015d/report --region cn-hangzhou --header "Content-Type=application/json"
DescribeGateway
命令描述
查看私有网关详情
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/gateways/{ClusterId}/{GatewayId}
语法
aliyun eas DescribeGateway
--ClusterId <string>
--GatewayId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 私有网关所在地域 |
--GatewayId | String | 是 | 私有网关ID。如何获取私有网关ID,请参见https://help.aliyun.com/document_detail/412133.html接口返回结果中的private_gateway_id字段 |
示例
aliyun eas GET /api/v2/gateways/cn-wulanchabu/gw-1uhcqmsc7x22000000 --region cn-hangzhou --header "Content-Type=application/json"
DescribeGroup
命令描述
查看服务群组信息
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/groups/{ClusterId}/{GroupName}
语法
aliyun eas DescribeGroup
--ClusterId <string>
--GroupName <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 所属所在地域ID |
--GroupName | String | 是 | 服务群组名称。如何获取群组名称,请参见https://help.aliyun.com/document_detail/412109.html |
示例
aliyun eas GET /api/v2/groups/cn-shanghai/foo --region cn-hangzhou --header "Content-Type=application/json"
DescribeGroupEndpoints
命令描述
获取群组端点列表
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/groups/{ClusterId}/{GroupName}/endpoints
语法
aliyun eas DescribeGroupEndpoints
[--ClusterId <string>]
--GroupName <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 否 | 区域ID |
--GroupName | String | 是 | 群组名称。如何获取群组名称,请参见https://help.aliyun.com/document_detail/412109.html |
示例
aliyun eas GET /api/v2/groups/cn-hangzhou/xx_test_group/endpoints --region cn-hangzhou --header "Content-Type=application/json"
DescribeMachineSpec
命令描述
查询可用机器规格列表
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/public/instance_types
语法
aliyun eas DescribeMachineSpec
[--ChargeType <string>]
[--InstanceTypes <array>]
[--ResourceType <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ChargeType | String | 否 | 付费方式,默认为按量付费
|
--InstanceTypes | List | 否 | 参数已废弃 |
--ResourceType | String | 否 | 资源类型,默认为公共资源组
|
示例
aliyun eas GET /api/v2/public/instance_types --region cn-hangzhou --ChargeType PostPaid --ResourceType Public --InstanceTypes '无需填写' --header "Content-Type=application/json"
DescribeRegions
命令描述
查询可用的地域信息
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/regions
语法
aliyun eas DescribeRegions
[options]
参数
该命令没有专属参数。CLI 通用选项见“全局选项”。
示例
aliyun eas GET /api/v2/regions --region cn-hangzhou --header "Content-Type=application/json"
DescribeResource
命令描述
查看资源组详情
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/resources/{ClusterId}/{ResourceId}
语法
aliyun eas DescribeResource
--ClusterId <string>
--ResourceId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 资源组所在的集群ID |
--ResourceId | String | 是 | 资源组的ID。如何查询资源组ID,请参见https://help.aliyun.com/document_detail/412133.html |
示例
aliyun eas GET /api/v2/resources/cn-shanghai/eas-r-asdasdasd --region cn-hangzhou --header "Content-Type=application/json"
DescribeResourceDLink
命令描述
查看专属资源组VPC直连配置详情
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/resources/{ClusterId}/{ResourceId}/dlink
语法
aliyun eas DescribeResourceDLink
--ClusterId <string>
--ResourceId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 资源组所在的地域ID |
--ResourceId | String | 是 | 资源组的ID。如何查询资源组ID,请参见https://help.aliyun.com/document_detail/412133.html |
示例
aliyun eas GET /api/v2/resources/cn-shanghai/eas-r-adfabas0000/dlink --region cn-hangzhou --header "Content-Type=application/json"
DescribeResourceLog
命令描述
查看专属资源组SLS日志投递配置详情
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/resources/{ClusterId}/{ResourceId}/log
语法
aliyun eas DescribeResourceLog
--ClusterId <string>
--ResourceId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 资源组所在的集群ID |
--ResourceId | String | 是 | 资源组的ID。如何查询资源组ID,请参见https://help.aliyun.com/document_detail/412133.html |
示例
aliyun eas GET /api/v2/resources/cn-shanghai/eas-r-asdas0000/log --region cn-hangzhou --header "Content-Type=application/json"
DescribeService
命令描述
获取指定服务的详细信息
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/services/{ClusterId}/{ServiceName}
语法
aliyun eas DescribeService
--ClusterId <string>
--ServiceName <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 服务所在地域ID |
--ServiceName | String | 是 | 服务名称。如何查看服务名称,请参见https://help.aliyun.com/document_detail/412109.html |
示例
aliyun eas GET /api/v2/services/cn-shanghai/foo --region cn-hangzhou --header "Content-Type=application/json"
DescribeServiceAutoScaler
命令描述
查看服务的自动扩缩配置详情
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/services/{ClusterId}/{ServiceName}/autoscaler
语法
aliyun eas DescribeServiceAutoScaler
--ClusterId <string>
--ServiceName <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 服务所在地域ID |
--ServiceName | String | 是 | 服务名称。如何查看服务名称,请参见https://help.aliyun.com/document_detail/412109.html |
示例
aliyun eas GET /api/v2/services/cn-shanghai/echo/autoscaler --region cn-hangzhou --header "Content-Type=application/json"
DescribeServiceCronScaler
命令描述
查看服务的定时扩缩容配置详情
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/services/{ClusterId}/{ServiceName}/cronscaler
语法
aliyun eas DescribeServiceCronScaler
--ClusterId <string>
--ServiceName <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 服务所在地域ID |
--ServiceName | String | 是 | 服务名称。如何查看服务名称,请参见https://help.aliyun.com/document_detail/412109.html |
示例
aliyun eas GET /api/v2/services/cn-shanghai/foo/cronscaler --region cn-hangzhou --header "Content-Type=application/json"
DescribeServiceDiagnosis
命令描述
查看服务的诊断详情
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/services/{ClusterId}/{ServiceName}/diagnosis
语法
aliyun eas DescribeServiceDiagnosis
--ClusterId <string>
--ServiceName <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 服务所在地域ID |
--ServiceName | String | 是 | 服务名称 |
示例
aliyun eas GET /api/v2/services/cn-shanghai/foo/diagnosis --region cn-hangzhou --header "Content-Type=application/json"
DescribeServiceEndpoints
命令描述
获取服务端点列表
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/services/{ClusterId}/{ServiceName}/endpoints
语法
aliyun eas DescribeServiceEndpoints
[--ClusterId <string>]
--ServiceName <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 否 | 区域ID |
--ServiceName | String | 是 | 服务名称。如何获取服务名称,请参见https://help.aliyun.com/document_detail/412109.html |
示例
aliyun eas GET /api/v2/services/cn-hangzhou/service_name/endpoints --region cn-hangzhou --header "Content-Type=application/json"
DescribeServiceEvent
命令描述
查询服务近期部署事件
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/services/{ClusterId}/{ServiceName}/events
语法
aliyun eas DescribeServiceEvent
--ClusterId <string>
[--EndTime <string>]
[--EventType <string>]
[--InstanceName <string>]
[--PageNum <string>]
[--PageSize <string>]
--ServiceName <string>
[--StartTime <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 服务所在地域ID |
--EndTime | String | 否 | 查询终止时间,格式为 YYYY-MM-DD HH:mm:ss;不填写时默认为当前时刻 |
--EventType | String | 否 | 事件类型:
|
--InstanceName | String | 否 | 服务实例的名字。如何获取实例名称,请参见https://help.aliyun.com/document_detail/412108.html |
--PageNum | String | 否 | 服务事件列表的页码,默认为1 |
--PageSize | String | 否 | 分页查询时设置的每页显示的事件数量,默认为100 |
--ServiceName | String | 是 | 服务对应名称。如何获取服务名称,请参见https://help.aliyun.com/document_detail/412109.html |
--StartTime | String | 否 | 查询起始UTC时间。默认为7天前 |
示例
aliyun eas GET /api/v2/services/cn-shanghai/foo/events --region cn-hangzhou --header "Content-Type=application/json"
DescribeServiceInstanceDiagnosis
命令描述
查看服务实例的诊断详情
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/services/{ClusterId}/{ServiceName}/instances/{InstanceName}/diagnosis
语法
aliyun eas DescribeServiceInstanceDiagnosis
--ClusterId <string>
--InstanceName <string>
--ServiceName <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 服务所在地域ID |
--InstanceName | String | 是 | 服务实例的名称 |
--ServiceName | String | 是 | 服务的名称 |
示例
aliyun eas GET /api/v2/services/cn-shanghai/foo/instances/foo-69xxxx4f4-5w9r9/diagnosis --region cn-hangzhou --header "Content-Type=application/json"
DescribeServiceLog
命令描述
获取指定服务的日志信息
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/services/{ClusterId}/{ServiceName}/logs
语法
aliyun eas DescribeServiceLog
--ClusterId <string>
[--ContainerName <string>]
[--EndTime <string>]
[--InstanceName <string>]
[--Ip <string>]
[--Keyword <string>]
[--PageNum <int>]
[--PageSize <int>]
[--Previous <bool>]
--ServiceName <string>
[--StartTime <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 服务所在地域ID |
--ContainerName | String | 否 | 服务实例的容器名称 |
--EndTime | String | 否 | 查询的结束UTC时间 |
--InstanceName | String | 否 | 服务实例的名称。如何获取实例名称,请参见https://help.aliyun.com/document_detail/412108.html |
--Ip | String | 否 | 要查询的机器IP。如何获取机器IP,请参见https://help.aliyun.com/document_detail/412108.html |
--Keyword | String | 否 | 查询的关键字 |
--PageNum | Integer | 否 | 服务日志的页码,默认为1 |
--PageSize | Integer | 否 | 分页查询时设置的每页显示的日志行数,默认值为500 |
--Previous | Boolean | 否 | 查看实例上次重启前的日志。注意:仅在实例出现重启时可用
|
--ServiceName | String | 是 | 服务名称。如何获取服务名称,请参见https://help.aliyun.com/document_detail/412109.html |
--StartTime | String | 否 | 查询的开始UTC时间 |
示例
aliyun eas GET /api/v2/services/cn-shanghai/echo/logs --region cn-hangzhou --header "Content-Type=application/json"
DescribeServiceMirror
命令描述
查看指定服务的流量镜像配置详情
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/services/{ClusterId}/{ServiceName}/mirror
语法
aliyun eas DescribeServiceMirror
--ClusterId <string>
--ServiceName <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 服务所在地域ID |
--ServiceName | String | 是 | 服务名字。如何获取服务名称,请参见https://help.aliyun.com/document_detail/412109.html |
示例
aliyun eas GET /api/v2/services/cn-shanghai/foo/mirror --region cn-hangzhou --header "Content-Type=application/json"
DescribeServiceRollout
命令描述
查看服务更新计划
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/services/{ClusterId}/{ServiceName}/rollout
语法
aliyun eas DescribeServiceRollout
[--ClusterId <string>]
[--ServiceName <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 否 | 服务所在地域ID |
--ServiceName | String | 否 | 服务名 |
示例
aliyun eas GET /api/v2/services/cn-shanghai/foo/rollout --region cn-hangzhou --header "Content-Type=application/json"
DescribeServiceSignedUrl
命令描述
获取服务免登录Web访问链接
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/services/{ClusterId}/{ServiceName}/signed_url
语法
aliyun eas DescribeServiceSignedUrl
[--ClusterId <string>]
[--Expire <int>]
[--Internal <bool>]
[--ServiceName <string>]
[--Type <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 否 | 服务所在区域 |
--Expire | Integer | 否 | 过期时间 |
--Internal | Boolean | 否 | 是否为VPC链接 |
--ServiceName | String | 否 | 服务名字 |
--Type | String | 否 | 页面类型 |
示例
aliyun eas GET /api/v2/services/cn-hangzhou/foo/signed_url --region cn-hangzhou --Type webview --Expire 43200 --Internal false --header "Content-Type=application/json"
DescribeSpotDiscountHistory
命令描述
查询抢占式实例历史价格。关于抢占式实例,请参考高级配置:抢占型实例选择
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/public/spot_discount
语法
aliyun eas DescribeSpotDiscountHistory
--InstanceType <string>
[--IsProtect <bool>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--InstanceType | String | 是 | 实例规格 |
--IsProtect | Boolean | 否 | 是否有保护期。如果有保护期,在抢占式实例创建1小时内,实例不会被抢占 |
示例
aliyun eas GET /api/v2/public/spot_discount --region cn-hangzhou --InstanceType 'ecs.c6.4xlarge' --header "Content-Type=application/json"
DescribeVirtualResource
命令描述
查看虚拟资源组详情
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/virtualresources/{ClusterId}/{VirtualResourceId}
语法
aliyun eas DescribeVirtualResource
--ClusterId <string>
--VirtualResourceId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 虚拟资源组所在的地域 |
--VirtualResourceId | String | 是 | 虚拟资源组ID |
示例
aliyun eas GET /api/v2/virtualresources/cn-shanghai/eas-vr-npovr28onap1xxxxxx --region cn-hangzhou --header "Content-Type=application/json"
DetachGatewayDomain
命令描述
私有网关解绑自定义域名
HTTP 方法:PUT
protocol:HTTPS
url:/api/v2/gateways/{ClusterId}/{GatewayId}/domain/detach
语法
aliyun eas DetachGatewayDomain
--ClusterId <string>
--CustomDomain <object>
--GatewayId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 私有网关所在地域 |
--CustomDomain | Object | 是 | 自定义域名信息 |
--GatewayId | String | 是 | 私有网关ID。如何获取私有网关ID,请参见接口ListGateway (https://apiworkbench.aliyun-inc.com/document/eas/2021-07-01/ListGateway?spm=openapi-amp.newDocPublishment.0.0.765e281fL2IcjJ&Env=online)返回结果中的GatewayId字段 |
示例
aliyun eas PUT /api/v2/gateways/cn-shanghai/gw-1uhcqmsc7x22000000/domain/detach --region cn-hangzhou --CustomDomain '{"Type":"intranet","Domain":"test.com"}' --header "Content-Type=application/json"
DevelopService
命令描述
将容器服务转为开发模式,或退出开发模式
HTTP 方法:PUT
protocol:HTTPS
url:/api/v2/services/{ClusterId}/{ServiceName}/develop
语法
aliyun eas DevelopService
--ClusterId <string>
[--Exit <string>]
--ServiceName <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 服务所在地域ID |
--Exit | String | 否 | 是否退出开发模式
|
--ServiceName | String | 是 | 服务名称。如何查看服务名称,请参见https://help.aliyun.com/document_detail/412109.html |
示例
aliyun eas PUT /api/v2/services/cn-shanghai/echo/develop --region cn-hangzhou --header "Content-Type=application/json"
ListAclPolicy
命令描述
查看网关访问权限的列表
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/gateways/{ClusterId}/{GatewayId}/acl_policy
语法
aliyun eas ListAclPolicy
--ClusterId <string>
--GatewayId <string>
[--VpcId <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 私有网关所在地域 |
--GatewayId | String | 是 | 私有网关ID。如何获取私有网关ID,请参见ListResources接口返回结果中的private_gateway_id字段 |
--VpcId | String | 否 | 专有网络的ID。如何获取专有网络ID,请参见DescribeVpcs |
示例
aliyun eas GET /api/v2/gateways/cn-wulanchabu/gw-1uhcqmsc7x22000000/acl_policy --region cn-hangzhou --header "Content-Type=application/json"
ListBenchmarkTask
命令描述
查看当前用户部署的所有压测任务
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/benchmark-tasks
语法
aliyun eas ListBenchmarkTask
[--Filter <string>]
[--ModelId <string>]
[--Order <string>]
[--PageNumber <string>]
[--PageSize <string>]
[--RequestMethod <string>]
[--ServiceName <string>]
[--Sort <string>]
[--Status <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Filter | String | 否 | 过滤参数。如果指定,将分别查找EAS服务名和压测任务名中和指定参数匹配的记录 |
--ModelId | String | 否 | 模型ID |
--Order | String | 否 | 排序方式,取值如下: |
--PageNumber | String | 否 | 压测任务列表的页码。起始值为1,默认为1 |
--PageSize | String | 否 | 分页查询时设置的每页显示的压测任务数量,默认为100 |
--RequestMethod | String | 否 | 压测请求方式。支持:固定并发模式(concurrency)、固定请求速率模式(requestRate)、极限吞吐模式(peakThroughput)三种 |
--ServiceName | String | 否 | 压测任务对应的EAS服务名称。如何查询服务名称,请参见https://help.aliyun.com/document_detail/412109.html |
--Sort | String | 否 | 排序字段 |
--Status | String | 否 | 筛选压测任务的执行状态 |
示例
aliyun eas GET /api/v2/benchmark-tasks --region cn-hangzhou --Order desc --Status Creating --PageSize 10 --Filter test_bench --ServiceName test_bench_srv --PageNumber 1 --RequestMethod requestRate --Sort CreateTime --ModelId 'Qwen3.5-27B' --header "Content-Type=application/json"
ListConfigs
命令描述
查询指定服务下的动态参数列表
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/configs/{ClusterId}/{ConfigType}/{Name}
语法
aliyun eas ListConfigs
[--ClusterId <string>]
[--ConfigType <string>]
[--Name <string>]
[--Page <int>]
[--PageSize <int>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 否 | 服务所属地域(必填) |
--ConfigType | String | 否 | 配置类型(必填),目前仅支持 |
--Name | String | 否 | 服务名称(必填) |
--Page | Integer | 否 | 页码,默认为 1 |
--PageSize | Integer | 否 | 每页数量,默认为 100,最大为 200 |
示例
aliyun eas GET /api/v2/configs/cn-hangzhou/service/my-llm-service --region cn-hangzhou --PageSize 100 --Page 1 --header "Content-Type=application/json"
ListGateway
命令描述
查询私有网关列表
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/gateways
语法
aliyun eas ListGateway
[--ChargeType <string>]
[--GatewayId <string>]
[--GatewayName <string>]
[--GatewayType <string>]
[--InternetEnabled <bool>]
[--Label <map>]
[--Order <string>]
[--PageNumber <int>]
[--PageSize <int>]
[--ResourceName <string>]
[--Sort <string>]
[--Status <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ChargeType | String | 否 | 付费类型
|
--GatewayId | String | 否 | 私有网关ID。如何获取私有网关ID,请参见ListResources接口返回结果中的private_gateway_id字段 |
--GatewayName | String | 否 | 私有网关别名 |
--GatewayType | String | 否 | 网关类型
|
--InternetEnabled | Boolean | 否 | 开启公网 |
--Label | Map | 否 | 按标签过滤 |
--Order | String | 否 | 排序方式
|
--PageNumber | Integer | 否 | 网关列表的请求页码,默认为1 |
--PageSize | Integer | 否 | 分页查询时设置的每页显示的服务数量,默认为100 |
--ResourceName | String | 否 | 资源组ID。如何获取资源组,请参见https://help.aliyun.com/document_detail/412133.html接口返回结果中的ResourceId字段 |
--Sort | String | 否 | 排序字段
|
--Status | String | 否 | 网关状态 |
示例
aliyun eas GET /api/v2/gateways --region cn-hangzhou --Status Running --Order asc --PageSize 100 --PageNumber 1 --ResourceName 'eas-r-4gt8twzwllfo******' --ChargeType PrePaid --Label '{"key1":"value1","key2":"{\"key1\":\"value1\",\"key2\":null}"}' --InternetEnabled true --Sort CreateTime --GatewayType Application --GatewayName mygateway1 --GatewayId 'gw-1uhcqmsc7x22******' --header "Content-Type=application/json"
ListGatewayDomains
命令描述
查询私有网关自定义域名列表
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/gateways/{ClusterId}/{GatewayId}/domains
语法
aliyun eas ListGatewayDomains
--ClusterId <string>
--GatewayId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 私有网关所在地域 |
--GatewayId | String | 是 | 私有网关ID。如何获取私有网关ID,请参见接口ListGateway (https://apiworkbench.aliyun-inc.com/document/eas/2021-07-01/ListGateway?spm=openapi-amp.newDocPublishment.0.0.765e281fL2IcjJ&Env=online)返回结果中的GatewayId字段 |
示例
aliyun eas GET /api/v2/gateways/cn-shanghai/gw-1uhcqmsc7x22000000/domains --region cn-hangzhou --header "Content-Type=application/json"
ListGatewayIntranetLinkedVpc
命令描述
查看私有网关内网访问端点列表
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/gateways/{ClusterId}/{GatewayId}/intranet_endpoint_linked_vpc
语法
aliyun eas ListGatewayIntranetLinkedVpc
[--ClusterId <string>]
[--GatewayId <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 否 | 私有网关所在地域 |
--GatewayId | String | 否 | 私有网关ID。如何获取私有网关ID,请参见https://help.aliyun.com/document_detail/412133.html接口返回结果中的private_gateway_id字段 |
示例
aliyun eas GET /api/v2/gateways/cn-hangzhou/gw-1uhcqmsc7x22000000/intranet_endpoint_linked_vpc --region cn-hangzhou --header "Content-Type=application/json"
ListGatewayIntranetLinkedVpcPeer
命令描述
获取网关内网访问端点跨VPC连接列表
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/gateways/{ClusterId}/{GatewayId}/intranet_endpoint_linked_vpc_peer
语法
aliyun eas ListGatewayIntranetLinkedVpcPeer
[--ClusterId <string>]
[--GatewayId <string>]
[--VpcId <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 否 | 私有网关所在地域 |
--GatewayId | String | 否 | 私有网关ID。如何获取私有网关ID,请参见https://help.aliyun.com/document_detail/2841911.html |
--VpcId | String | 否 | 绑定的专有网络ID,如何查询专有网络ID,请参见https://help.aliyun.com/document_detail/2621223.html。 |
示例
aliyun eas GET /api/v2/gateways/cn-wulanchabu/gw-1uhcqmsc7x22000000/intranet_endpoint_linked_vpc_peer --region cn-hangzhou --VpcId 'vpc-2zetuli9ws0qgjd******' --header "Content-Type=application/json"
ListGatewayIntranetSupportedZone
命令描述
获取网关内网支持的可用区
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/gateways/{ClusterId}/{GatewayId}/intranet_supported_zone
语法
aliyun eas ListGatewayIntranetSupportedZone
[--ClusterId <string>]
[--GatewayId <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 否 | 私有网关所在区域 |
--GatewayId | String | 否 | 私有网关ID。如何获取私有网关ID,请参见接口ListGateway (https://apiworkbench.aliyun-inc.com/document/eas/2021-07-01/ListGateway?spm=openapi-amp.newDocPublishment.0.0.765e281fL2IcjJ&Env=online)返回结果中的GatewayId字段 |
示例
aliyun eas GET /api/v2/gateways/cn-wulanchabu/gw-1uhcqmsc7x22000000/intranet_supported_zone --region cn-hangzhou --header "Content-Type=application/json"
ListGroups
命令描述
列举已创建的服务群组
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/groups
语法
aliyun eas ListGroups
[--Filter <string>]
[--Labels <map>]
[--Order <string>]
[--PageNumber <string>]
[--PageSize <string>]
[--Sort <string>]
[--TrafficMode <string>]
[--WorkspaceId <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Filter | String | 否 | 设置的过滤名称,支持模糊匹配 |
--Labels | Map | 否 | 用户自定义标签 |
--Order | String | 否 | 排序顺序 |
--PageNumber | String | 否 | 服务群组列表的当前页码,默认值为1 |
--PageSize | String | 否 | 分页查询时设置的每页显示的服务群组数量,默认为100 |
--Sort | String | 否 | 排序字段 |
--TrafficMode | String | 否 | 流量分配方式筛选 |
--WorkspaceId | String | 否 | 工作空间ID |
示例
aliyun eas GET /api/v2/groups --region cn-hangzhou --Order desc --PageSize 20 --PageNumber 1 --Filter foo --TrafficMode auto --WorkspaceId '123***' --Sort CreateTime --Labels '{"key1":"value1","key2":"{\"key1\":\"value1\",\"key2\":null}\n"}' --header "Content-Type=application/json"
ListResourceInstanceWorker
命令描述
列举资源实例的服务Worker列表
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/resources/{ClusterId}/{ResourceId}/instance/{InstanceName}/workers
语法
aliyun eas ListResourceInstanceWorker
--ClusterId <string>
--InstanceName <string>
[--Order <string>]
[--PageNumber <int>]
[--PageSize <int>]
[--Ready <bool>]
--ResourceId <string>
[--ServiceName <string>]
[--Sort <string>]
[--Status <string>]
[--WorkerName <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 资源组所在的集群ID |
--InstanceName | String | 是 | 资源组的实例名字。如何获取实例名称,请参见https://help.aliyun.com/document_detail/412129.html。该接口返回结果中的HostName即为实例名称 |
--Order | String | 否 | 排序方式。
|
--PageNumber | Integer | 否 | 工作实例列表的页码。起始值为1,默认为1 |
--PageSize | Integer | 否 | 分页查询时设置的每页显示的实例数量,默认为100 |
--Ready | Boolean | 否 | 健康检查是否通过
|
--ResourceId | String | 是 | 资源组的ID。资源组ID,如何查询资源组ID,请参见https://help.aliyun.com/document_detail/412133.html |
--ServiceName | String | 否 | 服务名称 |
--Sort | String | 否 | 排序字段
|
--Status | String | 否 | 工作实例的状态
|
--WorkerName | String | 否 | 工作实例名称 |
示例
aliyun eas GET /api/v2/resources/cn-shanghai/eas-r-adfabas/instance/cne10/workers --region cn-hangzhou --header "Content-Type=application/json"
ListResourceInstances
命令描述
获取指定专属资源组中的机器实例列表
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/resources/{ClusterId}/{ResourceId}/instances
语法
aliyun eas ListResourceInstances
[--ChargeType <string>]
--ClusterId <string>
[--Filter <string>]
[--InstanceIP <string>]
[--InstanceId <string>]
[--InstanceName <string>]
[--InstanceStatus <string>]
[--Label <map>]
[--Order <string>]
[--PageNumber <int>]
[--PageSize <int>]
--ResourceId <string>
[--Sort <string>]
[--Zone <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ChargeType | String | 否 | 过滤机器付费类型,取值如下:
|
--ClusterId | String | 是 | 资源组所在的地域ID |
--Filter | String | 否 | 关键字搜索。支持按机器ID或IP进行搜索 |
--InstanceIP | String | 否 | 机器IP |
--InstanceId | String | 否 | 按实例ID过滤。如何获取实例ID,请参见https://help.aliyun.com/document_detail/412129.html |
--InstanceName | String | 否 | 按实例名称过滤 |
--InstanceStatus | String | 否 | 机器状态
|
--Label | Map | 否 | 按标签过滤 |
--Order | String | 否 | 排序顺序
|
--PageNumber | Integer | 否 | 专属资源组机器列表的页码。起始值为1,默认为1 |
--PageSize | Integer | 否 | 分页查询时设置的每页显示的机器数量,默认为100 |
--ResourceId | String | 是 | 资源组的ID。如何查询资源组ID,请参见https://help.aliyun.com/document_detail/412133.html |
--Sort | String | 否 | 排序字段
|
--Zone | String | 否 | 机器可用区 |
示例
aliyun eas GET /api/v2/resources/cn-shanghai/iot/instances --region cn-hangzhou --header "Content-Type=application/json"
ListResourceServices
命令描述
列举专属资源组中已部署的服务列表
已弃用:true
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/resources/{ClusterId}/{ResourceId}/services
语法
aliyun eas ListResourceServices
--ClusterId <string>
[--PageNumber <int>]
[--PageSize <int>]
--ResourceId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 资源组所在的集群ID |
--PageNumber | Integer | 否 | 服务列表的页码。起始值为1,默认为1 |
--PageSize | Integer | 否 | 分页查询时设置的每页显示的服务数量,默认为100 |
--ResourceId | String | 是 | 资源组的ID。资源组ID,如何查询资源组ID,请参见https://help.aliyun.com/document_detail/412133.html |
示例
aliyun eas GET /api/v2/resources/cn-shanghai/iot/services --region cn-hangzhou --header "Content-Type=application/json"
ListResources
命令描述
获取当前用户的专属资源组列表
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/resources
语法
aliyun eas ListResources
[--Order <string>]
[--PageNumber <int>]
[--PageSize <int>]
[--ResourceId <string>]
[--ResourceName <string>]
[--ResourceStatus <string>]
[--ResourceType <string>]
[--Sort <string>]
[--UsageMode <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Order | String | 否 | 排序方式,取值如下: |
--PageNumber | Integer | 否 | 专属资源组列表的页码。起始值为1,默认为1 |
--PageSize | Integer | 否 | 分页查询时设置的每页显示的专属资源组数量,默认为100 |
--ResourceId | String | 否 | 资源组ID。https://help.aliyun.com/document_detail/412111.html会返回资源组ID |
--ResourceName | String | 否 | 资源组名称。https://help.aliyun.com/document_detail/412111.html会返回资源组名称 |
--ResourceStatus | String | 否 | 资源组状态 |
--ResourceType | String | 否 | 资源组类型,取值如下:
|
--Sort | String | 否 | 排序字段。按时间戳类型默认倒序排序
|
--UsageMode | String | 否 | 资源组使用模式。默认为 inference
|
示例
aliyun eas GET /api/v2/resources --region cn-hangzhou --Order Desc --PageSize 20 --PageNumber 1 --ResourceId 'eas-r-h7lcw24dyqztwxxxxxx' --ResourceName MyResource --UsageMode inference --ResourceStatus ResourceReady --Sort CreateTime --ResourceType Dedicated --header "Content-Type=application/json"
ListServiceContainers
命令描述
查询服务的容器列表
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/services/{ClusterId}/{ServiceName}/instances/{InstanceName}/containers
语法
aliyun eas ListServiceContainers
--ClusterId <string>
--InstanceName <string>
--ServiceName <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 服务所在地域ID |
--InstanceName | String | 是 | 服务实例的名称 |
--ServiceName | String | 是 | 服务名称 |
示例
aliyun eas GET /api/v2/services/cn-shanghai/foo/instances/foo-69xxxx4f4-5w9r9/containers --region cn-hangzhou --header "Content-Type=application/json"
ListServiceInstanceFaultInjectionInfo
命令描述
获取故障注入信息
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/services/{ClusterId}/{ServiceName}/instances/{InstanceName}/faults
语法
aliyun eas ListServiceInstanceFaultInjectionInfo
--ClusterId <string>
--InstanceName <string>
--ServiceName <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 资源组所在的集群ID |
--InstanceName | String | 是 | 服务实例的名字 |
--ServiceName | String | 是 | 服务名字 |
示例
aliyun eas ListServiceInstanceFaultInjectionInfo --region cn-hangzhou --header "Content-Type=application/json" --ClusterId 'cn-shanghai' --ServiceName 'foo' --InstanceName 'e-xxxx***'
ListServiceInstances
命令描述
获取指定服务的实例列表
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/services/{ClusterId}/{ServiceName}/instances
语法
aliyun eas ListServiceInstances
--ClusterId <string>
[--Filter <string>]
[--HostIP <string>]
[--InstanceIP <string>]
[--InstanceName <string>]
[--InstanceStatus <string>]
[--InstanceType <string>]
[--IsSpot <bool>]
[--ListReplica <bool>]
[--MemberType <string>]
[--Order <string>]
[--PageNumber <int>]
[--PageSize <int>]
[--QuotaId <string>]
[--ReplicaName <string>]
[--Resource <string>]
[--ResourceType <string>]
[--Role <string>]
--ServiceName <string>
[--Sort <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 服务所在地域ID |
--Filter | String | 否 | 关键字搜索。支持按实例名、实例IP、实例所在的机器的IP、实例规格搜索 |
--HostIP | String | 否 | 服务实例所在机器的IP |
--InstanceIP | String | 否 | 服务实例的IP |
--InstanceName | String | 否 | 服务实例的名字 |
--InstanceStatus | String | 否 | 服务实例的状态 |
--InstanceType | String | 否 | 实例规格 |
--IsSpot | Boolean | 否 | 是否为抢占式实例 |
--ListReplica | Boolean | 否 | 是否查询实例单元列表 |
--MemberType | String | 否 | 子服务的类型(只有在聚合服务的场景下有效) |
--Order | String | 否 | 排序顺序
|
--PageNumber | Integer | 否 | 服务实例列表的页,默认值为1 |
--PageSize | Integer | 否 | 分页查询时设置的每页显示的实例数量,默认为100 |
--QuotaId | String | 否 | 配额ID |
--ReplicaName | String | 否 | 实例单元的名称 |
--Resource | String | 否 | 实例所在的资源组 |
--ResourceType | String | 否 | 服务实例所在的资源组类型
|
--Role | String | 否 | 服务的角色
|
--ServiceName | String | 是 | 服务名称。如何获取服务名称,请参见https://help.aliyun.com/document_detail/412109.html |
--Sort | String | 否 | 排序字段
|
示例
aliyun eas GET /api/v2/services/cn-shanghai/foo/instances --region cn-hangzhou --header "Content-Type=application/json"
ListServiceVersions
命令描述
查询服务历史版本
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/services/{ClusterId}/{ServiceName}/versions
语法
aliyun eas ListServiceVersions
--ClusterId <string>
[--PageNumber <int>]
[--PageSize <int>]
--ServiceName <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 服务所在地域ID |
--PageNumber | Integer | 否 | 请求的页码,默认为1 |
--PageSize | Integer | 否 | 分页查询时设置的每页显示的版本数量,默认为100 |
--ServiceName | String | 是 | 服务名称。如何获取服务名称,请参见https://help.aliyun.com/document_detail/412109.html |
示例
aliyun eas GET /api/v2/services/cn-hangzhou/test_oss/versions --region cn-hangzhou --header "Content-Type=application/json"
ListServices
命令描述
列举服务
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/services
语法
aliyun eas ListServices
[--Accessibility <string>]
[--AutoscalerEnabled <bool>]
[--CallerUid <string>]
[--CronscalerEnabled <bool>]
[--Filter <string>]
[--Gateway <string>]
[--GroupName <string>]
[--IncludeNoWorkspace <bool>]
[--Label <map>]
[--Order <string>]
[--PageNumber <int>]
[--PageSize <int>]
[--ParentServiceUid <string>]
[--QuotaId <string>]
[--ResourceAliasName <string>]
[--ResourceBurstable <bool>]
[--ResourceId <string>]
[--ResourceName <string>]
[--ResourceType <string>]
[--Role <string>]
[--ServiceName <string>]
[--ServiceStatus <string>]
[--ServiceType <string>]
[--ServiceUid <string>]
[--Sort <string>]
[--TrafficState <string>]
[--WorkspaceId <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Accessibility | String | 否 | 按服务可见性筛选。PUBLIC 表示公开服务,PRIVATE 表示私有服务
|
--AutoscalerEnabled | Boolean | 否 | 服务是否开启弹性伸缩
|
--CallerUid | String | 否 | 服务创建账号的 UID |
--CronscalerEnabled | Boolean | 否 | 服务是否开启定时扩缩容
|
--Filter | String | 否 | 模糊匹配字段。只支持按服务名字模糊匹配 |
--Gateway | String | 否 | 私有网关ID |
--GroupName | String | 否 | 服务群组名称,如何获取服务群组名称,请参见https://help.aliyun.com/document_detail/412109.html |
--IncludeNoWorkspace | Boolean | 否 | 是否包含不属于任何工作空间的服务。默认为 true |
--Label | Map | 否 | 按标签过滤 |
--Order | String | 否 | 排序方式,取值如下: |
--PageNumber | Integer | 否 | 服务列表的请求页码,默认为1 |
--PageSize | Integer | 否 | 分页查询时设置的每页显示的服务数量,默认为100 |
--ParentServiceUid | String | 否 | Band成员服务对应的主服务ID |
--QuotaId | String | 否 | 配额ID |
--ResourceAliasName | String | 否 | 资源组的自定义名称 |
--ResourceBurstable | Boolean | 否 | 服务是否开启弹性资源池
|
--ResourceId | String | 否 | 资源组的ID。如何查询资源组ID,请参见https://help.aliyun.com/document_detail/412133.html |
--ResourceName | String | 否 | 服务所属的资源组名称或ID |
--ResourceType | String | 否 | 服务所使用的资源类型,取值如下:
|
--Role | String | 否 | 服务角色
|
--ServiceName | String | 否 | 服务名 |
--ServiceStatus | String | 否 | 服务运行的状态
|
--ServiceType | String | 否 | 服务类型,取值如下:
|
--ServiceUid | String | 否 | 服务UID |
--Sort | String | 否 | 排序字段。按时间戳类型默认倒序排序 |
--TrafficState | String | 否 | 是否承接群组流量(仅对群组服务有效)
|
--WorkspaceId | String | 否 | 工作空间ID |
示例
aliyun eas GET /api/v2/services --region cn-hangzhou --GroupName foo --QuotaId 'quota1****' --PageSize 100 --Accessibility PUBLIC --ResourceName 'eas-r-hd0qwy8cxxxx' --Label '{"key1":"value1","key2":"{\"key1\":\"value1\",\"key2\":null}"}' --WorkspaceId '1234**' --ResourceAliasName example --CallerUid 19989224166xxxxxxx --CronscalerEnabled true --PageNumber 1 --ServiceType Standard --ServiceStatus Running --Gateway 'gw-1uhcqmsc7x22******' --ResourceBurstable true --Sort CreateTime --Order asc --ParentServiceUid 'eas-m-ijafy3c8cxxxx' --TrafficState grouping --AutoscalerEnabled true --ResourceType PublicResource --IncludeNoWorkspace true --Role LLMGateway --Filter foo --ServiceName echo_test --ResourceId 'eas-r-asdas****' --ServiceUid 'eas-m-c9iw3yitxxxx' --header "Content-Type=application/json"
ListTenantAddons
命令描述
查看租户插件列表
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/tenantaddons
语法
aliyun eas ListTenantAddons
[options]
参数
该命令没有专属参数。CLI 通用选项见“全局选项”。
示例
aliyun eas GET /api/v2/tenantaddons --region cn-hangzhou --header "Content-Type=application/json"
ListVirtualResource
命令描述
获取当前用户的虚拟资源组列表
HTTP 方法:GET
protocol:HTTPS
url:/api/v2/virtualresources
语法
aliyun eas ListVirtualResource
[--Order <string>]
[--PageNumber <int>]
[--PageSize <int>]
[--Sort <string>]
[--VirtualResourceId <string>]
[--VirtualResourceName <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Order | String | 否 | 排序方式,取值如下:
|
--PageNumber | Integer | 否 | 虚拟资源组列表的页码。起始值为1,默认为1 |
--PageSize | Integer | 否 | 分页查询时设置的每页显示的虚拟资源组数量,默认为100 |
--Sort | String | 否 | 排序字段。按时间戳类型默认倒序排序
|
--VirtualResourceId | String | 否 | 虚拟资源组ID |
--VirtualResourceName | String | 否 | 虚拟资源组名称 |
示例
aliyun eas GET /api/v2/virtualresources --region cn-hangzhou --Order Desc --VirtualResourceName MyVirtualResource --PageSize 20 --PageNumber 1 --VirtualResourceId 'eas-vr-npovr28onap1xxxxxx
' --Sort CreateTime --header "Content-Type=application/json"
MigrateResourceInstance
命令描述
资源组机器迁移
contentType:application/json
HTTP 方法:POST
protocol:HTTPS
requestBodyType:json
url:/api/v2/resources/{ClusterId}/{ResourceId}/instances/migrate
语法
aliyun eas MigrateResourceInstance
--ClusterId <string>
--ResourceId <string>
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 资源组所在的集群ID |
--ResourceId | String | 是 | 资源组ID |
--body | String | 否 | 请求Body |
示例
aliyun eas POST /api/v2/resources/cn-shanghai/eas-r-asdasdasd0000/instances/migrate --region cn-hangzhou --header "Content-Type=application/json" --body '{"InstanceIds":["['"'"'eas-i-4ybm1bin7gygx67umh'"'"', '"'"'eas-i-iy6dfaag7qals6g4i2'"'"']"],"DestResourceId":"eas-r-asdasdasd****"}'
ReinstallTenantAddon
命令描述
重置租户配置
HTTP 方法:PUT
protocol:HTTPS
url:/api/v2/tenantaddons/{ClusterId}/{TenantAddonName}/reinstall
语法
aliyun eas ReinstallTenantAddon
--ClusterId <string>
--TenantAddonName <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 服务所在地域ID |
--TenantAddonName | String | 是 | 插件名称 |
示例
aliyun eas PUT /api/v2/tenantaddons/cn-hangzhou/prometheus_discovery/reinstall --region cn-hangzhou --header "Content-Type=application/json"
ReleaseService
命令描述
修复服务的流量状态和权重
contentType:application/json
HTTP 方法:PUT
protocol:HTTPS
requestBodyType:json
url:/api/v2/services/{ClusterId}/{ServiceName}/release
语法
aliyun eas ReleaseService
--ClusterId <string>
--ServiceName <string>
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 服务所在地域ID |
--ServiceName | String | 是 | 服务名称。如何查看服务名称,请参见https://help.aliyun.com/document_detail/412109.html |
--body | String | 否 | 请求Body |
示例
aliyun eas PUT /api/v2/services/cn-shanghai/foo/release --region cn-hangzhou --header "Content-Type=application/json"
RestartService
命令描述
重启服务
HTTP 方法:PUT
protocol:HTTPS
url:/api/v2/services/{ClusterId}/{ServiceName}/restart
语法
aliyun eas RestartService
[--ClientToken <string>]
--ClusterId <string>
[--DryRun <bool>]
--ServiceName <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClientToken | String | 否 | 用于保证请求的幂等性 |
--ClusterId | String | 是 | 服务所在地域 |
--DryRun | Boolean | 否 | 是否只预检此次请求。 |
--ServiceName | String | 是 | 服务名称。如何查看服务名称,请参见https://help.aliyun.com/document_detail/412109.html |
示例
aliyun eas PUT /api/v2/services/cn-shanghai/foo/restart --region cn-hangzhou --header "Content-Type=application/json"
ScaleService
命令描述
伸缩服务
contentType:application/json
HTTP 方法:PUT
protocol:HTTPS
requestBodyType:json
url:/api/v2/services/{ClusterId}/{ServiceName}/scale
语法
aliyun eas ScaleService
--ClusterId <string>
--ServiceName <string>
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 服务所在区域 |
--ServiceName | String | 是 | 服务名字 |
--body | String | 否 | 请求Body |
示例
aliyun eas PUT /api/v2/services/cn-shanghai/foo/scale --region cn-hangzhou --header "Content-Type=application/json" --body '{"Instance":2}'
StartBenchmarkTask
命令描述
启动指定的压测任务
HTTP 方法:PUT
protocol:HTTPS
url:/api/v2/benchmark-tasks/{ClusterId}/{TaskName}/start
语法
aliyun eas StartBenchmarkTask
--ClusterId <string>
--TaskName <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 压测任务所在区域 |
--TaskName | String | 是 | 压测任务名称。如何获取压测任务名称,请参见https://help.aliyun.com/document_detail/432976.html |
示例
aliyun eas PUT /api/v2/benchmark-tasks/cn-shanghai/benchmark-larec-test-3bc6/start --region cn-hangzhou --header "Content-Type=application/json"
StartService
命令描述
启动一个已停止状态的服务
HTTP 方法:PUT
protocol:HTTPS
url:/api/v2/services/{ClusterId}/{ServiceName}/start
语法
aliyun eas StartService
[--ClientToken <string>]
--ClusterId <string>
[--DryRun <bool>]
--ServiceName <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClientToken | String | 否 | 用于保证请求的幂等性 |
--ClusterId | String | 是 | 服务所在地域ID |
--DryRun | Boolean | 否 | 是否只预检此次请求。 |
--ServiceName | String | 是 | 服务名称。如何查看服务名称,请参见https://help.aliyun.com/document_detail/412109.html |
示例
aliyun eas PUT /api/v2/services/cn-shanghai/foo/start --region cn-hangzhou --header "Content-Type=application/json"
StopBenchmarkTask
命令描述
停止指定的压测任务
HTTP 方法:PUT
protocol:HTTPS
url:/api/v2/benchmark-tasks/{ClusterId}/{TaskName}/stop
语法
aliyun eas StopBenchmarkTask
--ClusterId <string>
--TaskName <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 压测任务所在地域ID |
--TaskName | String | 是 | 压测任务名称。如何获取压测任务名称,请参见https://help.aliyun.com/document_detail/432976.html |
示例
aliyun eas PUT /api/v2/benchmark-tasks/cn-shanghai/benchmark-larec-test-dbe5/stop --region cn-hangzhou --header "Content-Type=application/json"
StopService
命令描述
停止一个运行中的服务
HTTP 方法:PUT
protocol:HTTPS
url:/api/v2/services/{ClusterId}/{ServiceName}/stop
语法
aliyun eas StopService
[--ClientToken <string>]
--ClusterId <string>
[--DryRun <bool>]
--ServiceName <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClientToken | String | 否 | 用于保证请求的幂等性 |
--ClusterId | String | 是 | 服务所在地域ID |
--DryRun | Boolean | 否 | 是否只预检此次请求。 |
--ServiceName | String | 是 | 服务名称。如何查看服务名称,请参见https://help.aliyun.com/document_detail/412109.html |
示例
aliyun eas PUT /api/v2/services/cn-shanghai/foo/stop --region cn-hangzhou --header "Content-Type=application/json"
UpdateAppService
命令描述
更新应用服务
contentType:application/json
HTTP 方法:PUT
protocol:HTTPS
requestBodyType:json
url:/api/v2/app_services/{ClusterId}/{ServiceName}
语法
aliyun eas UpdateAppService
--ClusterId <string>
[--QuotaId <string>]
--ServiceName <string>
[--WorkspaceId <string>]
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 服务所在地域ID |
--QuotaId | String | 否 | 归属额度ID |
--ServiceName | String | 是 | 服务名字 |
--WorkspaceId | String | 否 | 工作空间ID |
--body | String | 否 | 请求Body |
示例
aliyun eas PUT /api/v2/app_services/cn-shanghai/foo --region cn-hangzhou --header "Content-Type=application/json"
UpdateBenchmarkTask
命令描述
更新指定的压测任务
contentType:application/json
HTTP 方法:PUT
protocol:HTTPS
requestBodyType:json
url:/api/v2/benchmark-tasks/{ClusterId}/{TaskName}
语法
aliyun eas UpdateBenchmarkTask
--ClusterId <string>
--TaskName <string>
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 压测任务所在区域 |
--TaskName | String | 是 | 压测任务名字 |
--body | String | 否 | 压测任务配置参数,详情请参见表1. base描述表。目标压测任务必须处于 Running 状态;可通过 DescribeBenchmarkTask 查询,处于 Stopped 状态时需先调用 StartBenchmarkTask 并等待任务进入 Running 状态 |
示例
aliyun eas PUT /api/v2/benchmark-tasks/cn-shanghai/benchmark-larec-test-645c --region cn-hangzhou --header "Content-Type=application/json"
UpdateConfig
命令描述
用于更新指定集群、服务下的单个动态参数的值
contentType:application/json
HTTP 方法:PUT
protocol:HTTPS
requestBodyType:json
url:/api/v2/configs/{ClusterId}/{ConfigType}/{Name}/{ConfigKey}
语法
aliyun eas UpdateConfig
[--ClusterId <string>]
[--ConfigKey <string>]
[--ConfigType <string>]
[--Name <string>]
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 否 | 集群/地域 ID(必填),例如 |
--ConfigKey | String | 否 | 动态参数名称(必填) |
--ConfigType | String | 否 | 配置类型(必填),目前仅支持 |
--Name | String | 否 | 服务名称(必填) |
--body | String | 否 | 动态参数值(必填) |
示例
aliyun eas PUT /api/v2/configs/cn-hangzhou/service/my-llm-service/rate_limit --region cn-hangzhou --header "Content-Type=application/json" --body '{"Value":"200"}'
UpdateGateway
命令描述
更新私有网关
contentType:application/json
HTTP 方法:PUT
protocol:HTTPS
requestBodyType:json
url:/api/v2/gateways/{ClusterId}/{GatewayId}
语法
aliyun eas UpdateGateway
--ClusterId <string>
--GatewayId <string>
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 私有网关所在地域 |
--GatewayId | String | 是 | 私有网关ID。如何获取私有网关ID,请参见https://help.aliyun.com/document_detail/412133.html接口返回结果中的private_gateway_id字段 |
--body | String | 否 | 请求Body |
示例
aliyun eas PUT /api/v2/gateways/cn-wulanchabu/gw-1uhcqmsc7x22000000 --region cn-hangzhou --header "Content-Type=application/json"
UpdateGatewayLabel
命令描述
新增网关标签,或更新已有的网关标签
contentType:application/json
HTTP 方法:PUT
protocol:HTTPS
requestBodyType:json
url:/api/v2/gateways/{ClusterId}/{GatewayId}/label
语法
aliyun eas UpdateGatewayLabel
--ClusterId <string>
--GatewayId <string>
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 网关所在区域 |
--GatewayId | String | 是 | 网关id |
--body | String | 否 | 请求Body |
示例
aliyun eas PUT /api/v2/gateways/cn-shanghai/gw-1uhcqmsc7x22000000/label --region cn-hangzhou --header "Content-Type=application/json" --body '{"Labels":{"key":"value"}}'
UpdateGroup
命令描述
更新服务组的部分字段
contentType:application/json
HTTP 方法:PUT
protocol:HTTPS
requestBodyType:json
url:/api/v2/groups/{ClusterId}/{GroupName}
语法
aliyun eas UpdateGroup
--ClusterId <string>
--GroupName <string>
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 所属所在地域ID |
--GroupName | String | 是 | 服务群组名称。如何获取群组名称,请参见ListServices |
--body | String | 否 | 请求内容 |
示例
aliyun eas PUT /api/v2/groups/cn-wulanchabu/foo --region cn-hangzhou --header "Content-Type=application/json"
UpdateResource
命令描述
更新专属资源组信息
contentType:application/json
HTTP 方法:PUT
protocol:HTTPS
requestBodyType:json
url:/api/v2/resources/{ClusterId}/{ResourceId}
语法
aliyun eas UpdateResource
--ClusterId <string>
--ResourceId <string>
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 资源组所在的地域ID |
--ResourceId | String | 是 | 资源组的ID。如何查询资源组ID,请参见https://help.aliyun.com/document_detail/412133.html |
--body | String | 否 | 请求Body |
示例
aliyun eas PUT /api/v2/resources/cn-shanghai/eas-r-asdasdasd0000 --region cn-hangzhou --header "Content-Type=application/json"
UpdateResourceDLink
命令描述
更新指定专属资源组的VPC直连配置
contentType:application/json
HTTP 方法:PUT
protocol:HTTPS
requestBodyType:json
url:/api/v2/resources/{ClusterId}/{ResourceId}/dlink
语法
aliyun eas UpdateResourceDLink
--ClusterId <string>
--ResourceId <string>
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 资源组所在的地域ID |
--ResourceId | String | 是 | 资源组的ID。如何查询资源组ID,请参见https://help.aliyun.com/document_detail/412133.html |
--body | String | 否 | 请求Body |
示例
aliyun eas PUT /api/v2/resources/cn-shanghai/eas-r-w1ttszneb9n9940000/dlink --region cn-hangzhou --header "Content-Type=application/json" --body '{"VSwitchId":"vpc-uf66uio7md****","SecurityGroupId":"sg-bp149cedsfx2rfs****"}'
UpdateResourceInstance
命令描述
更新专属资源组机器实例的调度状态
contentType:application/json
HTTP 方法:PUT
protocol:HTTPS
requestBodyType:json
url:/api/v2/resources/{ClusterId}/{ResourceId}/instances/{InstanceId}
语法
aliyun eas UpdateResourceInstance
--ClusterId <string>
--InstanceId <string>
--ResourceId <string>
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 实例所在地域ID |
--InstanceId | String | 是 | 实例ID,如何获取实例ID,请参见https://help.aliyun.com/document_detail/412129.html |
--ResourceId | String | 是 | 实例所属资源组ID,如何查询资源组ID,请参见https://help.aliyun.com/document_detail/412133.html |
--body | String | 否 | 请求body参数 |
示例
aliyun eas PUT /api/v2/resources/cn-beijing/eas-r-asdas0000/instances/eas-i-asdas0000 --region cn-hangzhou --header "Content-Type=application/json" --body '{"Action":"Cordon"}'
UpdateResourceInstanceLabel
命令描述
更新资源组实例标签
contentType:application/json
HTTP 方法:PUT
protocol:HTTPS
requestBodyType:json
url:/api/v2/resources/{ClusterId}/{ResourceId}/label
语法
aliyun eas UpdateResourceInstanceLabel
[--AllInstances <bool>]
--ClusterId <string>
[--InstanceIds <array>]
--ResourceId <string>
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--AllInstances | Boolean | 否 | 是否对资源组下所有实例生效。如果为 true,则 InstanceIds 参数不生效 |
--ClusterId | String | 是 | 区域ID |
--InstanceIds | List | 否 | 机器实例ID |
--ResourceId | String | 是 | 资源组的ID |
--body | String | 否 | 请求Body |
示例
aliyun eas PUT /api/v2/resources/cn-shanghai/eas-r-asdasdasd/label --region cn-hangzhou --header "Content-Type=application/json"
UpdateService
命令描述
用于服务的模型或Processor更新。如果只更新metadata.instance字段,则用于服务扩缩容功能
contentType:application/json
HTTP 方法:PUT
protocol:HTTPS
requestBodyType:json
url:/api/v2/services/{ClusterId}/{ServiceName}
语法
aliyun eas UpdateService
[--ClientToken <string>]
--ClusterId <string>
[--DryRun <bool>]
[--MemberToUpdate <string>]
--ServiceName <string>
[--UpdateType <string>]
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClientToken | String | 否 | 用于保证请求的幂等性 |
--ClusterId | String | 是 | 服务所在的地域ID |
--DryRun | Boolean | 否 | 是否只预检此次请求。 |
--MemberToUpdate | String | 否 | 更新的子服务类型。注意:只在聚合服务中生效 |
--ServiceName | String | 是 | 服务名称。如何查看服务名称,请参见https://help.aliyun.com/document_detail/412109.html |
--UpdateType | String | 否 | 服务更新类型,目前支持合并模式和替换模式。不传默认为合并模式。
|
--body | String | 否 | 更新配置。参数配置说明,请参见https://help.aliyun.com/document_detail/412086.html |
示例
aliyun eas PUT /api/v2/services/cn-shanghai/foo --region cn-hangzhou --header "Content-Type=application/json"
UpdateServiceAutoScaler
命令描述
修改服务已有的自动扩缩控制器配置
contentType:application/json
HTTP 方法:PUT
protocol:HTTPS
requestBodyType:json
url:/api/v2/services/{ClusterId}/{ServiceName}/autoscaler
语法
aliyun eas UpdateServiceAutoScaler
--ClusterId <string>
--ServiceName <string>
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 服务所在地域ID |
--ServiceName | String | 是 | 服务名称。如何查看服务名称,请参见https://help.aliyun.com/document_detail/412109.html |
--body | String | 否 | 请求Body |
示例
aliyun eas PUT /api/v2/services/cn-shanghai/foo/autoscaler --region cn-hangzhou --header "Content-Type=application/json" --body '{"min":2,"max":8,"scaleStrategies":[{"metricName":"qps","threshold":100.0}]}'
UpdateServiceCronScaler
命令描述
更新服务定时扩缩容配置信息
contentType:application/json
HTTP 方法:PUT
protocol:HTTPS
requestBodyType:json
url:/api/v2/services/{ClusterId}/{ServiceName}/cronscaler
语法
aliyun eas UpdateServiceCronScaler
--ClusterId <string>
--ServiceName <string>
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 服务所在地域ID |
--ServiceName | String | 是 | 服务名字。如何查看服务名称,请参见https://help.aliyun.com/document_detail/412109.html |
--body | String | 否 | 请求Body |
示例
aliyun eas PUT /api/v2/services/cn-shanghai/foo/cronscaler --region cn-hangzhou --header "Content-Type=application/json" --body '{"ScaleJobs":[{"TargetSize":2,"Schedule":"0 18 * * * *\n"}]}'
UpdateServiceInstance
命令描述
更新服务实例属性,目前只支持隔离服务实例
contentType:application/json
HTTP 方法:PUT
protocol:HTTPS
requestBodyType:json
url:/api/v2/services/{ClusterId}/{ServiceName}/instances/{InstanceName}
语法
aliyun eas UpdateServiceInstance
--ClusterId <string>
--InstanceName <string>
[--IsReplica <bool>]
--ServiceName <string>
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 服务所在区域 |
--InstanceName | String | 是 | 服务实例的名字。如何查看实例名称,请参见https://help.aliyun.com/document_detail/412108.html |
--IsReplica | Boolean | 否 | 当前实例是否是实例单元 |
--ServiceName | String | 是 | 服务名字。如何查看服务名称,请参见https://help.aliyun.com/document_detail/412109.html |
--body | String | 否 | 请求Body |
示例
aliyun eas PUT /api/v2/services/cn-shanghai/foo/instances/foo-69xxxx4f4-5w9r9 --region cn-hangzhou --header "Content-Type=application/json"
UpdateServiceLabel
命令描述
新增服务标签,或更新已有的服务标签
contentType:application/json
HTTP 方法:PUT
protocol:HTTPS
requestBodyType:json
url:/api/v2/services/{ClusterId}/{ServiceName}/label
语法
aliyun eas UpdateServiceLabel
--ClusterId <string>
--ServiceName <string>
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 服务所在区域 |
--ServiceName | String | 是 | 服务名称。如何查看服务名称,请参见https://help.aliyun.com/document_detail/412109.html |
--body | String | 否 | 请求Body |
示例
aliyun eas PUT /api/v2/services/cn-shanghai/foo/label --region cn-hangzhou --header "Content-Type=application/json" --body '{"Labels":{"key":"value"}}'
UpdateServiceMirror
命令描述
更新服务流量镜像配置
contentType:application/json
HTTP 方法:PUT
protocol:HTTPS
requestBodyType:json
url:/api/v2/services/{ClusterId}/{ServiceName}/mirror
语法
aliyun eas UpdateServiceMirror
--ClusterId <string>
--ServiceName <string>
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 服务所在地域ID |
--ServiceName | String | 是 | 服务名称。如何查看服务名称,请参见https://help.aliyun.com/document_detail/412109.html |
--body | String | 否 | 请求Body |
示例
aliyun eas PUT /api/v2/services/cn-shanghai/foo/mirror --region cn-hangzhou --header "Content-Type=application/json"
UpdateServiceRollout
命令描述
更新服务发布计划
contentType:application/json
HTTP 方法:PUT
protocol:HTTPS
requestBodyType:json
url:/api/v2/services/{ClusterId}/{ServiceName}/rollout
语法
aliyun eas UpdateServiceRollout
--ClusterId <string>
--ServiceName <string>
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | ClusterId |
--ServiceName | String | 是 | ServiceName |
--body | String | 否 | 请求Body |
示例
aliyun eas PUT /api/v2/services/cn-shanghai/my-service/rollout --region cn-hangzhou --header "Content-Type=application/json"
UpdateServiceSafetyLock
命令描述
更新服务安全锁,可以一定程度上避免对服务的误操作
contentType:application/json
HTTP 方法:PUT
protocol:HTTPS
requestBodyType:json
url:/api/v2/services/{ClusterId}/{ServiceName}/lock
语法
aliyun eas UpdateServiceSafetyLock
--ClusterId <string>
--ServiceName <string>
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 服务所在地域ID |
--ServiceName | String | 是 | 服务名称。如何查看服务名称,请参见https://help.aliyun.com/document_detail/412109.html |
--body | String | 否 | 请求Body |
示例
aliyun eas PUT /api/v2/services/cn-beijing/foo/lock --region cn-hangzhou --header "Content-Type=application/json" --body '{"Lock":"dangerous"}'
UpdateServiceVersion
命令描述
更新服务的当前版本,用于服务在历史版本的切换,可实现回滚功能
contentType:application/json
HTTP 方法:PUT
protocol:HTTPS
requestBodyType:json
url:/api/v2/services/{ClusterId}/{ServiceName}/version
语法
aliyun eas UpdateServiceVersion
--ClusterId <string>
--ServiceName <string>
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 服务所在地域ID |
--ServiceName | String | 是 | 服务名字。如何查看服务名称,请参见https://help.aliyun.com/document_detail/412109.html |
--body | String | 否 | 请求Body |
示例
aliyun eas PUT /api/v2/services/cn-shanghai/echo/version --region cn-hangzhou --header "Content-Type=application/json" --body '{"Version":1}'
UpdateServiceVersionRemark
命令描述
更新服务版本备注信息
contentType:application/json
HTTP 方法:PUT
protocol:HTTPS
requestBodyType:json
url:/api/v2/services/{ClusterId}/{ServiceName}/version/{Version}/remark
语法
aliyun eas UpdateServiceVersionRemark
[--ClusterId <string>]
[--ServiceName <string>]
[--Version <string>]
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 否 | 服务所在地域ID |
--ServiceName | String | 否 | 服务名称 |
--Version | String | 否 | 服务版本 |
--body | String | 否 | 请求Body |
示例
aliyun eas PUT /api/v2/services/cn-shanghai/test_oss/version/1/remark --region cn-hangzhou --header "Content-Type=application/json" --body '{"Remark":"version info."}'
UpdateVirtualResource
命令描述
更新虚拟资源组信息
contentType:application/json
HTTP 方法:PUT
protocol:HTTPS
requestBodyType:json
url:/api/v2/virtualresources/{ClusterId}/{VirtualResourceId}
语法
aliyun eas UpdateVirtualResource
--ClusterId <string>
--VirtualResourceId <string>
[--body <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClusterId | String | 是 | 虚拟资源组所在的地域 |
--VirtualResourceId | String | 是 | 虚拟资源组ID |
--body | String | 否 | 请求Body |
示例
aliyun eas PUT /api/v2/virtualresources/cn-hangzhou/eas-vr-npovr28onap1xxxxxx --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 场景) |