OCISDK/OCISDK/Identity/identityClient.cs
/// <summary>
/// Lists all the identity providers in your tenancy. You must specify the identity provider type (e.g., SAML2 for identity providers using the SAML2.0 protocol). 
/// You must specify your tenancy's OCID as the value for the compartment ID (remember that the tenancy is simply the root compartment). 
/// See Where to Get the Tenancy's OCID and User's OCID.
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
Lists all the identity providers in your tenancy. You must specify the identity provider type .
You must specify your tenancy's OCID as the value for the compartment ID (remember that the tenancy is simply the root compartment).
See Where to Get the Tenancy's OCID and User's OCID.
Lists all the identity providers in your tenancy . You must specify the identity provider type . You must specify your tenancy ' s OCID as the value for the compartment ID ( remember that the tenancy is simply the root compartment ) . See Where to Get the Tenancy ' s OCID and User ' s OCID .
public ListIdentityProvidersResponse ListIdentityProviders(ListIdentityProvidersRequest request)
        {
            var uriStr = $"{GetEndPoint(IdentityServices.IdentityProviders, this.Region)}?{request.GetOptionQuery()}";
            var uri = new Uri(uriStr);
            using (var webResponse = this.RestClient.Get(uri))
            using (var stream = webResponse.GetResponseStream())
            using (var reader = new StreamReader(stream))
            {
                var response = reader.ReadToEnd();
                return new ListIdentityProvidersResponse()
                {
                    Items = JsonSerializer.Deserialize<List<IdentityProvider>>(response),
                    OpcRequestId = webResponse.Headers.Get("opc-request-id"),
                    OpcNextPage = webResponse.Headers.Get("opc-next-page")
                };
            }
        }
public ListIdentityProvidersResponse ListIdentityProviders ( ListIdentityProvidersRequest request ) { var uriStr = $" { GetEndPoint ( IdentityServices . IdentityProviders , this . Region ) } ? { request . GetOptionQuery ( ) } " ; var uri = new Uri ( uriStr ) ; using ( var webResponse = this . RestClient . Get ( uri ) ) using ( var stream = webResponse . GetResponseStream ( ) ) using ( var reader = new StreamReader ( stream ) ) { var response = reader . ReadToEnd ( ) ; return new ListIdentityProvidersResponse ( ) { Items = JsonSerializer . Deserialize < List < IdentityProvider > > ( response ) , OpcRequestId = webResponse . Headers . Get ( " " ) , OpcNextPage = webResponse . Headers . Get ( " " ) } ; } }
Lists all the identity providers in your tenancy.
Lists all the identity providers in your tenancy .
None
request
ListIdentityProvidersRequest
None