public class SsmClient extends AbstractClient
gson, HTTP_RSP_OK, SDK_VERSION
Constructor and Description |
---|
SsmClient(Credential credential,
String region) |
SsmClient(Credential credential,
String region,
ClientProfile profile) |
Modifier and Type | Method and Description |
---|---|
CreateProductSecretResponse |
CreateProductSecret(CreateProductSecretRequest req)
This API is used to create a Tencent Cloud service credential.
|
CreateSecretResponse |
CreateSecret(CreateSecretRequest req)
This API is used to create a KMS-encrypted Secret.
|
CreateSSHKeyPairSecretResponse |
CreateSSHKeyPairSecret(CreateSSHKeyPairSecretRequest req)
This API is used to create a secret that hosts SSH keys.
|
DeleteSecretResponse |
DeleteSecret(DeleteSecretRequest req)
This API is used to delete a Secret.
|
DeleteSecretVersionResponse |
DeleteSecretVersion(DeleteSecretVersionRequest req)
This API is used to directly delete a single credential version under the specified credential.
|
DescribeAsyncRequestInfoResponse |
DescribeAsyncRequestInfo(DescribeAsyncRequestInfoRequest req)
This API is used to query the execution result of an async task.
|
DescribeRotationDetailResponse |
DescribeRotationDetail(DescribeRotationDetailRequest req)
This API is used to query the details of a credential rotation policy.
|
DescribeRotationHistoryResponse |
DescribeRotationHistory(DescribeRotationHistoryRequest req)
This API is used to query the historical versions of a rotated credential.
|
DescribeSecretResponse |
DescribeSecret(DescribeSecretRequest req)
This API is used to obtain the detailed attribute information of a Secret.
|
DescribeSupportedProductsResponse |
DescribeSupportedProducts(DescribeSupportedProductsRequest req)
This API is used to query the list of supported Tencent Cloud services.
|
DisableSecretResponse |
DisableSecret(DisableSecretRequest req)
This API is used to disable a Secret and will change its status to `Disabled`.
|
EnableSecretResponse |
EnableSecret(EnableSecretRequest req)
This API is used to enable a Secret and will change its status to `Enabled`.
|
GetRegionsResponse |
GetRegions(GetRegionsRequest req)
This API is used to obtain the list of regions displayed on Console.
|
GetSecretValueResponse |
GetSecretValue(GetSecretValueRequest req)
For user-defined credentials, this API is used to get the plaintext information of a credential by specifying the credential name and version.
|
GetServiceStatusResponse |
GetServiceStatus(GetServiceStatusRequest req)
This API is used to obtain the SecretsManager service status of a user.
|
GetSSHKeyPairValueResponse |
GetSSHKeyPairValue(GetSSHKeyPairValueRequest req)
This API is used to obtain the plaintext value of the SSH key secret.
|
ListSecretsResponse |
ListSecrets(ListSecretsRequest req)
This API is used to obtain the detailed information list of all Secrets.
|
ListSecretVersionIdsResponse |
ListSecretVersionIds(ListSecretVersionIdsRequest req)
This API is used to obtain list of versions of a Secret.
|
PutSecretValueResponse |
PutSecretValue(PutSecretValueRequest req)
This API adds the new version of the credential content under the specified credential.
|
RestoreSecretResponse |
RestoreSecret(RestoreSecretRequest req)
This API is used to restore a `PendingDelete` Secret, canceling its scheduled deletion.
|
RotateProductSecretResponse |
RotateProductSecret(RotateProductSecretRequest req)
This API is used to rotate secrets for Tencent Cloud services or Tencent Cloud API key pairs.
|
UpdateDescriptionResponse |
UpdateDescription(UpdateDescriptionRequest req)
This API is used to update the description of a Secret.
|
UpdateRotationStatusResponse |
UpdateRotationStatus(UpdateRotationStatusRequest req)
This API is used to set a Tencent Cloud service credential rotation policy, including the following parameters:
Specifies whether to enable rotation
Rotation frequency
Rotation start time
|
UpdateSecretResponse |
UpdateSecret(UpdateSecretRequest req)
This API is used to update the credential content of the specified credential name and version number.
|
call, getClientProfile, getCredential, getRegion, internalRequest, setClientProfile, setCredential, setRegion
public SsmClient(Credential credential, String region)
public SsmClient(Credential credential, String region, ClientProfile profile)
public CreateProductSecretResponse CreateProductSecret(CreateProductSecretRequest req) throws TencentCloudSDKException
req
- CreateProductSecretRequestTencentCloudSDKException
public CreateSSHKeyPairSecretResponse CreateSSHKeyPairSecret(CreateSSHKeyPairSecretRequest req) throws TencentCloudSDKException
req
- CreateSSHKeyPairSecretRequestTencentCloudSDKException
public CreateSecretResponse CreateSecret(CreateSecretRequest req) throws TencentCloudSDKException
req
- CreateSecretRequestTencentCloudSDKException
public DeleteSecretResponse DeleteSecret(DeleteSecretRequest req) throws TencentCloudSDKException
req
- DeleteSecretRequestTencentCloudSDKException
public DeleteSecretVersionResponse DeleteSecretVersion(DeleteSecretVersionRequest req) throws TencentCloudSDKException
req
- DeleteSecretVersionRequestTencentCloudSDKException
public DescribeAsyncRequestInfoResponse DescribeAsyncRequestInfo(DescribeAsyncRequestInfoRequest req) throws TencentCloudSDKException
req
- DescribeAsyncRequestInfoRequestTencentCloudSDKException
public DescribeRotationDetailResponse DescribeRotationDetail(DescribeRotationDetailRequest req) throws TencentCloudSDKException
req
- DescribeRotationDetailRequestTencentCloudSDKException
public DescribeRotationHistoryResponse DescribeRotationHistory(DescribeRotationHistoryRequest req) throws TencentCloudSDKException
req
- DescribeRotationHistoryRequestTencentCloudSDKException
public DescribeSecretResponse DescribeSecret(DescribeSecretRequest req) throws TencentCloudSDKException
req
- DescribeSecretRequestTencentCloudSDKException
public DescribeSupportedProductsResponse DescribeSupportedProducts(DescribeSupportedProductsRequest req) throws TencentCloudSDKException
req
- DescribeSupportedProductsRequestTencentCloudSDKException
public DisableSecretResponse DisableSecret(DisableSecretRequest req) throws TencentCloudSDKException
req
- DisableSecretRequestTencentCloudSDKException
public EnableSecretResponse EnableSecret(EnableSecretRequest req) throws TencentCloudSDKException
req
- EnableSecretRequestTencentCloudSDKException
public GetRegionsResponse GetRegions(GetRegionsRequest req) throws TencentCloudSDKException
req
- GetRegionsRequestTencentCloudSDKException
public GetSSHKeyPairValueResponse GetSSHKeyPairValue(GetSSHKeyPairValueRequest req) throws TencentCloudSDKException
req
- GetSSHKeyPairValueRequestTencentCloudSDKException
public GetSecretValueResponse GetSecretValue(GetSecretValueRequest req) throws TencentCloudSDKException
req
- GetSecretValueRequestTencentCloudSDKException
public GetServiceStatusResponse GetServiceStatus(GetServiceStatusRequest req) throws TencentCloudSDKException
req
- GetServiceStatusRequestTencentCloudSDKException
public ListSecretVersionIdsResponse ListSecretVersionIds(ListSecretVersionIdsRequest req) throws TencentCloudSDKException
req
- ListSecretVersionIdsRequestTencentCloudSDKException
public ListSecretsResponse ListSecrets(ListSecretsRequest req) throws TencentCloudSDKException
req
- ListSecretsRequestTencentCloudSDKException
public PutSecretValueResponse PutSecretValue(PutSecretValueRequest req) throws TencentCloudSDKException
req
- PutSecretValueRequestTencentCloudSDKException
public RestoreSecretResponse RestoreSecret(RestoreSecretRequest req) throws TencentCloudSDKException
req
- RestoreSecretRequestTencentCloudSDKException
public RotateProductSecretResponse RotateProductSecret(RotateProductSecretRequest req) throws TencentCloudSDKException
req
- RotateProductSecretRequestTencentCloudSDKException
public UpdateDescriptionResponse UpdateDescription(UpdateDescriptionRequest req) throws TencentCloudSDKException
req
- UpdateDescriptionRequestTencentCloudSDKException
public UpdateRotationStatusResponse UpdateRotationStatus(UpdateRotationStatusRequest req) throws TencentCloudSDKException
req
- UpdateRotationStatusRequestTencentCloudSDKException
public UpdateSecretResponse UpdateSecret(UpdateSecretRequest req) throws TencentCloudSDKException
req
- UpdateSecretRequestTencentCloudSDKException
Copyright © 2023. All rights reserved.