Documentation ¶
Index ¶
- func CsmsClientBuilder() *http_client.HcHttpClientBuilder
- func GenReqDefForBatchCreateOrDeleteTags() *def.HttpRequestDef
- func GenReqDefForCreateSecret() *def.HttpRequestDef
- func GenReqDefForCreateSecretTag() *def.HttpRequestDef
- func GenReqDefForCreateSecretVersion() *def.HttpRequestDef
- func GenReqDefForDeleteSecret() *def.HttpRequestDef
- func GenReqDefForDeleteSecretForSchedule() *def.HttpRequestDef
- func GenReqDefForDeleteSecretStage() *def.HttpRequestDef
- func GenReqDefForDeleteSecretTag() *def.HttpRequestDef
- func GenReqDefForListProjectSecretsTags() *def.HttpRequestDef
- func GenReqDefForListResourceInstances() *def.HttpRequestDef
- func GenReqDefForListSecretTags() *def.HttpRequestDef
- func GenReqDefForListSecretVersions() *def.HttpRequestDef
- func GenReqDefForListSecrets() *def.HttpRequestDef
- func GenReqDefForRestoreSecret() *def.HttpRequestDef
- func GenReqDefForShowSecret() *def.HttpRequestDef
- func GenReqDefForShowSecretStage() *def.HttpRequestDef
- func GenReqDefForShowSecretVersion() *def.HttpRequestDef
- func GenReqDefForUpdateSecret() *def.HttpRequestDef
- func GenReqDefForUpdateSecretStage() *def.HttpRequestDef
- type CsmsClient
- func (c *CsmsClient) BatchCreateOrDeleteTags(request *model.BatchCreateOrDeleteTagsRequest) (*model.BatchCreateOrDeleteTagsResponse, error)
- func (c *CsmsClient) CreateSecret(request *model.CreateSecretRequest) (*model.CreateSecretResponse, error)
- func (c *CsmsClient) CreateSecretTag(request *model.CreateSecretTagRequest) (*model.CreateSecretTagResponse, error)
- func (c *CsmsClient) CreateSecretVersion(request *model.CreateSecretVersionRequest) (*model.CreateSecretVersionResponse, error)
- func (c *CsmsClient) DeleteSecret(request *model.DeleteSecretRequest) (*model.DeleteSecretResponse, error)
- func (c *CsmsClient) DeleteSecretForSchedule(request *model.DeleteSecretForScheduleRequest) (*model.DeleteSecretForScheduleResponse, error)
- func (c *CsmsClient) DeleteSecretStage(request *model.DeleteSecretStageRequest) (*model.DeleteSecretStageResponse, error)
- func (c *CsmsClient) DeleteSecretTag(request *model.DeleteSecretTagRequest) (*model.DeleteSecretTagResponse, error)
- func (c *CsmsClient) ListProjectSecretsTags(request *model.ListProjectSecretsTagsRequest) (*model.ListProjectSecretsTagsResponse, error)
- func (c *CsmsClient) ListResourceInstances(request *model.ListResourceInstancesRequest) (*model.ListResourceInstancesResponse, error)
- func (c *CsmsClient) ListSecretTags(request *model.ListSecretTagsRequest) (*model.ListSecretTagsResponse, error)
- func (c *CsmsClient) ListSecretVersions(request *model.ListSecretVersionsRequest) (*model.ListSecretVersionsResponse, error)
- func (c *CsmsClient) ListSecrets(request *model.ListSecretsRequest) (*model.ListSecretsResponse, error)
- func (c *CsmsClient) RestoreSecret(request *model.RestoreSecretRequest) (*model.RestoreSecretResponse, error)
- func (c *CsmsClient) ShowSecret(request *model.ShowSecretRequest) (*model.ShowSecretResponse, error)
- func (c *CsmsClient) ShowSecretStage(request *model.ShowSecretStageRequest) (*model.ShowSecretStageResponse, error)
- func (c *CsmsClient) ShowSecretVersion(request *model.ShowSecretVersionRequest) (*model.ShowSecretVersionResponse, error)
- func (c *CsmsClient) UpdateSecret(request *model.UpdateSecretRequest) (*model.UpdateSecretResponse, error)
- func (c *CsmsClient) UpdateSecretStage(request *model.UpdateSecretStageRequest) (*model.UpdateSecretStageResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CsmsClientBuilder ¶
func CsmsClientBuilder() *http_client.HcHttpClientBuilder
func GenReqDefForBatchCreateOrDeleteTags ¶
func GenReqDefForBatchCreateOrDeleteTags() *def.HttpRequestDef
func GenReqDefForCreateSecret ¶
func GenReqDefForCreateSecret() *def.HttpRequestDef
func GenReqDefForCreateSecretTag ¶
func GenReqDefForCreateSecretTag() *def.HttpRequestDef
func GenReqDefForCreateSecretVersion ¶
func GenReqDefForCreateSecretVersion() *def.HttpRequestDef
func GenReqDefForDeleteSecret ¶
func GenReqDefForDeleteSecret() *def.HttpRequestDef
func GenReqDefForDeleteSecretForSchedule ¶
func GenReqDefForDeleteSecretForSchedule() *def.HttpRequestDef
func GenReqDefForDeleteSecretStage ¶
func GenReqDefForDeleteSecretStage() *def.HttpRequestDef
func GenReqDefForDeleteSecretTag ¶
func GenReqDefForDeleteSecretTag() *def.HttpRequestDef
func GenReqDefForListProjectSecretsTags ¶
func GenReqDefForListProjectSecretsTags() *def.HttpRequestDef
func GenReqDefForListResourceInstances ¶
func GenReqDefForListResourceInstances() *def.HttpRequestDef
func GenReqDefForListSecretTags ¶
func GenReqDefForListSecretTags() *def.HttpRequestDef
func GenReqDefForListSecretVersions ¶
func GenReqDefForListSecretVersions() *def.HttpRequestDef
func GenReqDefForListSecrets ¶
func GenReqDefForListSecrets() *def.HttpRequestDef
func GenReqDefForRestoreSecret ¶
func GenReqDefForRestoreSecret() *def.HttpRequestDef
func GenReqDefForShowSecret ¶
func GenReqDefForShowSecret() *def.HttpRequestDef
func GenReqDefForShowSecretStage ¶
func GenReqDefForShowSecretStage() *def.HttpRequestDef
func GenReqDefForShowSecretVersion ¶
func GenReqDefForShowSecretVersion() *def.HttpRequestDef
func GenReqDefForUpdateSecret ¶
func GenReqDefForUpdateSecret() *def.HttpRequestDef
func GenReqDefForUpdateSecretStage ¶
func GenReqDefForUpdateSecretStage() *def.HttpRequestDef
Types ¶
type CsmsClient ¶
type CsmsClient struct {
HcClient *http_client.HcHttpClient
}
func NewCsmsClient ¶
func NewCsmsClient(hcClient *http_client.HcHttpClient) *CsmsClient
func (*CsmsClient) BatchCreateOrDeleteTags ¶
func (c *CsmsClient) BatchCreateOrDeleteTags(request *model.BatchCreateOrDeleteTagsRequest) (*model.BatchCreateOrDeleteTagsResponse, error)
批量添加或删除凭据标签
- 功能介绍:批量添加或删除凭据标签。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CsmsClient) CreateSecret ¶
func (c *CsmsClient) CreateSecret(request *model.CreateSecretRequest) (*model.CreateSecretResponse, error)
创建凭据
创建新的凭据,并将凭据值存入凭据的初始版本。
凭据管理服务将凭据值加密后,存储在凭据对象下的版本中。每个版本可与多个凭据版本状态相关联,凭据版本状态用于标识凭据版本处于的阶段,没有版本状态标记的版本视为已弃用,可用凭据管理服务自动删除。
初始版本的状态被标记为SYSCURRENT。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CsmsClient) CreateSecretTag ¶
func (c *CsmsClient) CreateSecretTag(request *model.CreateSecretTagRequest) (*model.CreateSecretTagResponse, error)
添加凭据标签
- 功能介绍:添加凭据标签。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CsmsClient) CreateSecretVersion ¶
func (c *CsmsClient) CreateSecretVersion(request *model.CreateSecretVersionRequest) (*model.CreateSecretVersionResponse, error)
创建凭据版本
在指定的凭据中,创建一个新的凭据版本,用于加密保管新的凭据值。默认情况下,新创建的凭据版本被标记为SYSCURRENT状态,而SYSCURRENT标记的前一个凭据版本被标记为SYSPREVIOUS状态。您可以通过指定VersionStage参数来覆盖默认行为。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CsmsClient) DeleteSecret ¶
func (c *CsmsClient) DeleteSecret(request *model.DeleteSecretRequest) (*model.DeleteSecretResponse, error)
立即删除凭据
立即删除指定的凭据,且无法恢复。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CsmsClient) DeleteSecretForSchedule ¶
func (c *CsmsClient) DeleteSecretForSchedule(request *model.DeleteSecretForScheduleRequest) (*model.DeleteSecretForScheduleResponse, error)
创建凭据的定时删除任务
指定延迟删除时间,创建删除凭据的定时任务,可设置7~30天的的延迟删除时间。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CsmsClient) DeleteSecretStage ¶
func (c *CsmsClient) DeleteSecretStage(request *model.DeleteSecretStageRequest) (*model.DeleteSecretStageResponse, error)
删除凭据的版本状态
删除指定的凭据版本状态。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CsmsClient) DeleteSecretTag ¶
func (c *CsmsClient) DeleteSecretTag(request *model.DeleteSecretTagRequest) (*model.DeleteSecretTagResponse, error)
删除凭据标签
- 功能介绍:删除凭据标签。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CsmsClient) ListProjectSecretsTags ¶
func (c *CsmsClient) ListProjectSecretsTags(request *model.ListProjectSecretsTagsRequest) (*model.ListProjectSecretsTagsResponse, error)
查询项目标签
- 功能介绍:查询用户在指定项目下的所有凭据标签集合。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CsmsClient) ListResourceInstances ¶
func (c *CsmsClient) ListResourceInstances(request *model.ListResourceInstancesRequest) (*model.ListResourceInstancesResponse, error)
查询凭据实例
- 功能介绍:查询凭据实例。通过标签过滤,筛选用户凭据,返回凭据列表。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CsmsClient) ListSecretTags ¶
func (c *CsmsClient) ListSecretTags(request *model.ListSecretTagsRequest) (*model.ListSecretTagsResponse, error)
查询凭据标签
- 功能介绍:查询凭据标签。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CsmsClient) ListSecretVersions ¶
func (c *CsmsClient) ListSecretVersions(request *model.ListSecretVersionsRequest) (*model.ListSecretVersionsResponse, error)
查询凭据的版本列表
查询指定凭据下的版本列表信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CsmsClient) ListSecrets ¶
func (c *CsmsClient) ListSecrets(request *model.ListSecretsRequest) (*model.ListSecretsResponse, error)
查询凭据列表
查询当前用户在本项目下创建的所有凭据。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CsmsClient) RestoreSecret ¶
func (c *CsmsClient) RestoreSecret(request *model.RestoreSecretRequest) (*model.RestoreSecretResponse, error)
取消凭据的定时删除任务
取消凭据的定时删除任务,凭据对象恢复可使用状态。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CsmsClient) ShowSecret ¶
func (c *CsmsClient) ShowSecret(request *model.ShowSecretRequest) (*model.ShowSecretResponse, error)
查询凭据
查询指定凭据的信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CsmsClient) ShowSecretStage ¶
func (c *CsmsClient) ShowSecretStage(request *model.ShowSecretStageRequest) (*model.ShowSecretStageResponse, error)
查询凭据的版本状态
查询指定凭据版本状态标记的版本信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CsmsClient) ShowSecretVersion ¶
func (c *CsmsClient) ShowSecretVersion(request *model.ShowSecretVersionRequest) (*model.ShowSecretVersionResponse, error)
查询凭据的版本与凭据值
查询指定凭据版本的信息和版本中的明文凭据值,只能查询ENABLED状态的凭据。 通过/v1/{project_id}/secrets/{secret_id}/versions/latest可访问凭据最新版本的凭据值。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CsmsClient) UpdateSecret ¶
func (c *CsmsClient) UpdateSecret(request *model.UpdateSecretRequest) (*model.UpdateSecretResponse, error)
更新凭据
更新指定凭据的元数据信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*CsmsClient) UpdateSecretStage ¶
func (c *CsmsClient) UpdateSecretStage(request *model.UpdateSecretStageRequest) (*model.UpdateSecretStageResponse, error)
更新凭据的版本状态
更新凭据的版本状态。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.