GetOpenIDConnectProvider
Returns information about the specified OpenID Connect (OIDC) provider resource object in IAM.
Permissions
Action | Description | Resource |
---|---|---|
GetOpenIDConnectProvider | Grants permission to retrieve information about the specified OpenID Connect (OIDC) provider resource in IAM | oidc-provider |
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
OpenIDConnectProviderArn
The Amazon Resource Name (ARN) of the OIDC provider resource object in IAM to get information for. You can get a list of OIDC provider resource ARNs by using the ListOpenIDConnectProviders operation.
For more information about ARNs, see Amazon Resource Names (ARNs) in the AWS General Reference.
Type: String
Length Constraints: Minimum length of 20. Maximum length of 2048.
Required: Yes
Response Elements
The following elements are returned by the service.
ClientIDList.member.N
A list of client IDs (also known as audiences) that are associated with the specified IAM OIDC provider resource object. For more information, see CreateOpenIDConnectProvider.
Type: Array of strings
Length Constraints: Minimum length of 1. Maximum length of 255.
CreateDate
The date and time when the IAM OIDC provider resource object was created in the AWS account.
Type: Timestamp
ThumbprintList.member.N
A list of certificate thumbprints that are associated with the specified IAM OIDC provider resource object. For more information, see CreateOpenIDConnectProvider.
Type: Array of strings
Length Constraints: Fixed length of 40.
Url
The URL that the IAM OIDC provider resource object is associated with. For more information, see CreateOpenIDConnectProvider.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 255.
Errors
InvalidInput
The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
HTTP Status Code: 400
NoSuchEntity
The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
HTTP Status Code: 404
InternalError
The request processing has failed because of an unknown error, exception or failure.
HTTP Status Code: 500
Examples
Example
This example illustrates one usage of GetOpenIDConnectProvider.
https://<partition>.iam.astran.io/?Action=GetOpenIDConnectProvider
&OpenIDConnectProviderArn=arn:aws:iam::123456789012:oidc-provider/example.com
&Version=2010-05-08
&AUTHPARAMS
<GetOpenIDConnectProviderResponse xmlns="https://iam.amazonaws.com/doc/2010-05-08/">
<GetOpenIDConnectProviderResult>
<ThumbprintList>
<member>c3768084dfb3d2b68b7897bf5f565da8eEXAMPLE</member>
</ThumbprintList>
<CreateDate>2014-10-09T03:32:51.398Z</CreateDate>
<ClientIDList>
<member>my-application-ID</member>
</ClientIDList>
<Url>server.example.com</Url>
</GetOpenIDConnectProviderResult>
<ResponseMetadata>
<RequestId>2c91531b-4f65-11e4-aefa-bfd6aEXAMPLE</RequestId>
</ResponseMetadata>
</GetOpenIDConnectProviderResponse>
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: