providers_saml_metadata_retrieve
GET/api/v3//providers/saml/:id/metadata/
Return metadata as XML string
Request
Path Parameters
id integerrequired
A unique integer value identifying this SAML Provider.
Query Parameters
download boolean
force_binding string
Possible values: [urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST
, urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect
]
Optionally force the metadata to only include one binding.
Responses
- 200
- 400
- 403
- 404
- application/json
- application/xml
- Schema
- Example (auto)
Schema
metadatastringrequired
download_urlstringrequired
{
"metadata": "string",
"download_url": "string"
}
- Schema
- Example (auto)
Schema
metadatastringrequired
download_urlstringrequired
<root>
<metadata>string</metadata>
<download_url>string</download_url>
</root>
- application/json
- Schema
- Example (auto)
Schema
non_field_errorsstring[]
codestring
property name*any
Validation Error
{
"non_field_errors": [
"string"
],
"code": "string"
}
- application/json
- Schema
- Example (auto)
Schema
detailstringrequired
codestring
{
"detail": "string",
"code": "string"
}
Provider has no application assigned
Authorization: http
name: authentiktype: httpscheme: bearer
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "/api/v3/providers/saml/:id/metadata/");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());