Uploads the metadata of a Security Assertion Markup Language (SAML) 2.0-based identity provider (IdP).


You can call this operation only for workspaces of the Active Directory (AD) and convenience account types. You cannot call this operation for RAM directories.


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 SetIdpMetadata

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

IdpMetadata String Yes <EntityDescriptor ID********Descriptor>

The metadata of the IdP.

RegionId String Yes cn-hangzhou

The ID of the region.

OfficeSiteId String No cn-hangzhou+dir-400695****

The ID of the workspace.

Response parameters

Parameter Type Example Description
IdpEntityId String http://test****.cn/adfs/services/trust

The entityID value obtained after the IdP metadata file is parsed.

RequestId String F369A091-002F-49C8-AD55-02A776297C7B

The ID of the request.


Sample requests

&IdpMetadata=&lt;EntityDescriptor ID********Descriptor&gt;
&<Common request parameters>

Sample success responses

XML format


JSON format

    "RequestId": "F369A091-002F-49C8-AD55-02A776297C7B",
    "IdpEntityId": "http://test****.cn/adfs/services/trust"