v20180813

package
v1.0.926 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 7 Imported by: 30

Documentation

Index

Constants

View Source
const (

	// 密钥不合法。
	AUTHFAILURE_ACCESSKEYILLEGAL = "AuthFailure.AccessKeyIllegal"

	// DB错误。
	INTERNALERROR_DBERROR = "InternalError.DbError"

	// 加密失败。
	INTERNALERROR_ENCRYPTERROR = "InternalError.EncryptError"

	// 获取appid错误。
	INTERNALERROR_GETAPPIDERROR = "InternalError.GetAppIdError"

	// 获取角色失败。
	INTERNALERROR_GETROLEERROR = "InternalError.GetRoleError"

	// 获取token失败。
	INTERNALERROR_GETSEEDTOKENERROR = "InternalError.GetSeedTokenError"

	// 角色非法。
	INTERNALERROR_ILLEGALROLE = "InternalError.IllegalRole"

	// pb打包失败。
	INTERNALERROR_PBSERIALIZEERROR = "InternalError.PbSerializeError"

	// 系统内部错误,如网络错误。
	INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"

	// 未知错误。
	INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"

	// 不支持该类型密钥。
	INVALIDPARAMETER_ACCESSKEYNOTSUPPORT = "InvalidParameter.AccessKeyNotSupport"

	// 账号不存在或不可用。
	INVALIDPARAMETER_ACCOUNTNOTAVALIABLE = "InvalidParameter.AccountNotAvaliable"

	// 扩展策略过大。
	INVALIDPARAMETER_EXTENDSTRATEGYOVERSIZE = "InvalidParameter.ExtendStrategyOverSize"

	// 越权访问资源。
	INVALIDPARAMETER_GRANTOTHERRESOURCE = "InvalidParameter.GrantOtherResource"

	// 超过频率限制。
	INVALIDPARAMETER_OVERLIMIT = "InvalidParameter.OverLimit"

	// 过期时间超过阈值。
	INVALIDPARAMETER_OVERTIMEERROR = "InvalidParameter.OverTimeError"

	// 参数错误。
	INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError"

	// 策略过长。
	INVALIDPARAMETER_POLICYTOOLONG = "InvalidParameter.PolicyTooLong"

	// 策略资源六段式错误。
	INVALIDPARAMETER_RESOUCEERROR = "InvalidParameter.ResouceError"

	// 策略语法错误。
	INVALIDPARAMETER_STRATEGYFORMATERROR = "InvalidParameter.StrategyFormatError"

	// 非法策略。
	INVALIDPARAMETER_STRATEGYINVALID = "InvalidParameter.StrategyInvalid"

	// 临时Code无效。
	INVALIDPARAMETER_TEMPCODENOTAVALIABLE = "InvalidParameter.TempCodeNotAvaliable"

	// WebIdentityToken参数错误。
	INVALIDPARAMETER_WEBIDENTITYTOKENERROR = "InvalidParameter.WebIdentityTokenError"

	// 请求的次数超过了频率限制。
	REQUESTLIMITEXCEEDED = "RequestLimitExceeded"

	// 账号对应的角色不存在。
	RESOURCENOTFOUND_ROLENOTFOUND = "ResourceNotFound.RoleNotFound"

	// 未授权操作。
	UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

	// 操作不支持。
	UNSUPPORTEDOPERATION = "UnsupportedOperation"
)
View Source
const APIVersion = "2018-08-13"

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiKey

type ApiKey struct {
	// 密钥ID
	SecretId *string `json:"SecretId,omitnil,omitempty" name:"SecretId"`

	// 创建时间(时间戳)
	CreateTime *uint64 `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`

	// 状态(2:有效, 3:禁用, 4:已删除)
	Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
}

type AssumeRoleRequest

type AssumeRoleRequest struct {
	*tchttp.BaseRequest

	// 角色的资源描述,可在[访问管理](https://console.cloud.tencent.com/cam/role),点击角色名获取。
	// 普通角色:
	// qcs::cam::uin/12345678:role/4611686018427397919、qcs::cam::uin/12345678:roleName/testRoleName
	// 服务角色:
	// qcs::cam::uin/12345678:role/tencentcloudServiceRole/4611686018427397920、qcs::cam::uin/12345678:role/tencentcloudServiceRoleName/testServiceRoleName
	RoleArn *string `json:"RoleArn,omitnil,omitempty" name:"RoleArn"`

	// 临时会话名称,由用户自定义名称。
	// 长度在2到128之间,可包含大小写字符,数字以及特殊字符:=,.@_-。 正则为:[\w+=,.@_-]*
	RoleSessionName *string `json:"RoleSessionName,omitnil,omitempty" name:"RoleSessionName"`

	// 指定临时访问凭证的有效期,单位:秒,默认 7200 秒,最长可设定有效期为 43200 秒
	DurationSeconds *uint64 `json:"DurationSeconds,omitnil,omitempty" name:"DurationSeconds"`

	// 策略描述
	// 注意:
	// 1、该参数需要做urlencode,服务端会对该字段做urldecode, 并按处理后Policy授予临时访问凭证权限,请按规范传入参数。(如果通过 GET 方法请求云 API,发送请求前,所有参数都需要按照[云 API 规范](https://cloud.tencent.com/document/api/598/33159#1.-.E6.8B.BC.E6.8E.A5.E8.A7.84.E8.8C.83.E8.AF.B7.E6.B1.82.E4.B8.B2)再 urlencode 一次)。
	// 2、策略语法参照[ CAM 策略语法](https://cloud.tencent.com/document/product/598/10603)。
	// 3、策略中不能包含 principal 元素。
	Policy *string `json:"Policy,omitnil,omitempty" name:"Policy"`

	// 角色外部ID,可在[访问管理](https://console.cloud.tencent.com/cam/role),点击角色名获取。
	// 长度在2到128之间,可包含大小写字符,数字以及特殊字符:=,.@:/-。 正则为:[\w+=,.@:\/-]*
	ExternalId *string `json:"ExternalId,omitnil,omitempty" name:"ExternalId"`

	// 会话标签列表。最多可以传递 50 个会话标签,不支持包含相同标签键。
	Tags []*Tag `json:"Tags,omitnil,omitempty" name:"Tags"`

	// 调用者身份uin
	SourceIdentity *string `json:"SourceIdentity,omitnil,omitempty" name:"SourceIdentity"`
}

