IAM.Client.
get_server_certificate
(**kwargs)¶Retrieves information about the specified server certificate stored in IAM.
For more information about working with server certificates, see Working with server certificates in the IAM User Guide . This topic includes a list of Amazon Web Services services that can use the server certificates that you manage with IAM.
See also: AWS API Documentation
Request Syntax
response = client.get_server_certificate(
ServerCertificateName='string'
)
[REQUIRED]
The name of the server certificate you want to retrieve information about.
This parameter allows (through its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
{
'ServerCertificate': {
'ServerCertificateMetadata': {
'Path': 'string',
'ServerCertificateName': 'string',
'ServerCertificateId': 'string',
'Arn': 'string',
'UploadDate': datetime(2015, 1, 1),
'Expiration': datetime(2015, 1, 1)
},
'CertificateBody': 'string',
'CertificateChain': 'string',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
}
}
Response Structure
Contains the response to a successful GetServerCertificate request.
A structure containing details about the server certificate.
The meta information of the server certificate, such as its name, path, ID, and ARN.
The path to the server certificate. For more information about paths, see IAM identifiers in the IAM User Guide .
The name that identifies the server certificate.
The stable and unique string identifying the server certificate. For more information about IDs, see IAM identifiers in the IAM User Guide .
The Amazon Resource Name (ARN) specifying the server certificate. For more information about ARNs and how to use them in policies, see IAM identifiers in the IAM User Guide .
The date when the server certificate was uploaded.
The date on which the certificate is set to expire.
The contents of the public key certificate.
The contents of the public key certificate chain.
A list of tags that are attached to the server certificate. For more information about tagging, see Tagging IAM resources in the IAM User Guide .
A structure that represents user-provided metadata that can be associated with an IAM resource. For more information about tagging, see Tagging IAM resources in the IAM User Guide .
The key name that can be used to look up or retrieve the associated value. For example, Department
or Cost Center
are common choices.
The value associated with this tag. For example, tags with a key name of Department
could have values such as Human Resources
, Accounting
, and Support
. Tags with a key name of Cost Center
might have values that consist of the number associated with the different cost centers in your company. Typically, many resources have tags with the same key name but with different values.
Note
Amazon Web Services always interprets the tag Value
as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.
Exceptions
IAM.Client.exceptions.NoSuchEntityException
IAM.Client.exceptions.ServiceFailureException