Documentation ¶
Overview ¶
Generated by PMS #301
Generated by PMS #274
Generated by PMS #290
Generated by PMS #289
Index ¶
- Constants
- func DataSourceDewCsmsEvents() *schema.Resource
- func DataSourceDewCsmsSecret() *schema.Resource
- func DataSourceDewCsmsSecretVersions() *schema.Resource
- func DataSourceDewCsmsSecrets() *schema.Resource
- func DataSourceDewKpsFailedTasks() *schema.Resource
- func DataSourceDewKpsRunningTasks() *schema.Resource
- func DataSourceKeypairs() *schema.Resource
- func DataSourceKmsDataKeyV1() *schema.Resource
- func DataSourceKmsGrants() *schema.Resource
- func DataSourceKmsKey() *schema.Resource
- func DataSourceKmsKeys() *schema.Resource
- func ResourceCsmsEvent() *schema.Resource
- func ResourceKeypair() *schema.Resource
- func ResourceKmsDataEncryptDecrypt() *schema.Resource
- func ResourceKmsDedicatedKeystore() *schema.Resource
- func ResourceKmsGrant() *schema.Resource
- func ResourceKmsKey() *schema.Resource
- func ResourceKmsKeyCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceKmsKeyDelete(_ context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceKmsKeyMaterial() *schema.Resource
- func ResourceKmsKeyMaterialCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceKmsKeyMaterialDelete(_ context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceKmsKeyMaterialRead(_ context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceKmsKeyRead(_ context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceKmsKeyUpdate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceSecret() *schema.Resource
- func ResourceSecretVersionState() *schema.Resource
- type CsmsSecretVersionsDSWrapper
- type KpsFailedTasksDSWrapper
- type KpsRunningTasksDSWrapper
Constants ¶
const ( WaitingForEnableState = "1" EnabledState = "2" DisabledState = "3" PendingDeletionState = "4" PendingImportState = "5" )
Variables ¶
This section is empty.
Functions ¶
func DataSourceDewCsmsEvents ¶ added in v1.62.1
@API DEW GET /v1/{project_id}/csms/events
func DataSourceDewCsmsSecret ¶
@API DEW GET /v1/{project_id}/secrets/{secret_name}/versions @API DEW GET /v1/{project_id}/secrets/{secret_name}/versions/{version_id}
func DataSourceDewCsmsSecretVersions ¶ added in v1.68.0
func DataSourceDewCsmsSecrets ¶ added in v1.62.1
@API DEW GET /v1/{project_id}/secrets
func DataSourceDewKpsFailedTasks ¶ added in v1.67.1
func DataSourceDewKpsRunningTasks ¶ added in v1.67.1
func DataSourceKeypairs ¶ added in v1.40.0
@API DEW GET /v3/{project_id}/keypairs
func DataSourceKmsDataKeyV1 ¶ added in v1.55.0
@API DEW POST /v1.0/{project_id}/kms/create-datakey
func DataSourceKmsGrants ¶ added in v1.67.0
@API DEW POST /v1.0/{project_id}/kms/list-grants
func DataSourceKmsKey ¶ added in v1.44.2
@API DEW POST /v1.0/{project_id}/kms/list-keys @API DEW POST /v1.0/{project_id}/kms/get-key-rotation-status @API DEW GET /v1.0/{project_id}/kms/{key_id}/tags
func DataSourceKmsKeys ¶ added in v1.67.0
@API DEW POST /v1.0/{project_id}/kms/list-keys
func ResourceCsmsEvent ¶ added in v1.58.0
@API DEW POST /v1/{project_id}/csms/events @API DEW GET /v1/{project_id}/csms/events/{event_name} @API DEW PUT /v1/{project_id}/csms/events/{event_name} @API DEW DELETE /v1/{project_id}/csms/events/{event_name}
func ResourceKeypair ¶ added in v1.35.0
@API DEW POST /v3/{project_id}/keypairs @API DEW PUT /v3/{project_id}/keypairs/{keypair_name} @API DEW GET /v3/{project_id}/keypairs/{keypair_name} @API DEW DELETE /v3/{project_id}/keypairs/{keypair_name} @API DEW POST /v3/{project_id}/keypairs/private-key/import @API DEW DELETE /v3/{project_id}/keypairs/{keypair_name}/private-key
func ResourceKmsDataEncryptDecrypt ¶ added in v1.67.1
@API DEW POST /v1.0/{project_id}/kms/encrypt-data @API DEW POST /v1.0/{project_id}/kms/decrypt-data
func ResourceKmsDedicatedKeystore ¶ added in v1.58.0
@API DEW POST /v1.0/{project_id}/keystores @API DEW GET /v1.0/{project_id}/keystores/{keystore_id} @API DEW DELETE /v1.0/{project_id}/keystores/{keystore_id}
func ResourceKmsGrant ¶ added in v1.45.0
@API DEW POST /v1.0/{project_id}/kms/create-grant @API DEW POST /v1.0/{project_id}/kms/list-grants @API DEW POST /v1.0/{project_id}/kms/revoke-grant
func ResourceKmsKey ¶ added in v1.44.2
@API DEW POST /v1.0/{project_id}/kms/create-key @API DEW POST /v1.0/{project_id}/kms/describe-key @API DEW POST /v1.0/{project_id}/kms/update-key-alias @API DEW POST /v1.0/{project_id}/kms/update-key-description @API DEW POST /v1.0/{project_id}/kms/schedule-key-deletion @API DEW POST /v1.0/{project_id}/kms/enable-key @API DEW POST /v1.0/{project_id}/kms/disable-key @API DEW POST /v1.0/{project_id}/kms/enable-key-rotation @API DEW POST /v1.0/{project_id}/kms/disable-key-rotation @API DEW POST /v1.0/{project_id}/kms/get-key-rotation-status @API DEW POST /v1.0/{project_id}/kms/update-key-rotation-interval @API DEW POST /v1.0/{project_id}/kms/{key_id}/tags/action @API DEW GET /v1.0/{project_id}/kms/{key_id}/tags
func ResourceKmsKeyCreate ¶ added in v1.44.2
func ResourceKmsKeyCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
func ResourceKmsKeyDelete ¶ added in v1.44.2
func ResourceKmsKeyDelete(_ context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
func ResourceKmsKeyMaterial ¶ added in v1.63.0
@API DEW POST /v1.0/{project_id}/kms/delete-imported-key-material @API DEW POST /v1.0/{project_id}/kms/import-key-material @API DEW POST /v1.0/{project_id}/kms/describe-key
func ResourceKmsKeyMaterialCreate ¶ added in v1.63.0
func ResourceKmsKeyMaterialCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
func ResourceKmsKeyMaterialDelete ¶ added in v1.63.0
func ResourceKmsKeyMaterialDelete(_ context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
func ResourceKmsKeyMaterialRead ¶ added in v1.63.0
func ResourceKmsKeyMaterialRead(_ context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
func ResourceKmsKeyRead ¶ added in v1.44.2
func ResourceKmsKeyRead(_ context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
func ResourceKmsKeyUpdate ¶ added in v1.44.2
func ResourceKmsKeyUpdate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
func ResourceSecret ¶ added in v1.68.0
@API DEW POST /v1/{project_id}/secrets @API DEW POST /v1/{project_id}/{resourceType}/{id}/tags/action @API DEW GET /v1/{project_id}/secrets/{secret_name} @API DEW GET /v1/{project_id}/secrets/{secret_name}/versions @API DEW GET /v1/{project_id}/secrets/{secret_name}/versions/{version_id} @API DEW PUT /v1/{project_id}/secrets/{secret_name}/versions/{version_id} @API DEW GET /v1/{project_id}/{resourceType}/{id}/tags @API DEW PUT /v1/{project_id}/secrets/{secret_name} @API DEW POST /v1/{project_id}/secrets/{secret_name}/versions @API DEW DELETE /v1/{project_id}/secrets/{secret_name}
func ResourceSecretVersionState ¶ added in v1.68.0
@API DEW PUT /v1/{project_id}/secrets/{secret_name}/stages/{stage_name} @API DEW GET /v1/{project_id}/secrets/{secret_name}/stages/{stage_name} @API DEW DELETE /v1/{project_id}/secrets/{secret_name}/stages/{stage_name}
Types ¶
type CsmsSecretVersionsDSWrapper ¶ added in v1.68.0
type CsmsSecretVersionsDSWrapper struct { *schemas.ResourceDataWrapper Config *config.Config }
func (*CsmsSecretVersionsDSWrapper) ListSecretVersions ¶ added in v1.68.0
func (w *CsmsSecretVersionsDSWrapper) ListSecretVersions() (*gjson.Result, error)
@API CSMS GET /v1/{project_id}/secrets/{secret_name}/versions
type KpsFailedTasksDSWrapper ¶ added in v1.67.1
type KpsFailedTasksDSWrapper struct { *schemas.ResourceDataWrapper Config *config.Config }
func (*KpsFailedTasksDSWrapper) ListFailedTask ¶ added in v1.67.1
func (w *KpsFailedTasksDSWrapper) ListFailedTask() (*gjson.Result, error)
@API KPS GET /v3/{project_id}/failed-tasks
type KpsRunningTasksDSWrapper ¶ added in v1.67.1
type KpsRunningTasksDSWrapper struct { *schemas.ResourceDataWrapper Config *config.Config }
func (*KpsRunningTasksDSWrapper) ListRunningTask ¶ added in v1.67.1
func (w *KpsRunningTasksDSWrapper) ListRunningTask() (*gjson.Result, error)
@API KPS GET /v3/{project_id}/running-tasks
Source Files ¶
- data_source_huaweicloud_csms_events.go
- data_source_huaweicloud_csms_secret_version.go
- data_source_huaweicloud_csms_secret_versions.go
- data_source_huaweicloud_csms_secrets.go
- data_source_huaweicloud_kms_data_key.go
- data_source_huaweicloud_kms_grants.go
- data_source_huaweicloud_kms_key.go
- data_source_huaweicloud_kms_keys.go
- data_source_huaweicloud_kps_failed_tasks.go
- data_source_huaweicloud_kps_keypairs.go
- data_source_huaweicloud_kps_running_tasks.go
- resource_huaweicloud_csms_event.go
- resource_huaweicloud_csms_secret.go
- resource_huaweicloud_csms_secret_version_state.go
- resource_huaweicloud_kms_data_encrypt_decrypt.go
- resource_huaweicloud_kms_dedicated_keystore.go
- resource_huaweicloud_kms_grant.go
- resource_huaweicloud_kms_key.go
- resource_huaweicloud_kms_key_material.go
- resource_huaweicloud_kps_keypair.go