CreateGatewayLogging_云存储网关_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

流控信息

当前云产品API请求速率暂未透出。

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
hcs-sgw:CreateGatewayLogging
Create
全部资源
*

请求参数

字段名称字段详情
GatewayIdstring

网关 ID。

示例值:gw-000eg44nmxbsfw****参考取值来源:
    ModifyGateway
    CreateGateway
    DescribeGateways
SlsProjectstring

日志服务(SLS) Project。

示例值:alex****
SlsLogstorestring

日志服务(SLS) Logstore。

示例值:logs****

返回参数

字段名称字段详情
Messagestring

请求结果描述。

示例值:successful
RequestIdstring

请求 ID。

示例值:76109369-5729-467D-D4A3-1131A8DA****
Codestring

状态码。状态码为 200 表示请求成功。

示例值:200
Successboolean

调用结果,返回值如下:展开详情

示例值:true

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
EmptyGatewayId
You must enter a valid ID for the gateway.诊断
400
EmptySlsProject
You must specify a valid project of Log Service.诊断
400
EmptySlsLogstore
You must specify a valid Logstore of Log Service.诊断
400
GatewayVersionNotAllowed
The specified version for the gateway is invalid. You must specify a valid version.诊断
400
GatewayLoggingStatusNotAllowed
Failed to perform the operation because log monitoring is not enabled.诊断
400
GatewayNotExist
The specified gateway does not exist. You must specify a valid parameter.诊断
400
InvalidLogstore
You must specify a valid project and Logstore of Log Service. The project and Logstore must reside in the same region as the gateway. You can use the project and Logstore to monitor logs.诊断
403
NoPermission
Insufficient permissions. We recommend that you contact the administrator of the Alibaba Cloud account to grant the required permissions to you.诊断
403
AssumeRoleFail
Failed to perform cross-service authorization. Try again later. If the error persists after several tries, we recommend that you submit a ticket.诊断
404
StorageBundleNotExist
The name you specified for the gateway cluster does not exist. You must specify a valid parameter.诊断
404
RoleNotExist
The role that Cloud Storage Gateway needs to obtain cross-service authorization does not exist. You must grant the required permissions to Cloud Storage Gateway.诊断

变更历史

暂无变更历史

相关示例