Creates an identity provider (IdP) for role-based SSO.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes CreateSAMLProvider

The operation that you want to perform. Set the value to CreateSAMLProvider.

EncodedSAMLMetadataDocument String Yes PD94bWwgdmVy****

The metadata file, which is Base64 encoded.

The file is provided by an IdP that supports SAML 2.0.

SAMLProviderName String Yes test-provider

The name of the IdP.

The value can be up to 128 characters in length. The name can contain letters, digits, periods (.), hyphens (-), and underscores (_). The name cannot start or end with periods (.), hyphens (-), or underscores (_).

Description String No This is a provider.

The description.

Response parameters

Parameter Type Example Description
RequestId String The ID of the request

The ID of the request.

SAMLProvider Struct

The information of the IdP.

Arn String acs:ram::177242285274****:saml-provider/test-provider

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

CreateDate String 2020-10-22T02:37:05Z

The creation time.

Description String This is a provider.

The description.

SAMLProviderName String test-provider

The name of the IdP.

UpdateDate String 2020-10-22T02:51:20Z

The update time.


Sample requests

&<Common request parameters>

Sample success responses

XML format

                <Description>This is a provider. </Description>

JSON format

  "RequestId": "E5EDDFD2-3654-4F9F-9780-4AE7D81823EF",
  "SAMLProvider": {
    "UpdateDate": "2020-10-22T02:51:20Z",
    "SAMLProviderName": "test-provider",
    "Description": "This is a provider.",
    "Arn": "acs:ram::177242285274****:saml-provider/test-provider",
    "CreateDate": "2020-10-22T02:37:05Z"

Error codes

For a list of error codes, visit the API Error Center.