ExecuteOperationSync - 同步执行操作

维护应用下资源API(同步操作)

接口说明

同步执行产品操作功能。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。

  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。

  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:

    • 对于必选的资源类型,用前面加 * 表示。

    • 对于不支持资源级授权的操作,用全部资源表示。

  • 条件关键字:是指云产品自身定义的条件关键字。

  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。

操作

访问级别

资源类型

条件关键字

关联操作

bpstudio:ExecuteOperationSync

update

*BPStudioVirtual

acs:bpstudio::{#accountId}:bpstudiovirtual/{#BPStudioVirtualId}

请求参数

名称

类型

必填

描述

示例值

ApplicationId

string

云速搭应用 ID

BE68D71ZY5YYIU9R

ServiceType

string

资源类型,例如需要执行 dds 这一资源的操作请填写:dds。

dds

Operation

string

本次操作类型

rename

Attributes

object

操作相关参数,根据不同的 Operation 值,输入对应的参数

any

调试时请先选择“参数类型”,再输入参数值。

ResourceGroupId

string

资源组 ID,用于资源组权限校验

rg-acfmyjt3c5om3hi

ClientToken

string

幂等标记

1600765710019

返回参数

名称

类型

描述

示例值

object

Message

string

错误信息

Access key ID cannot be null.

RequestId

string

请求 ID

FDC73B05-5331-57AA-BA93-4C9882792FF5

Data

object

返回同步操作结果详细信息。

OperationId

string

操作 ID

op_xxxxxxxx

Status

string

实例状态

成功:SUCCESS;失败:FAILURE;

Message

string

操作相关信息

"[{"vServerGroupId":"rsp-xxxx","healthCheckHttpVersion":"http1.0","status":"running","gzip":"on","requestId":"89xxxx","description":"abcxxx","bandwidth":-1,"healthCheckTimeout":10,"healthCheckType":"http","aclStatus":"off","unhealthyThreshold":3,"xForwardedFor_SLBID":"off","healthCheckHttpCode":"http_3xx,http_2xx","listenerForward":"off","xForwardedFor":"on","idleTimeout":15,"requestTimeout":60,"listenerPort":80,"healthCheckInterval":2,"healthCheckURI":"/","scheduler":"rr","healthyThreshold":3,"xForwardedFor_proto":"off","xForwardedFor_SLBIP":"off","stickySession":"off","healthCheckMethod":"head","healthCheck":"on","rules":[],"aclIds":[]}]"

Arguments

string

操作相关输出结果

{ "tagMap":{ "cadt": [ "12xxxxxxx", "34xxxxxxx" ] } }

Code

integer

结果码,200 代表成功;其它代表失败。

200

示例

正常返回示例

JSON格式

{
  "Message": "Access key ID cannot be null.",
  "RequestId": "FDC73B05-5331-57AA-BA93-4C9882792FF5",
  "Data": {
    "OperationId": "op_xxxxxxxx",
    "Status": "成功:SUCCESS;失败:FAILURE;",
    "Message": "\"[{\"vServerGroupId\":\"rsp-xxxx\",\"healthCheckHttpVersion\":\"http1.0\",\"status\":\"running\",\"gzip\":\"on\",\"requestId\":\"89xxxx\",\"description\":\"abcxxx\",\"bandwidth\":-1,\"healthCheckTimeout\":10,\"healthCheckType\":\"http\",\"aclStatus\":\"off\",\"unhealthyThreshold\":3,\"xForwardedFor_SLBID\":\"off\",\"healthCheckHttpCode\":\"http_3xx,http_2xx\",\"listenerForward\":\"off\",\"xForwardedFor\":\"on\",\"idleTimeout\":15,\"requestTimeout\":60,\"listenerPort\":80,\"healthCheckInterval\":2,\"healthCheckURI\":\"/\",\"scheduler\":\"rr\",\"healthyThreshold\":3,\"xForwardedFor_proto\":\"off\",\"xForwardedFor_SLBIP\":\"off\",\"stickySession\":\"off\",\"healthCheckMethod\":\"head\",\"healthCheck\":\"on\",\"rules\":[],\"aclIds\":[]}]\"",
    "Arguments": "{\n    \"tagMap\":{\n        \"cadt\": [\n          \"12xxxxxxx\",\n          \"34xxxxxxx\"\n        ]\n    }\n}"
  },
  "Code": 200
}

错误码

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情