You need to enable JavaScript to run this app.
导航
EnableSharingWithOrganization - 开启组织可信服务
最近更新时间:2025.03.03 16:21:36首次发布时间:2025.03.03 16:21:36

开启组织可信服务

请求参数

下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数

参数
类型
是否必填
示例值
描述
Action
String

EnableSharingWithOrganization

要执行的操作,取值:EnableSharingWithOrganization。

Version
String

2024-01-01

API的版本,取值:2024-01-01。

返回参数

本接口无特有的返回参数。更多信息请见返回结构

请求示例

GET /?Action=EnableSharingWithOrganization&Version=2024-01-01 HTTP/1.1
Host: x.y.z
X-Date: 20250224T130757Z
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20250224/cn-beijing/resource_share/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f


返回示例

{
  "ResponseMetadata": {
    "RequestId": "20250224210806245035139160023867",
    "Action": "EnableSharingWithOrganization",
    "Version": "2024-01-01",
    "Service": "resource_share",
    "Region": "cn-beijing"
  },
  "Result": {}
}

错误码

下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。

状态码
错误码
错误信息
说明
400
MissingParameter

Required parameter[%v] is not found

参数缺失,具体缺失的参数在会在Error Message中给出

403
PermissionDenied

you are not manager of the organization, can not disable or enable TrustedService

非管理员,无权开启或关闭可信服务

404
OrganizationNotFound

you are not in any organization

当前账号不在任何组织内,无法进行组织相关的共享操作

500
InternalError

Something went wrong in internal service, please try again later

服务内部系统错误,往往是由服务内部组件异常、网络异常或服务自身bug导致,请及时联系相关管理员进行排查确认