文档

DeleteGatewayService - 删除网关服务

更新时间:

删除网关服务。

调试

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

授权信息

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

  • 操作:是指具体的权限点。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用背景高亮的方式表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作访问级别资源类型条件关键字关联操作
mse:DeleteGatewayServiceWrite
  • Gateway
    acs:mse:{#regionId}:{#accountId}:instance/{#GatewayUniqueId}

请求参数

名称类型必填描述示例值
ServiceIdstring

服务 ID。

190
GatewayIdlong

网关 ID。

60
GatewayUniqueIdstring

网关唯一标识 ID。

gw-1a4ab101d5924b6f92c5ec98a841761f
AcceptLanguagestring

返回信息的语言类型:

  • zh:中文
  • en:英文
zh

返回参数

名称类型描述示例值
object

请求响应结构。

RequestIdstring

请求唯一 ID

B3545F76-6ED1-586F-8DB9-ECE07985F381
HttpStatusCodeinteger

HTTP 状态码。

200
Messagestring

响应信息。

You are not authorized to perform this operation.
Codeinteger

响应码。

200
Successboolean

请求结果,取值如下:

  • true:请求成功。
  • false:请求失败。
true
Dataobject

返回数据。

Idlong

服务 ID。

190
Namestring

服务名称。

test
GatewayUniqueIdstring

网关唯一标识 ID。

gw-7ea3da97b96543e19f6c597c****
GatewayIdlong

网关 ID。

1
SourceTypestring

服务来源

MSE
Namespacestring

命名空间。

default
GroupNamestring

分组名称。

DEFAULT_GROUP
SourceIdlong

来源 ID。

1
ServiceNameInRegistrystring

服务注册到注册中心的名称。

test
MetaInfostring

服务的基本信息。

{}
Ipsarray

IP

string

IP

127.0.1.12
GmtCreatestring

服务创建时间。

2022-01-14 14:39:16
GmtModifiedstring

最后修改时间。

2022-01-07T10:07:57.000+0000

示例

正常返回示例

JSON格式

{
  "RequestId": "B3545F76-6ED1-586F-8DB9-ECE07985F381",
  "HttpStatusCode": 200,
  "Message": "You are not authorized to perform this operation.",
  "Code": 200,
  "Success": true,
  "Data": {
    "Id": 190,
    "Name": "test",
    "GatewayUniqueId": "gw-7ea3da97b96543e19f6c597c****",
    "GatewayId": 1,
    "SourceType": "MSE",
    "Namespace": "default",
    "GroupName": "DEFAULT_GROUP",
    "SourceId": 1,
    "ServiceNameInRegistry": "test",
    "MetaInfo": "{}",
    "Ips": [
      "127.0.1.12"
    ],
    "GmtCreate": "2022-01-14 14:39:16",
    "GmtModified": "2022-01-07T10:07:57.000+0000"
  }
}

错误码

HTTP status code错误码错误信息描述
400IllegalRequestInvalid request:%s非法请求: %s
400InvalidParameterParameter error:%s请求参数错误:%s
403NoPermissionYou are not authorized to perform this operation:%s没有权限使用此接口:%s
404NotFoundNot found:%s资源不存在:%s
500InternalErrorConsole error. Try again later:%s控制台错误.稍后重试:%s

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

变更历史

变更时间变更内容概要操作
2022-03-01新增 OpenAPI看变更集
  • 本页导读 (1)
文档反馈