最近更新时间:2023.11.16 15:51:41
首次发布时间:2021.08.31 10:37:28
调用 CreateAcl 接口创建一个访问控制策略组。
名称 | 类型 | 是否必填 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | CreateAcl | 要执行的操作,取值为CreateAcl。 |
Version | String | 是 | 2020-04-01 | API版本信息,当前版本为:2020-04-01。 |
AclName | String | 否 | myacl | 访问控制策略组的名字。
|
Description | String | 否 | This is an acl. | 访问控制策略组的描述,默认值为空字符串。
|
ProjectName | String | 否 | default | 访问控制策略组所属项目的名称。 不传入该参数或该参数不传入数值时,默认为default。 |
Tags.N.Key | String | 否 | Tags.1.Key=k1&Tags.2.Key=k2 | 用户标签的标签键。
|
Tags.N.Value | String | 否 | Tags.1.Value=v1&Tags.2.Value=v2 | 用户标签的标签值。
|
字段 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 20210811152539010225146063030**** | 请求ID。 |
AclId | String | acl-3cj44nv0jhhxc6c6rrtet**** | 访问控制策略组ID。 |
GET /?Action=CreateAcl&Version=2020-04-01&AclName=test&Description=default HTTP/1.1 Host: open.volcengineapi.com Region: cn-beijing Service: clb
{ "ResponseMetadata": { "RequestId": "20210811152539010225146063030****", "Action": "CreateAcl", "Version": "2020-04-01", "Service": "clb", "Region": "cn-beijing" }, "Result": { "RequestId": "20210811152539010225146063030****", "AclId": "acl-3cj44nv0jhhxc6c6rrtet****" } }
此处仅展示当前API的错误码,更多错误码请参见公共错误码。
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | MissingParameter | The request is missing a required parameter. Ensure that you have supplied all the required parameters for the request; for example, the 'XXX'. | 该请求缺少必要参数。请确保发起请求已提供全部必要参数,比如XXX。 说明 其中,XXX表示缺少的参数名称。 |
400 | InvalidDescription.Malformed | The specified Description is malformed. | 指定的 Description 参数格式不合法。 |
400 | InvalidName.Malformed | The specified Name is malformed. | 指定的 Name 参数格式不合法。 |
400 | InvalidIncorrectOrder.Malformed | The specified index order is malformed. | 指定的索引顺序参数格式不合法。 |
400 | InvalidTagKey.Malformed | The specified TagKey is malformed. | 指定的 TagKey 参数格式不合法。 |
400 | InvalidTagValue.Malformed | The specified TagValue is malformed. | 指定的 TagValue 参数格式不合法。 |
400 | LimitExceeded.ServiceManagedTag | You've reached the limit on the number of service managed tags that you can create. | 已达到单次可创建受管资源标签键值数量的上限。 |
400 | LimitExceeded.TagOperation | You've reached the limit on the number of tags that you can operate at a time. | 已达到单次可操作的标签条目数量上限。 |
400 | QuotaExceed.AclNumber | You've reached the limit on the number of ACL that you can create. | 已达到可创建 ACL 的数量的配额上限。 |
400 | InvalidProject.Malformed | The specified Project is malformed. | 指定的 Project 参数格式不合法。 |
403 | Forbidden | You are not authorized to perform operations on the service managed tag. | 无权限对指定资源打上受管标签。 |
404 | InvalidProject.NotFound | The specified Project does not exist. | 指定的项目不存在。 |
409 | InvalidAclName.Conflict | The specified ACL Name already exists. | 指定的 ACL 名称已存在。 |