All Products
Search
Document Center

Resource Access Management:ListOIDCProviders

Last Updated:May 08, 2024

Queries OIDC IdPs.

Operation description

This topic provides an example on how to query all OpenID Connect (OIDC) identity providers (IdPs) within your Alibaba Cloud account. The response shows that your Alibaba Cloud account has only one OIDC IdP named TestOIDCProvider.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
ram:ListOIDCProvidersList
  • OIDCProvider
    acs:ram::{#accountId}:oidc-provider/*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
MarkerstringNo

The marker. If part of a previous response is truncated, you can use this parameter to obtain the truncated part.

EXAMPLE
MaxItemsintegerNo

The number of entries per page. If a response is truncated because it reaches the value of MaxItems, the value of IsTruncated will be true.

Valid values: 1 to 100. Default value: 100.

100

For more information about common request parameters, see API Reference.

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

D2148337-B86A-57F0-8B31-EB7BE0125226
OIDCProvidersobject []

The information about the OIDC IdP.

UpdateDatestring

The time when the OIDC IdP was modified. The time is displayed in UTC.

2021-11-12T08:38:29Z
Descriptionstring

The description of the OIDC IdP.

This is a new OIDC Provider.
OIDCProviderNamestring

The name of the OIDC IdP.

TestOIDCProvider
CreateDatestring

The time when the OIDC IdP was created. The time is displayed in UTC.

2021-11-11T06:56:03Z
Arnstring

The Alibaba Cloud Resource Name (ARN) of the OIDC IdP.

acs:ram::177242285274****:oidc-provider/TestOIDCProvider
IssuerUrlstring

The URL of the issuer.

https://dev-xxxxxx.okta.com
Fingerprintsstring

The fingerprint of the HTTPS certificate. If multiple fingerprints are returned, the fingerprints are separated by commas (,).

902ef2deeb3c5b13ea4c3d5193629309e231****
ClientIdsstring

The ID of the client, If you want to specify multiple client IDs, separate the client IDs with commas (,).

498469743454717****
GmtCreatestring

The timestamp when the OIDC IdP was created.

1636613763000
GmtModifiedstring

The timestamp when the OIDC IdP was modified.

1636706309000
IssuanceLimitTimelong

The earliest time when an external IdP can issue an ID token. If the value of the iat field in the ID token is later than the current time, the request is rejected. Unit: hours. Valid values: 1 to 168.

12
IsTruncatedboolean

Indicates whether the response is truncated. Valid values:

  • true
  • false
false
Markerstring

The marker. This parameter is returned only if the value of IsTruncated is true. If the parameter is returned, you can call this operation again and set this parameter to obtain the truncated part.``

EXAMPLE

Examples

Sample success responses

JSONformat

{
  "RequestId": "D2148337-B86A-57F0-8B31-EB7BE0125226",
  "OIDCProviders": {
    "OIDCProvider": [
      {
        "UpdateDate": "2021-11-12T08:38:29Z",
        "Description": "This is a new OIDC Provider.",
        "OIDCProviderName": "TestOIDCProvider",
        "CreateDate": "2021-11-11T06:56:03Z",
        "Arn": "acs:ram::177242285274****:oidc-provider/TestOIDCProvider",
        "IssuerUrl": "https://dev-xxxxxx.okta.com",
        "Fingerprints": "902ef2deeb3c5b13ea4c3d5193629309e231****",
        "ClientIds": "498469743454717****",
        "GmtCreate": "1636613763000",
        "GmtModified": "1636706309000",
        "IssuanceLimitTime": 12
      }
    ]
  },
  "IsTruncated": false,
  "Marker": "EXAMPLE"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-07-20The response structure of the API has changedsee changesets
Change itemChange content
Output ParametersThe response structure of the API has changed.