tencent cloud

Feedback

CreateSAMLProvider

Last updated: 2023-03-15 10:25:14

1. API Description

Domain name for API request: cam.tencentcloudapi.com.

This API is used to create a SAML identity provider.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: CreateSAMLProvider.
Version Yes String Common Params. The value used for this API: 2019-01-16.
Region No String Common Params. This parameter is not required for this API.
Name Yes String SAML identity provider name
Description Yes String SAML identity provider description
SAMLMetadataDocument Yes String SAML identity provider metadata document (Base64)

3. Output Parameters

Parameter Name Type Description
ProviderArn String SAML identity provider resource descriptor
RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

4. Example

Example1 Creating an identity provider

Input Example

https://cam.tencentcloudapi.com/?Action=CreateSAMLProvider
&Name=testName
&Description=testProvider
&SAMLMetadataDocument=PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48bWQ6RW50aXR5RGVzY3JpcHRvciBlbnRpdHlJRD0iaHR0cDovL3d3dy5va3RhLmNvbS9leGsxa3F4bWNqUW1HQURNeTM1NyIgeG1sbnM6bWQ9InVybjpvYXNpczpuYW1lczp0YzpTQU1MOjIuMDptZXRhZGF0YSI%2BPG1kOklEUFNTT0Rlc2NyaXB0b3IgV2FudEF1dGhuUmVxdWVzdHNTaWduZWQ9ImZhbHNlIiBwcm90b2NvbFN1cHBvcnRFbnVtZXJhdGlvbj0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOnB%3D%3D
&<Common request parameters>

Output Example

{
    "Response": {
        "ProviderArn": "testProviderArn",
        "RequestId": "2a44e8e5-7438-4aa0-8bd2-584dde56caab"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

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

Error Code Description
FailedOperation Operation failed.
InvalidParameter.IdentityNameInUse Identity provider name already in use.
InvalidParameterValue.MetadataError Identity provider metadata document error.
InvalidParameterValue.NameError Identity provider name error.
LimitExceeded.IdentityFull Limit on number of identity providers reached.
Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support