OCISDK/OCISDK/Identity/identityClient.cs
/// <summary>
/// Deletes the specified identity provider. The identity provider must not have any group mappings (see IdpGroupMapping).
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
Deletes the specified identity provider. The identity provider must not have any group mappings .
Deletes the specified identity provider . The identity provider must not have any group mappings .
public DeleteIdentityProviderResponse DeleteIdentityProvider(DeleteIdentityProviderRequest request)
        {
            var uri = new Uri($"{GetEndPoint(IdentityServices.IdentityProviders, this.Region)}/{request.IdentityProviderId}");
            using (var webResponse = this.RestClient.Delete(uri, new HttpRequestHeaderParam() { IfMatch = request.IfMatch }))
            using (var stream = webResponse.GetResponseStream())
            using (var reader = new StreamReader(stream))
            {
                var response = reader.ReadToEnd();
                return new DeleteIdentityProviderResponse()
                {
                    OpcRequestId = webResponse.Headers.Get("opc-request-id")
                };
            }
        }
public DeleteIdentityProviderResponse DeleteIdentityProvider ( DeleteIdentityProviderRequest request ) { var uri = new Uri ( $" { GetEndPoint ( IdentityServices . IdentityProviders , this . Region ) } / { request . IdentityProviderId } " ) ; using ( var webResponse = this . RestClient . Delete ( uri , new HttpRequestHeaderParam ( ) { IfMatch = request . IfMatch } ) ) using ( var stream = webResponse . GetResponseStream ( ) ) using ( var reader = new StreamReader ( stream ) ) { var response = reader . ReadToEnd ( ) ; return new DeleteIdentityProviderResponse ( ) { OpcRequestId = webResponse . Headers . Get ( " " ) } ; } }
Deletes the specified identity provider.
Deletes the specified identity provider .
None
request
DeleteIdentityProviderRequest
None