最后更新时间:2021-07-08 16:09:31

1. API Description

Domain name for API request:

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 parameter. The value used for this API: CreateSAMLProvider.
Version Yes String Common parameter. The value used for this API: 2019-01-16.
Region No String Common parameter. 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 IdP

Input Example

Content-Type: application/json
X-TC-Action: CreateSAMLProvider
<Common request parameters>

    "SAMLMetadataDocument": "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48bWQ6RW50aXR5RGVzY3JpcHRvciBlbnRpdHlJRD0iaHR0cDovL3d3dy5va3RhLmNvbS9leGsxa3F4bWNqUW1HQURNeTM1NyIgeG1sbnM6bWQ9InVybjpvYXNpczpuYW1lczp0YzpTQU1MOjIuMDptZXRhZGF0YSI%2BPG1kOklEUFNTT0Rlc2NyaXB0b3IgV2FudEF1dGhuUmVxdWVzdHNTaWduZWQ9ImZhbHNlIiBwcm90b2NvbFN1cHBvcnRFbnVtZXJhdGlvbj0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOnB%3D%3D",
    "Name": "testName",
    "Description": "testProvider"

Output Example

  "Response": {
    "RequestId": "2a44e8e5-7438-4aa0-8bd2-584dde56caab"

5. Developer Resources


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.