OAuth2 well-known 사이트 가져오기
경고Note: 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/sites개요
현재 환경에서 사용할 수 있는 공개 OAuth2 사이트 목록을 가져옵니다. 이 엔드포인트는 OAuth2 검색에 사용되며 사용자가 인증할 수 있는 사이트를 반환합니다.
응답
OK
Response payload containing the list of public OAuth2 sites for discovery.
항목
유형
설명
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.
항목
유형
설명
errors [required][string]
A list of errors.
{
"errors": [
"Bad Request"
]
}코드 예시
OAuth2 well-known 사이트 가져오기
# 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"