创建用户组
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
参数 | 类型 | 是否必填 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | CreateGroup | 要执行的操作,取值:CreateGroup。 |
Version | String | 是 | 2023-01-01 | API的版本,取值:2023-01-01。 |
GroupName | String | 是 | name | 用户组名称 |
Description | String | 否 | desc | 描述 |
JoinType | String | 是 | Manual | 用户组类型 |
DisplayName | String | 否 | displayName | 显示名 |
下表仅列出本接口特有的返回参数。更多信息请参见返回结构。
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
GroupId | String | 1 | 用户组id |
GroupName | String | name | 用户组名称 |
DisplayName | String | displayname | 显示名 |
Description | String | desc | 描述 |
CreatedTime | String | 2024-07-22T21:53:54+08:00 | 创建时间 |
UpdatedTime | String | 2024-07-22T21:53:54+08:00 | 更新时间 |
Source | String | Manual | 用户组来源 |
JoinType | String | Manual | 用户组类型 |
POST /?Action=CreateGroup&Version=2023-01-01 HTTP/1.1 Host: https://open.volcengineapi.com Content-Type: application/json; charset=UTF-8 X-Date: 20250310T112033Z X-Content-Sha256: 287e874e******d653b44d21e Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20250310/cn-beijing/cloudidentity/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f { "GroupName": "FP.hyEQBzZBPeBRKDbwDTz.o4t4FrBcml4Os5YWiN8", "JoinType": "Manual", "DisplayName": "y9" }
{ "ResponseMetadata": { "RequestId": "20250310192038239127213129F4BF2D", "Action": "CreateGroup", "Version": "2023-01-01", "Service": "cloudidentity", "Region": "cn-beijing" }, "Result": { "GroupId": "Mkg", "GroupName": "GT6XdyQp", "DisplayName": "U3", "Description": "rTWgJcb", "CreatedTime": "IuBdsGwtf7a", "UpdatedTime": "xnEd4YF9", "Source": "Manual", "JoinType": "Manual" } }
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
状态码 | 错误码 | 说明 |
---|---|---|
400 | ConcurrentException | 存在请求并发冲突 |
400 | ParamMissing | 参数缺省 |
400 | ServiceStatusException | 企业身份中心实例不可用 |
400 | PermissionError | 没有接口权限 |
409 | GroupAlreadyExists | 用户组 %s 已经存在 |
429 | ReachedQuotaLimit | %s 数量达到最大额度 |
500 | InternalError | 服务内部错误 |