Get OAuth2 well-known sites
WARNINGNote: This endpoint is in preview and is subject to change.
If you have any feedback, contact Datadog support.
GET
https://api.datadoghq.com/api/v2/oauth2/.well-known/siteshttps://api.us3.datadoghq.com/api/v2/oauth2/.well-known/siteshttps://api.us5.datadoghq.com/api/v2/oauth2/.well-known/siteshttps://api.datadoghq.eu/api/v2/oauth2/.well-known/siteshttps://api.ap1.datadoghq.com/api/v2/oauth2/.well-known/siteshttps://api.ap2.datadoghq.com/api/v2/oauth2/.well-known/siteshttps://api.uk1.datadoghq.com/api/v2/oauth2/.well-known/siteshttps://api.ddog-gov.com/api/v2/oauth2/.well-known/siteshttps://api.us2.ddog-gov.com/api/v2/oauth2/.well-known/sitesPrésentation
Retrieve the list of public OAuth2 sites available for the current environment. This endpoint is used for OAuth2 discovery and returns sites where users can authenticate.
Réponse
OK
Response payload containing the list of public OAuth2 sites for discovery.
Champ
Type
Description
data [required]object
Data object containing OAuth2 well-known sites information.
attributes [required]object
Attributes containing the list of public OAuth2 sites.
sites [required][string]
Array of public OAuth2 site URLs for the environment.
id [required]string
Environment identifier.
type [required]enum
JSON:API resource type for OAuth2 well-known sites environment.
envAllowed enum values:
env{
"data": {
"attributes": {
"sites": [
"datadoghq.com",
"datadoghq.eu",
"us5.datadoghq.com",
"us3.datadoghq.com",
"ap1.datadoghq.com",
"ap2.datadoghq.com"
]
},
"id": "prod",
"type": "env"
}
}Too many requests
API error response.
Champ
Type
Description
errors [required][string]
A list of errors.
{
"errors": [
"Bad Request"
]
}Exemple de code
Get OAuth2 well-known sites
# Set your Datadog site and credentials
export DD_SITE="datadoghq.com"
curl -X GET "https://api.${DD_SITE}/api/v2/oauth2/.well-known/sites" \
-H "Accept: application/json"# Set your Datadog site and credentials
export DD_SITE="us3.datadoghq.com"
curl -X GET "https://api.${DD_SITE}/api/v2/oauth2/.well-known/sites" \
-H "Accept: application/json"# Set your Datadog site and credentials
export DD_SITE="us5.datadoghq.com"
curl -X GET "https://api.${DD_SITE}/api/v2/oauth2/.well-known/sites" \
-H "Accept: application/json"# Set your Datadog site and credentials
export DD_SITE="datadoghq.eu"
curl -X GET "https://api.${DD_SITE}/api/v2/oauth2/.well-known/sites" \
-H "Accept: application/json"# Set your Datadog site and credentials
export DD_SITE="ap1.datadoghq.com"
curl -X GET "https://api.${DD_SITE}/api/v2/oauth2/.well-known/sites" \
-H "Accept: application/json"# Set your Datadog site and credentials
export DD_SITE="ap2.datadoghq.com"
curl -X GET "https://api.${DD_SITE}/api/v2/oauth2/.well-known/sites" \
-H "Accept: application/json"# Set your Datadog site and credentials
export DD_SITE="uk1.datadoghq.com"
curl -X GET "https://api.${DD_SITE}/api/v2/oauth2/.well-known/sites" \
-H "Accept: application/json"# Set your Datadog site and credentials
export DD_SITE="ddog-gov.com"
curl -X GET "https://api.${DD_SITE}/api/v2/oauth2/.well-known/sites" \
-H "Accept: application/json"# Set your Datadog site and credentials
export DD_SITE="us2.ddog-gov.com"
curl -X GET "https://api.${DD_SITE}/api/v2/oauth2/.well-known/sites" \
-H "Accept: application/json"