Obtains the metadata of a Security Assertion Markup Language (SAML) 2.0-based service provider (SP).

Description

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.

Debugging

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 GetSpMetadata

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

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
RequestId String D3506372-0840-466F-9E73-98D58432D6A7

The ID of the request.

SpMetadata String <?xml version=************/md:EntityDescriptor>

The metadata of the SP.

Examples

Sample requests

https://ecd.cn-hangzhou.aliyuncs.com/?Action=GetSpMetadata
&RegionId=cn-hangzhou
&OfficeSiteId=cn-hangzhou+dir-400695****
&<Common request parameters>

Sample success responses

XML format

<GetSpMetadataResponse>
      <SpMetadata>&lt;?xml version=************/md:EntityDescriptor&gt;</SpMetadata>
      <RequestId>D3506372-0840-466F-9E73-98D58432D6A7</RequestId>
</GetSpMetadataResponse>

JSON format

{
	"SpMetadata": "<?xml version=************/md:EntityDescriptor>",
	"RequestId": "D3506372-0840-466F-9E73-98D58432D6A7"
}