Creating a SAML IdP

Last updated: 2020-06-05 19:46:58


    This is a legacy API which has been hidden and will no longer be updated. We recommend using the new CAM API 3.0 which is standardized and faster.

    API Description

    This API (CreateSAMLProvider) is used to create a SAML IdP.

    Request domain name:

    Request method: HTTP POST

    Input parameters

    The following request parameter list only provides API request parameters. Other common parameters can be found in Common Request Parameters.

    Parameter Name Required Type Description
    name Yes String SAML IdP name
    desc Yes String IdP description
    SAMLMetadataDocument Yes String SAML IdP metadata document must be Base64 encoded, and its maximum size is 64 KB

    Note: If the IdP metadata document exceeds the file size limit, you can delete any of XML nodes except IDPSSODescriptor from the XML metadata document. For example:

    <?xml version="1.0" encoding="utf-8"?>
        <IDPSSODescriptor protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">

    Output parameters

    Parameter Name Type Description
    name String SAML IdP name
    SAMLProviderArn String Name of SAML IdP


    Create a SAML identity provider named IdP.

    Input example:
    POST /v2/index.php HTTP/1.1
    Accept: */*
    Content-Length: 3927
    Content-Type: application/x-www-form-urlencoded
    Action=CreateSAMLProvider&name=idp&SAMLMetadataDocument=U0FNTE1ldGFkYXRhRG9jdW1lbnQ&desc=descriptor&<Common request parameters>

    Output example:
        "code": 0,
        "message": "",
        "codeDesc": "Success",
        "data": {
            "name": "idp",
            "SAMLProviderArn": "qcs::cam::uin/798950673:saml-provider/idp"

    Error codes

    The following only lists the error codes related to this API. For other error codes, see Common Error Codes.

    Error Code Description
    InvalidParameter.ProviderAlreadyExist The IdP already exists.
    InvalidParameter. SAMLMetadataDocument Invalid SAML IdP metadata document
    InvalidParameter.ProviderMaxLimit The number of IdPs reached the upper limit.

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback