# Create SAML service provider metadata **GET /_security/saml/metadata/{realm_name}** Generate SAML metadata for a SAML 2.0 Service Provider. The SAML 2.0 specification provides a mechanism for Service Providers to describe their capabilities and configuration using a metadata file. This API generates Service Provider metadata based on the configuration of a SAML realm in Elasticsearch. ## Servers - http://api.example.com: http://api.example.com () ## Authentication methods - Api key auth - Basic auth - Bearer auth ## Parameters ### Path parameters - **realm_name** (string) The name of the SAML realm in Elasticsearch. ## Responses ### 200 #### Body: application/json (object) - **metadata** (string) An XML string that contains a SAML Service Provider's metadata for the realm. [Powered by Bump.sh](https://bump.sh)