ListSigningCertificates() public method

Returns information about the signing certificates associated with the specified IAM user. If there are none, the action returns an empty list.

Although each user is limited to a small number of signing certificates, you can still paginate the results using the MaxItems and Marker parameters.

If the UserName field is not specified, the user name is determined implicitly based on the AWS access key ID used to sign the request for this API. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.

/// The request was rejected because it referenced an entity that does not exist. The /// error message describes the entity. /// /// The request processing has failed because of an unknown error, exception or failure. ///
public ListSigningCertificates ( ) : ListSigningCertificatesResponse
return ListSigningCertificatesResponse
Ejemplo n.º 1
0
 public static void DeleteCertificatesForUser(AmazonIdentityManagementServiceClient client, string username)
 {
     ListSigningCertificatesResponse response =
         client.ListSigningCertificates(new ListSigningCertificatesRequest() { UserName = username });
     foreach (SigningCertificate cert in response.Certificates)
     {
         client.DeleteSigningCertificate(new DeleteSigningCertificateRequest() { UserName = username, CertificateId = cert.CertificateId });
     }
 }