func NewAssumeRoleRequest

func NewAssumeRoleRequest() (request *AssumeRoleRequest)

func (*AssumeRoleRequest) FromJsonString

func (r *AssumeRoleRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AssumeRoleRequest) ToJsonString

func (r *AssumeRoleRequest) ToJsonString() string

type AssumeRoleRequestParams added in v1.0.426

type AssumeRoleRequestParams struct {
	// 角色的资源描述,可在[访问管理](https://console.cloud.tencent.com/cam/role),点击角色名获取。
	// 普通角色:
	// qcs::cam::uin/12345678:role/4611686018427397919、qcs::cam::uin/12345678:roleName/testRoleName
	// 服务角色:
	// qcs::cam::uin/12345678:role/tencentcloudServiceRole/4611686018427397920、qcs::cam::uin/12345678:role/tencentcloudServiceRoleName/testServiceRoleName
	RoleArn *string `json:"RoleArn,omitnil,omitempty" name:"RoleArn"`

	// 临时会话名称,由用户自定义名称。
	// 长度在2到128之间,可包含大小写字符,数字以及特殊字符:=,.@_-。 正则为:[\w+=,.@_-]*
	RoleSessionName *string `json:"RoleSessionName,omitnil,omitempty" name:"RoleSessionName"`

	// 指定临时访问凭证的有效期,单位:秒,默认 7200 秒,最长可设定有效期为 43200 秒
	DurationSeconds *uint64 `json:"DurationSeconds,omitnil,omitempty" name:"DurationSeconds"`

	// 策略描述
	// 注意:
	// 1、该参数需要做urlencode,服务端会对该字段做urldecode, 并按处理后Policy授予临时访问凭证权限,请按规范传入参数。(如果通过 GET 方法请求云 API,发送请求前,所有参数都需要按照[云 API 规范](https://cloud.tencent.com/document/api/598/33159#1.-.E6.8B.BC.E6.8E.A5.E8.A7.84.E8.8C.83.E8.AF.B7.E6.B1.82.E4.B8.B2)再 urlencode 一次)。
	// 2、策略语法参照[ CAM 策略语法](https://cloud.tencent.com/document/product/598/10603)。
	// 3、策略中不能包含 principal 元素。
	Policy *string `json:"Policy,omitnil,omitempty" name:"Policy"`

	// 角色外部ID,可在[访问管理](https://console.cloud.tencent.com/cam/role),点击角色名获取。
	// 长度在2到128之间,可包含大小写字符,数字以及特殊字符:=,.@:/-。 正则为:[\w+=,.@:\/-]*
	ExternalId *string `json:"ExternalId,omitnil,omitempty" name:"ExternalId"`

	// 会话标签列表。最多可以传递 50 个会话标签,不支持包含相同标签键。
	Tags []*Tag `json:"Tags,omitnil,omitempty" name:"Tags"`

	// 调用者身份uin
	SourceIdentity *string `json:"SourceIdentity,omitnil,omitempty" name:"SourceIdentity"`
}

Predefined struct for user

type AssumeRoleResponse

type AssumeRoleResponse struct {
	*tchttp.BaseResponse
	Response *AssumeRoleResponseParams `json:"Response"`
}

func NewAssumeRoleResponse

func NewAssumeRoleResponse() (response *AssumeRoleResponse)

func (*AssumeRoleResponse) FromJsonString

func (r *AssumeRoleResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AssumeRoleResponse) ToJsonString

func (r *AssumeRoleResponse) ToJsonString() string

type AssumeRoleResponseParams added in v1.0.426

