Amazon.IdentityManagement.AmazonIdentityManagementServiceClient.ListServerCertificates C# (CSharp) Method

ListServerCertificates() public method

Lists the server certificates stored in IAM that have the specified path prefix. If none exist, the action returns an empty list.

You can paginate the results using the MaxItems and Marker parameters.

For more information about working with server certificates, including a list of AWS services that can use the server certificates that you manage with IAM, go to Working with Server Certificates in the IAM User Guide.

/// The request processing has failed because of an unknown error, exception or failure. ///
public ListServerCertificates ( ) : ListServerCertificatesResponse
return ListServerCertificatesResponse
        public ListServerCertificatesResponse ListServerCertificates()
        {
            return ListServerCertificates(new ListServerCertificatesRequest());
        }

Same methods

AmazonIdentityManagementServiceClient::ListServerCertificates ( ListServerCertificatesRequest request ) : ListServerCertificatesResponse

Usage Example

        public static IEnumerable<ServerCertificateMetadata> GetServerCertificates(AwsCommonParams commonParams)
        {
            using (var client = new AmazonIdentityManagementServiceClient(
                commonParams.ResolveCredentials(),
                commonParams.RegionEndpoint))
            {
                var iamRequ = new ListServerCertificatesRequest();

                do
                {
                    var iamResp = client.ListServerCertificates(iamRequ);
                    foreach (var r in iamResp.ServerCertificateMetadataList)
                        yield return r;

                    iamRequ.Marker = iamResp.Marker;
                    if (!iamResp.IsTruncated)
                        iamRequ = null;
                } while (iamRequ != null);
            }
        }
All Usage Examples Of Amazon.IdentityManagement.AmazonIdentityManagementServiceClient::ListServerCertificates
AmazonIdentityManagementServiceClient