type AssumeRoleResponseParams struct {
	// 临时访问凭证
	Credentials *Credentials `json:"Credentials,omitnil,omitempty" name:"Credentials"`

	// 临时访问凭证的过期时间,返回 Unix 时间戳,精确到秒
	ExpiredTime *int64 `json:"ExpiredTime,omitnil,omitempty" name:"ExpiredTime"`

	// 临时访问凭证的过期时间,以 iso8601 格式的 UTC 时间表示
	Expiration *string `json:"Expiration,omitnil,omitempty" name:"Expiration"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type AssumeRoleWithSAMLRequest

type AssumeRoleWithSAMLRequest struct {
	*tchttp.BaseRequest

	// base64 编码的 SAML 断言信息
	SAMLAssertion *string `json:"SAMLAssertion,omitnil,omitempty" name:"SAMLAssertion"`

	// 扮演者访问描述名
	PrincipalArn *string `json:"PrincipalArn,omitnil,omitempty" name:"PrincipalArn"`

	// 角色访问描述名
	RoleArn *string `json:"RoleArn,omitnil,omitempty" name:"RoleArn"`

	// 会话名称
	RoleSessionName *string `json:"RoleSessionName,omitnil,omitempty" name:"RoleSessionName"`

	// 指定临时访问凭证的有效期,单位:秒,默认 7200 秒,最长可设定有效期为 43200 秒
	DurationSeconds *uint64 `json:"DurationSeconds,omitnil,omitempty" name:"DurationSeconds"`
}

func NewAssumeRoleWithSAMLRequest

func NewAssumeRoleWithSAMLRequest() (request *AssumeRoleWithSAMLRequest)

func (*AssumeRoleWithSAMLRequest) FromJsonString

func (r *AssumeRoleWithSAMLRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AssumeRoleWithSAMLRequest) ToJsonString

func (r *AssumeRoleWithSAMLRequest) ToJsonString() string

type AssumeRoleWithSAMLRequestParams added in v1.0.426

type AssumeRoleWithSAMLRequestParams struct {
	// base64 编码的 SAML 断言信息
	SAMLAssertion *string `json:"SAMLAssertion,omitnil,omitempty" name:"SAMLAssertion"`

	// 扮演者访问描述名
	PrincipalArn *string `json:"PrincipalArn,omitnil,omitempty" name:"PrincipalArn"`

	// 角色访问描述名
	RoleArn *string `json:"RoleArn,omitnil,omitempty" name:"RoleArn"`

	// 会话名称
	RoleSessionName *string `json:"RoleSessionName,omitnil,omitempty" name:"RoleSessionName"`

	// 指定临时访问凭证的有效期,单位:秒,默认 7200 秒,最长可设定有效期为 43200 秒
	DurationSeconds *uint64 `json:"DurationSeconds,omitnil,omitempty" name:"DurationSeconds"`
}

Predefined struct for user

type AssumeRoleWithSAMLResponse

type AssumeRoleWithSAMLResponse struct {
	*tchttp.BaseResponse
	Response *AssumeRoleWithSAMLResponseParams `json:"Response"`
}

func NewAssumeRoleWithSAMLResponse

func NewAssumeRoleWithSAMLResponse() (response *AssumeRoleWithSAMLResponse)

func (*AssumeRoleWithSAMLResponse) FromJsonString

func (r *AssumeRoleWithSAMLResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AssumeRoleWithSAMLResponse) ToJsonString

func (r *AssumeRoleWithSAMLResponse) ToJsonString() string

type AssumeRoleWithSAMLResponseParams added in v1.0.426

type AssumeRoleWithSAMLResponseParams struct {
	// 对象里面包含 Token,TmpSecretId,TmpSecretKey 三元组
	Credentials *Credentials `json:"Credentials,omitnil,omitempty" name:"Credentials"`

	// 临时访问凭证的过期时间,返回 Unix 时间戳,精确到秒
	ExpiredTime *uint64 `json:"ExpiredTime,omitnil,omitempty" name:"ExpiredTime"`

	// 临时访问凭证的过期时间,以 ISO8601 格式的 UTC 时间表示
	Expiration *string `json:"Expiration,omitnil,omitempty" name:"Expiration"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type AssumeRoleWithWebIdentityRequest added in v1.0.390

type AssumeRoleWithWebIdentityRequest struct {
	*tchttp.BaseRequest

	// 身份提供商名称
	ProviderId *string `json:"ProviderId,omitnil,omitempty" name:"ProviderId"`

	// IdP签发的OIDC令牌
	WebIdentityToken *string `json:"WebIdentityToken,omitnil,omitempty" name:"WebIdentityToken"`

	// 角色访问描述名
	RoleArn *string `json:"RoleArn,omitnil,omitempty" name:"RoleArn"`

	// 会话名称
	RoleSessionName *string `json:"RoleSessionName,omitnil,omitempty" name:"RoleSessionName"`

	// 指定临时访问凭证的有效期,单位:秒,默认 7200 秒,最长可设定有效期为 43200 秒
	DurationSeconds *int64 `json:"DurationSeconds,omitnil,omitempty" name:"DurationSeconds"`
}

func NewAssumeRoleWithWebIdentityRequest added in v1.0.390

func NewAssumeRoleWithWebIdentityRequest() (request *AssumeRoleWithWebIdentityRequest)

func (*AssumeRoleWithWebIdentityRequest) FromJsonString added in v1.0.390

func (r *AssumeRoleWithWebIdentityRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AssumeRoleWithWebIdentityRequest) ToJsonString added in v1.0.390

func (r *AssumeRoleWithWebIdentityRequest) ToJsonString() string

type AssumeRoleWithWebIdentityRequestParams added in v1.0.426

type AssumeRoleWithWebIdentityRequestParams struct {
	// 身份提供商名称
	ProviderId *string `json:"ProviderId,omitnil,omitempty" name:"ProviderId"`

	// IdP签发的OIDC令牌
	WebIdentityToken *string `json:"WebIdentityToken,omitnil,omitempty" name:"WebIdentityToken"`

	// 角色访问描述名
	RoleArn *string `json:"RoleArn,omitnil,omitempty" name:"RoleArn"`

	// 会话名称
	RoleSessionName *string `json:"RoleSessionName,omitnil,omitempty" name:"RoleSessionName"`

	// 指定临时访问凭证的有效期,单位:秒,默认 7200 秒,最长可设定有效期为 43200 秒
	DurationSeconds *int64 `json:"DurationSeconds,omitnil,omitempty" name:"DurationSeconds"`
}

Predefined struct for user

type AssumeRoleWithWebIdentityResponse added in v1.0.390

type AssumeRoleWithWebIdentityResponse struct {
	*tchttp.BaseResponse
	Response *AssumeRoleWithWebIdentityResponseParams `json:"Response"`
}

func NewAssumeRoleWithWebIdentityResponse added in v1.0.390

func NewAssumeRoleWithWebIdentityResponse() (response *AssumeRoleWithWebIdentityResponse)

func (*AssumeRoleWithWebIdentityResponse) FromJsonString added in v1.0.390

func (r *AssumeRoleWithWebIdentityResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AssumeRoleWithWebIdentityResponse) ToJsonString added in v1.0.390

func (r *AssumeRoleWithWebIdentityResponse) ToJsonString() string

type AssumeRoleWithWebIdentityResponseParams added in v1.0.426

type AssumeRoleWithWebIdentityResponseParams struct {
	// 临时访问凭证过期时间(时间戳)
	ExpiredTime *uint64 `json:"ExpiredTime,omitnil,omitempty" name:"ExpiredTime"`

	// 临时访问凭证过期时间
	Expiration *string `json:"Expiration,omitnil,omitempty" name:"Expiration"`

	// 临时访问凭证
	Credentials *Credentials `json:"Credentials,omitnil,omitempty" name:"Credentials"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func NewClientWithSecretId

func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error)

Deprecated

func (*Client) AssumeRole

func (c *Client) AssumeRole(request *AssumeRoleRequest) (response *AssumeRoleResponse, err error)

AssumeRole 申请扮演角色临时访问凭证。

1、角色策略组成

(1)角色信任策略:指定谁可以扮演该角色;

(2)角色权限策略:指定扮演角色后可以执行哪些操作。

2、角色可扮演条件

(1)给用户绑定允许调用AssumeRole的策略 ;

(2)将用户添加为角色信任策略中的主体。

可能返回的错误码:

INTERNALERROR_DBERROR = "InternalError.DbError"
INTERNALERROR_ENCRYPTERROR = "InternalError.EncryptError"
INTERNALERROR_GETAPPIDERROR = "InternalError.GetAppIdError"
INTERNALERROR_GETROLEERROR = "InternalError.GetRoleError"
INTERNALERROR_GETSEEDTOKENERROR = "InternalError.GetSeedTokenError"
INTERNALERROR_ILLEGALROLE = "InternalError.IllegalRole"
INTERNALERROR_PBSERIALIZEERROR = "InternalError.PbSerializeError"
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
INVALIDPARAMETER_ACCOUNTNOTAVALIABLE = "InvalidParameter.AccountNotAvaliable"
INVALIDPARAMETER_EXTENDSTRATEGYOVERSIZE = "InvalidParameter.ExtendStrategyOverSize"
INVALIDPARAMETER_GRANTOTHERRESOURCE = "InvalidParameter.GrantOtherResource"
INVALIDPARAMETER_OVERLIMIT = "InvalidParameter.OverLimit"
INVALIDPARAMETER_OVERTIMEERROR = "InvalidParameter.OverTimeError"
INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError"
INVALIDPARAMETER_POLICYTOOLONG = "InvalidParameter.PolicyTooLong"
INVALIDPARAMETER_RESOUCEERROR = "InvalidParameter.ResouceError"
INVALIDPARAMETER_STRATEGYFORMATERROR = "InvalidParameter.StrategyFormatError"
INVALIDPARAMETER_STRATEGYINVALID = "InvalidParameter.StrategyInvalid"
INVALIDPARAMETER_TEMPCODENOTAVALIABLE = "InvalidParameter.TempCodeNotAvaliable"
RESOURCENOTFOUND_ROLENOTFOUND = "ResourceNotFound.RoleNotFound"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNSUPPORTEDOPERATION = "UnsupportedOperation"

func (*Client) AssumeRoleWithContext added in v1.0.324

func (c *Client) AssumeRoleWithContext(ctx context.Context, request *AssumeRoleRequest) (response *AssumeRoleResponse, err error)

AssumeRole 申请扮演角色临时访问凭证。

1、角色策略组成

(1)角色信任策略:指定谁可以扮演该角色;

(2)角色权限策略:指定扮演角色后可以执行哪些操作。

2、角色可扮演条件

(1)给用户绑定允许调用AssumeRole的策略 ;

(2)将用户添加为角色信任策略中的主体。

可能返回的错误码:

INTERNALERROR_DBERROR = "InternalError.DbError"
INTERNALERROR_ENCRYPTERROR = "InternalError.EncryptError"
INTERNALERROR_GETAPPIDERROR = "InternalError.GetAppIdError"
INTERNALERROR_GETROLEERROR = "InternalError.GetRoleError"
INTERNALERROR_GETSEEDTOKENERROR = "InternalError.GetSeedTokenError"
INTERNALERROR_ILLEGALROLE = "InternalError.IllegalRole"
INTERNALERROR_PBSERIALIZEERROR = "InternalError.PbSerializeError"
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
INVALIDPARAMETER_ACCOUNTNOTAVALIABLE = "InvalidParameter.AccountNotAvaliable"
INVALIDPARAMETER_EXTENDSTRATEGYOVERSIZE = "InvalidParameter.ExtendStrategyOverSize"
INVALIDPARAMETER_GRANTOTHERRESOURCE = "InvalidParameter.GrantOtherResource"
INVALIDPARAMETER_OVERLIMIT = "InvalidParameter.OverLimit"
INVALIDPARAMETER_OVERTIMEERROR = "InvalidParameter.OverTimeError"
INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError"
INVALIDPARAMETER_POLICYTOOLONG = "InvalidParameter.PolicyTooLong"
INVALIDPARAMETER_RESOUCEERROR = "InvalidParameter.ResouceError"
INVALIDPARAMETER_STRATEGYFORMATERROR = "InvalidParameter.StrategyFormatError"
INVALIDPARAMETER_STRATEGYINVALID = "InvalidParameter.StrategyInvalid"
INVALIDPARAMETER_TEMPCODENOTAVALIABLE = "InvalidParameter.TempCodeNotAvaliable"
RESOURCENOTFOUND_ROLENOTFOUND = "ResourceNotFound.RoleNotFound"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNSUPPORTEDOPERATION = "UnsupportedOperation"

func (*Client) AssumeRoleWithSAML

func (c *Client) AssumeRoleWithSAML(request *AssumeRoleWithSAMLRequest) (response *AssumeRoleWithSAMLResponse, err error)

AssumeRoleWithSAML 本接口(AssumeRoleWithSAML)用于根据 SAML 断言申请角色临时访问凭证。

注意:当使用签名方法 V3 调用本接口时,请求头无须传入 X-TC-Token, 但 Authorization 需要传入值 SKIP。

可能返回的错误码:

INTERNALERROR_DBERROR = "InternalError.DbError"
INTERNALERROR_ENCRYPTERROR = "InternalError.EncryptError"
INTERNALERROR_GETAPPIDERROR = "InternalError.GetAppIdError"
INTERNALERROR_GETROLEERROR = "InternalError.GetRoleError"
INTERNALERROR_GETSEEDTOKENERROR = "InternalError.GetSeedTokenError"
INTERNALERROR_ILLEGALROLE = "InternalError.IllegalRole"
INTERNALERROR_PBSERIALIZEERROR = "InternalError.PbSerializeError"
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
INVALIDPARAMETER_ACCOUNTNOTAVALIABLE = "InvalidParameter.AccountNotAvaliable"
INVALIDPARAMETER_EXTENDSTRATEGYOVERSIZE = "InvalidParameter.ExtendStrategyOverSize"
INVALIDPARAMETER_GRANTOTHERRESOURCE = "InvalidParameter.GrantOtherResource"
INVALIDPARAMETER_OVERLIMIT = "InvalidParameter.OverLimit"
INVALIDPARAMETER_OVERTIMEERROR = "InvalidParameter.OverTimeError"
INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError"
INVALIDPARAMETER_POLICYTOOLONG = "InvalidParameter.PolicyTooLong"
INVALIDPARAMETER_RESOUCEERROR = "InvalidParameter.ResouceError"
INVALIDPARAMETER_STRATEGYFORMATERROR = "InvalidParameter.StrategyFormatError"
INVALIDPARAMETER_STRATEGYINVALID = "InvalidParameter.StrategyInvalid"
INVALIDPARAMETER_TEMPCODENOTAVALIABLE = "InvalidParameter.TempCodeNotAvaliable"
REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
RESOURCENOTFOUND_ROLENOTFOUND = "ResourceNotFound.RoleNotFound"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) AssumeRoleWithSAMLWithContext added in v1.0.324

func (c *Client) AssumeRoleWithSAMLWithContext(ctx context.Context, request *AssumeRoleWithSAMLRequest) (response *AssumeRoleWithSAMLResponse, err error)

AssumeRoleWithSAML 本接口(AssumeRoleWithSAML)用于根据 SAML 断言申请角色临时访问凭证。

注意:当使用签名方法 V3 调用本接口时,请求头无须传入 X-TC-Token, 但 Authorization 需要传入值 SKIP。

可能返回的错误码:

INTERNALERROR_DBERROR = "InternalError.DbError"
INTERNALERROR_ENCRYPTERROR = "InternalError.EncryptError"
INTERNALERROR_GETAPPIDERROR = "InternalError.GetAppIdError"
INTERNALERROR_GETROLEERROR = "InternalError.GetRoleError"
INTERNALERROR_GETSEEDTOKENERROR = "InternalError.GetSeedTokenError"
INTERNALERROR_ILLEGALROLE = "InternalError.IllegalRole"
INTERNALERROR_PBSERIALIZEERROR = "InternalError.PbSerializeError"
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
INVALIDPARAMETER_ACCOUNTNOTAVALIABLE = "InvalidParameter.AccountNotAvaliable"
INVALIDPARAMETER_EXTENDSTRATEGYOVERSIZE = "InvalidParameter.ExtendStrategyOverSize"
INVALIDPARAMETER_GRANTOTHERRESOURCE = "InvalidParameter.GrantOtherResource"
INVALIDPARAMETER_OVERLIMIT = "InvalidParameter.OverLimit"
INVALIDPARAMETER_OVERTIMEERROR = "InvalidParameter.OverTimeError"
INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError"
INVALIDPARAMETER_POLICYTOOLONG = "InvalidParameter.PolicyTooLong"
INVALIDPARAMETER_RESOUCEERROR = "InvalidParameter.ResouceError"
INVALIDPARAMETER_STRATEGYFORMATERROR = "InvalidParameter.StrategyFormatError"
INVALIDPARAMETER_STRATEGYINVALID = "InvalidParameter.StrategyInvalid"
INVALIDPARAMETER_TEMPCODENOTAVALIABLE = "InvalidParameter.TempCodeNotAvaliable"
REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
RESOURCENOTFOUND_ROLENOTFOUND = "ResourceNotFound.RoleNotFound"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) AssumeRoleWithWebIdentity added in v1.0.390

func (c *Client) AssumeRoleWithWebIdentity(request *AssumeRoleWithWebIdentityRequest) (response *AssumeRoleWithWebIdentityResponse, err error)

AssumeRoleWithWebIdentity 申请OIDC角色临时访问凭证。

注意:当使用签名方法 V3 调用本接口时,请求头无须传入 X-TC-Token, 但 Authorization 需要传入值 SKIP。

可能返回的错误码:

INTERNALERROR_GETROLEERROR = "InternalError.GetRoleError"
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
INVALIDPARAMETER_OVERLIMIT = "InvalidParameter.OverLimit"
INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError"
INVALIDPARAMETER_WEBIDENTITYTOKENERROR = "InvalidParameter.WebIdentityTokenError"
REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) AssumeRoleWithWebIdentityWithContext added in v1.0.390

func (c *Client) AssumeRoleWithWebIdentityWithContext(ctx context.Context, request *AssumeRoleWithWebIdentityRequest) (response *AssumeRoleWithWebIdentityResponse, err error)

AssumeRoleWithWebIdentity 申请OIDC角色临时访问凭证。

注意:当使用签名方法 V3 调用本接口时,请求头无须传入 X-TC-Token, 但 Authorization 需要传入值 SKIP。

可能返回的错误码:

INTERNALERROR_GETROLEERROR = "InternalError.GetRoleError"
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
INVALIDPARAMETER_OVERLIMIT = "InvalidParameter.OverLimit"
INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError"
INVALIDPARAMETER_WEBIDENTITYTOKENERROR = "InvalidParameter.WebIdentityTokenError"
REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) GetCallerIdentity added in v1.0.314

func (c *Client) GetCallerIdentity(request *GetCallerIdentityRequest) (response *GetCallerIdentityResponse, err error)

GetCallerIdentity 获取当前调用者的身份信息。

接口支持主账号,子账号长期密钥以及AssumeRole,GetFederationToken生成的临时访问凭证身份获取。

可能返回的错误码:

AUTHFAILURE_ACCESSKEYILLEGAL = "AuthFailure.AccessKeyIllegal"
INTERNALERROR_GETSEEDTOKENERROR = "InternalError.GetSeedTokenError"
INVALIDPARAMETER_ACCESSKEYNOTSUPPORT = "InvalidParameter.AccessKeyNotSupport"

func (*Client) GetCallerIdentityWithContext added in v1.0.324

func (c *Client) GetCallerIdentityWithContext(ctx context.Context, request *GetCallerIdentityRequest) (response *GetCallerIdentityResponse, err error)

GetCallerIdentity 获取当前调用者的身份信息。

接口支持主账号,子账号长期密钥以及AssumeRole,GetFederationToken生成的临时访问凭证身份获取。

可能返回的错误码:

AUTHFAILURE_ACCESSKEYILLEGAL = "AuthFailure.AccessKeyIllegal"
INTERNALERROR_GETSEEDTOKENERROR = "InternalError.GetSeedTokenError"
INVALIDPARAMETER_ACCESSKEYNOTSUPPORT = "InvalidParameter.AccessKeyNotSupport"

func (*Client) GetFederationToken

func (c *Client) GetFederationToken(request *GetFederationTokenRequest) (response *GetFederationTokenResponse, err error)

GetFederationToken **使用说明**

返回一组临时访问凭证,典型的应用场景是代理应用程序集中申请临时访问凭证,下发给企业网络内其他分布式终端应用,比如终端应用上传文件到COS场景,本接口仅支持永久密钥调用。

**最佳实践**

1. 临时访问凭据在有效期内都可以使用,建议在有效期内重复使用,以避免业务请求速率上升后被限频

2. 授予临时访问凭证权限的CAM策略,建议按权限最小化原则

3. 调用接口的永久密钥,建议不要使用主账号

可能返回的错误码:

INTERNALERROR_DBERROR = "InternalError.DbError"
INTERNALERROR_ENCRYPTERROR = "InternalError.EncryptError"
INTERNALERROR_GETAPPIDERROR = "InternalError.GetAppIdError"
INTERNALERROR_GETSEEDTOKENERROR = "InternalError.GetSeedTokenError"
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
INVALIDPARAMETER_ACCOUNTNOTAVALIABLE = "InvalidParameter.AccountNotAvaliable"
INVALIDPARAMETER_EXTENDSTRATEGYOVERSIZE = "InvalidParameter.ExtendStrategyOverSize"
INVALIDPARAMETER_GRANTOTHERRESOURCE = "InvalidParameter.GrantOtherResource"
INVALIDPARAMETER_OVERTIMEERROR = "InvalidParameter.OverTimeError"
INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError"
INVALIDPARAMETER_POLICYTOOLONG = "InvalidParameter.PolicyTooLong"
INVALIDPARAMETER_RESOUCEERROR = "InvalidParameter.ResouceError"
INVALIDPARAMETER_STRATEGYFORMATERROR = "InvalidParameter.StrategyFormatError"
INVALIDPARAMETER_STRATEGYINVALID = "InvalidParameter.StrategyInvalid"
INVALIDPARAMETER_TEMPCODENOTAVALIABLE = "InvalidParameter.TempCodeNotAvaliable"
RESOURCENOTFOUND_ROLENOTFOUND = "ResourceNotFound.RoleNotFound"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNSUPPORTEDOPERATION = "UnsupportedOperation"

func (*Client) GetFederationTokenWithContext added in v1.0.324

func (c *Client) GetFederationTokenWithContext(ctx context.Context, request *GetFederationTokenRequest) (response *GetFederationTokenResponse, err error)

GetFederationToken **使用说明**

返回一组临时访问凭证,典型的应用场景是代理应用程序集中申请临时访问凭证,下发给企业网络内其他分布式终端应用,比如终端应用上传文件到COS场景,本接口仅支持永久密钥调用。

**最佳实践**

1. 临时访问凭据在有效期内都可以使用,建议在有效期内重复使用,以避免业务请求速率上升后被限频

2. 授予临时访问凭证权限的CAM策略,建议按权限最小化原则

3. 调用接口的永久密钥,建议不要使用主账号

可能返回的错误码:

INTERNALERROR_DBERROR = "InternalError.DbError"
INTERNALERROR_ENCRYPTERROR = "InternalError.EncryptError"
INTERNALERROR_GETAPPIDERROR = "InternalError.GetAppIdError"
INTERNALERROR_GETSEEDTOKENERROR = "InternalError.GetSeedTokenError"
INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
INVALIDPARAMETER_ACCOUNTNOTAVALIABLE = "InvalidParameter.AccountNotAvaliable"
INVALIDPARAMETER_EXTENDSTRATEGYOVERSIZE = "InvalidParameter.ExtendStrategyOverSize"
INVALIDPARAMETER_GRANTOTHERRESOURCE = "InvalidParameter.GrantOtherResource"
INVALIDPARAMETER_OVERTIMEERROR = "InvalidParameter.OverTimeError"
INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError"
INVALIDPARAMETER_POLICYTOOLONG = "InvalidParameter.PolicyTooLong"
INVALIDPARAMETER_RESOUCEERROR = "InvalidParameter.ResouceError"
INVALIDPARAMETER_STRATEGYFORMATERROR = "InvalidParameter.StrategyFormatError"
INVALIDPARAMETER_STRATEGYINVALID = "InvalidParameter.StrategyInvalid"
INVALIDPARAMETER_TEMPCODENOTAVALIABLE = "InvalidParameter.TempCodeNotAvaliable"
RESOURCENOTFOUND_ROLENOTFOUND = "ResourceNotFound.RoleNotFound"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNSUPPORTEDOPERATION = "UnsupportedOperation"

func (*Client) QueryApiKey

func (c *Client) QueryApiKey(request *QueryApiKeyRequest) (response *QueryApiKeyResponse, err error)

QueryApiKey 拉取API密钥列表

可能返回的错误码:

INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError"

func (*Client) QueryApiKeyWithContext added in v1.0.324

func (c *Client) QueryApiKeyWithContext(ctx context.Context, request *QueryApiKeyRequest) (response *QueryApiKeyResponse, err error)

QueryApiKey 拉取API密钥列表

可能返回的错误码:

INTERNALERROR_SYSTEMERROR = "InternalError.SystemError"
INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError"

type Credentials

type Credentials struct {
	// token。token长度和绑定的策略有关,最长不超过4096字节。
	Token *string `json:"Token,omitnil,omitempty" name:"Token"`

	// 临时证书密钥ID。最长不超过1024字节。
	TmpSecretId *string `json:"TmpSecretId,omitnil,omitempty" name:"TmpSecretId"`

	// 临时证书密钥Key。最长不超过1024字节。
	TmpSecretKey *string `json:"TmpSecretKey,omitnil,omitempty" name:"TmpSecretKey"`
}

type GetCallerIdentityRequest added in v1.0.314

type GetCallerIdentityRequest struct {
	*tchttp.BaseRequest
}

func NewGetCallerIdentityRequest added in v1.0.314

func NewGetCallerIdentityRequest() (request *GetCallerIdentityRequest)

func (*GetCallerIdentityRequest) FromJsonString added in v1.0.314

func (r *GetCallerIdentityRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetCallerIdentityRequest) ToJsonString added in v1.0.314

func (r *GetCallerIdentityRequest) ToJsonString() string

type GetCallerIdentityRequestParams added in v1.0.426

type GetCallerIdentityRequestParams struct {
}

Predefined struct for user

type GetCallerIdentityResponse added in v1.0.314

type GetCallerIdentityResponse struct {
	*tchttp.BaseResponse
	Response *GetCallerIdentityResponseParams `json:"Response"`
}

func NewGetCallerIdentityResponse added in v1.0.314

func NewGetCallerIdentityResponse() (response *GetCallerIdentityResponse)

func (*GetCallerIdentityResponse) FromJsonString added in v1.0.314

func (r *GetCallerIdentityResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetCallerIdentityResponse) ToJsonString added in v1.0.314

func (r *GetCallerIdentityResponse) ToJsonString() string

type GetCallerIdentityResponseParams added in v1.0.426

type GetCallerIdentityResponseParams struct {
	// 当前调用者ARN。
	Arn *string `json:"Arn,omitnil,omitempty" name:"Arn"`

	// 当前调用者所属主账号Uin。
	AccountId *string `json:"AccountId,omitnil,omitempty" name:"AccountId"`

	// 身份标识。
	// 1. 调用者是云账号时,返回的是当前账号Uin
	// 2. 调用者是角色时,返回的是roleId:roleSessionName
	// 3. 调用者是联合身份时,返回的是uin:federatedUserName
	UserId *string `json:"UserId,omitnil,omitempty" name:"UserId"`

	// 密钥所属账号Uin。
	// 1. 调用者是云账号,返回的当前账号Uin
	// 2, 调用者是角色,返回的申请角色密钥的账号Uin
	PrincipalId *string `json:"PrincipalId,omitnil,omitempty" name:"PrincipalId"`

	// 身份类型。
	Type *string `json:"Type,omitnil,omitempty" name:"Type"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type GetFederationTokenRequest

type GetFederationTokenRequest struct {
	*tchttp.BaseRequest

	// 您可以自定义调用方英文名称,由字母组成。
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// 注意:
	// 1、策略语法参照[ CAM 策略语法](https://cloud.tencent.com/document/product/598/10603)。
	// 2、策略中不能包含 principal 元素。
	// 3、该参数需要做urlencode,服务端会对该字段做urldecode, 并按处理后Policy授予临时访问凭证权限,请按规范传入参数。
	Policy *string `json:"Policy,omitnil,omitempty" name:"Policy"`

	// 指定临时证书的有效期,单位:秒,默认1800秒,主账号最长可设定有效期为7200秒,子账号最长可设定有效期为129600秒。
	DurationSeconds *uint64 `json:"DurationSeconds,omitnil,omitempty" name:"DurationSeconds"`
}

func NewGetFederationTokenRequest

func NewGetFederationTokenRequest() (request *GetFederationTokenRequest)

func (*GetFederationTokenRequest) FromJsonString

func (r *GetFederationTokenRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetFederationTokenRequest) ToJsonString

func (r *GetFederationTokenRequest) ToJsonString() string

type GetFederationTokenRequestParams added in v1.0.426

type GetFederationTokenRequestParams struct {
	// 您可以自定义调用方英文名称,由字母组成。
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// 注意:
	// 1、策略语法参照[ CAM 策略语法](https://cloud.tencent.com/document/product/598/10603)。
	// 2、策略中不能包含 principal 元素。
	// 3、该参数需要做urlencode,服务端会对该字段做urldecode, 并按处理后Policy授予临时访问凭证权限,请按规范传入参数。
	Policy *string `json:"Policy,omitnil,omitempty" name:"Policy"`

	// 指定临时证书的有效期,单位:秒,默认1800秒,主账号最长可设定有效期为7200秒,子账号最长可设定有效期为129600秒。
	DurationSeconds *uint64 `json:"DurationSeconds,omitnil,omitempty" name:"DurationSeconds"`
}

Predefined struct for user

type GetFederationTokenResponse

type GetFederationTokenResponse struct {
	*tchttp.BaseResponse
	Response *GetFederationTokenResponseParams `json:"Response"`
}

func NewGetFederationTokenResponse

func NewGetFederationTokenResponse() (response *GetFederationTokenResponse)

func (*GetFederationTokenResponse) FromJsonString

func (r *GetFederationTokenResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetFederationTokenResponse) ToJsonString

func (r *GetFederationTokenResponse) ToJsonString() string

type GetFederationTokenResponseParams added in v1.0.426

type GetFederationTokenResponseParams struct {
	// 临时访问凭证
	Credentials *Credentials `json:"Credentials,omitnil,omitempty" name:"Credentials"`

	// 临时访问凭证有效的时间,返回 Unix 时间戳,精确到秒
	ExpiredTime *uint64 `json:"ExpiredTime,omitnil,omitempty" name:"ExpiredTime"`

	// 临时访问凭证有效的时间,以 iso8601 格式的 UTC 时间表示
	// 注意:此字段可能返回 null,表示取不到有效值。
	Expiration *string `json:"Expiration,omitnil,omitempty" name:"Expiration"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type QueryApiKeyRequest

type QueryApiKeyRequest struct {
	*tchttp.BaseRequest

	// 待查询的账号(不填默认查当前账号)
	TargetUin *uint64 `json:"TargetUin,omitnil,omitempty" name:"TargetUin"`
}

func NewQueryApiKeyRequest

func NewQueryApiKeyRequest() (request *QueryApiKeyRequest)

func (*QueryApiKeyRequest) FromJsonString

func (r *QueryApiKeyRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*QueryApiKeyRequest) ToJsonString

func (r *QueryApiKeyRequest) ToJsonString() string

type QueryApiKeyRequestParams added in v1.0.426

type QueryApiKeyRequestParams struct {
	// 待查询的账号(不填默认查当前账号)
	TargetUin *uint64 `json:"TargetUin,omitnil,omitempty" name:"TargetUin"`
}

Predefined struct for user

type QueryApiKeyResponse

type QueryApiKeyResponse struct {
	*tchttp.BaseResponse
	Response *QueryApiKeyResponseParams `json:"Response"`
}

func NewQueryApiKeyResponse

func NewQueryApiKeyResponse() (response *QueryApiKeyResponse)

func (*QueryApiKeyResponse) FromJsonString

func (r *QueryApiKeyResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*QueryApiKeyResponse) ToJsonString

func (r *QueryApiKeyResponse) ToJsonString() string

type QueryApiKeyResponseParams added in v1.0.426

type QueryApiKeyResponseParams struct {
	// 密钥ID列表
	IdKeys []*ApiKey `json:"IdKeys,omitnil,omitempty" name:"IdKeys"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type Tag added in v1.0.401

type Tag struct {
	// 标签键,最长128个字符,区分大小写。
	Key *string `json:"Key,omitnil,omitempty" name:"Key"`

	// 标签值,最长256个字符,区分大小写。
	Value *string `json:"Value,omitnil,omitempty" name:"Value"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL