인시던트에서 On-Call Page 생성
https://api.datadoghq.com/api/v2/incidents/{incident_id}/pagehttps://api.us3.datadoghq.com/api/v2/incidents/{incident_id}/pagehttps://api.us5.datadoghq.com/api/v2/incidents/{incident_id}/pagehttps://api.datadoghq.eu/api/v2/incidents/{incident_id}/pagehttps://api.ap1.datadoghq.com/api/v2/incidents/{incident_id}/pagehttps://api.ap2.datadoghq.com/api/v2/incidents/{incident_id}/pagehttps://api.uk1.datadoghq.com/api/v2/incidents/{incident_id}/pagehttps://api.ddog-gov.com/api/v2/incidents/{incident_id}/pagehttps://api.us2.ddog-gov.com/api/v2/incidents/{incident_id}/page개요
인시던트에서 직접 On-Call Page를 생성합니다.
OAuth apps require the incident_write authorization scope to access this endpoint.
인수
경로 파라미터
incident_id [required]The UUID of the incident.
요청
Body Data (required)
On-Call Page 생성 페이로드입니다.
data [required]인시던트에서 On-Call Page를 생성하기 위한 요청 페이로드입니다.
attributes [required]Attributes for creating an on-call page from an incident.
descriptionThe description of the page.
roleA reference to an incident role for a page.
id [required]The role identifier.
type [required]The type of incident role for a page.
incident_user_defined_roles, incident_reserved_rolesservicesList of affected services.
tagsList of tags for the page.
targetThe target recipient for a page.
identifier [required]The identifier of the target (handle, UUID, or user UUID).
type [required]The type of target for a page request.
team_handle, team_uuid, user_uuidtitleThe title of the page.
type [required]Resource type for a page creation request.
page{
"data": {
"attributes": {
"description": "A critical incident affecting production systems.",
"services": [
"web-store"
],
"target": {
"identifier": "my-oncall-team",
"type": "team_handle"
},
"title": "Production outage - SEV-1"
},
"type": "page"
}
}응답
OK
Response with a page UUID.
data [required]Page UUID data in a response.
id [required]The UUID of the created page.
type [required]Resource type for a page UUID response.
page_uuid{
"data": {
"id": "00000000-0000-0000-0000-000000000001",
"type": "page_uuid"
}
}Bad Request
API error response.
errors [required]A list of errors.
{
"errors": [
"Bad Request"
]
}Unauthorized
API error response.
errors [required]A list of errors.
{
"errors": [
"Bad Request"
]
}Forbidden
API error response.
errors [required]A list of errors.
{
"errors": [
"Bad Request"
]
}Not Found
API error response.
errors [required]A list of errors.
{
"errors": [
"Bad Request"
]
}Too many requests
API error response.
errors [required]A list of errors.
{
"errors": [
"Bad Request"
]
}코드 예시
# Path parameters
export incident_id="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X POST "https://api.${DD_SITE}/api/v2/incidents/${incident_id}/page" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"attributes": {
"description": "A critical incident affecting production systems.",
"services": [
"web-store"
],
"target": {
"identifier": "my-oncall-team",
"type": "team_handle"
},
"title": "Production outage - SEV-1"
},
"type": "page"
}
}
EOF# Path parameters
export incident_id="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="us3.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X POST "https://api.${DD_SITE}/api/v2/incidents/${incident_id}/page" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"attributes": {
"description": "A critical incident affecting production systems.",
"services": [
"web-store"
],
"target": {
"identifier": "my-oncall-team",
"type": "team_handle"
},
"title": "Production outage - SEV-1"
},
"type": "page"
}
}
EOF# Path parameters
export incident_id="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="us5.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X POST "https://api.${DD_SITE}/api/v2/incidents/${incident_id}/page" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"attributes": {
"description": "A critical incident affecting production systems.",
"services": [
"web-store"
],
"target": {
"identifier": "my-oncall-team",
"type": "team_handle"
},
"title": "Production outage - SEV-1"
},
"type": "page"
}
}
EOF# Path parameters
export incident_id="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="datadoghq.eu"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X POST "https://api.${DD_SITE}/api/v2/incidents/${incident_id}/page" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"attributes": {
"description": "A critical incident affecting production systems.",
"services": [
"web-store"
],
"target": {
"identifier": "my-oncall-team",
"type": "team_handle"
},
"title": "Production outage - SEV-1"
},
"type": "page"
}
}
EOF# Path parameters
export incident_id="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="ap1.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X POST "https://api.${DD_SITE}/api/v2/incidents/${incident_id}/page" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"attributes": {
"description": "A critical incident affecting production systems.",
"services": [
"web-store"
],
"target": {
"identifier": "my-oncall-team",
"type": "team_handle"
},
"title": "Production outage - SEV-1"
},
"type": "page"
}
}
EOF# Path parameters
export incident_id="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="ap2.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X POST "https://api.${DD_SITE}/api/v2/incidents/${incident_id}/page" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"attributes": {
"description": "A critical incident affecting production systems.",
"services": [
"web-store"
],
"target": {
"identifier": "my-oncall-team",
"type": "team_handle"
},
"title": "Production outage - SEV-1"
},
"type": "page"
}
}
EOF# Path parameters
export incident_id="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="uk1.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X POST "https://api.${DD_SITE}/api/v2/incidents/${incident_id}/page" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"attributes": {
"description": "A critical incident affecting production systems.",
"services": [
"web-store"
],
"target": {
"identifier": "my-oncall-team",
"type": "team_handle"
},
"title": "Production outage - SEV-1"
},
"type": "page"
}
}
EOF# Path parameters
export incident_id="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="ddog-gov.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X POST "https://api.${DD_SITE}/api/v2/incidents/${incident_id}/page" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"attributes": {
"description": "A critical incident affecting production systems.",
"services": [
"web-store"
],
"target": {
"identifier": "my-oncall-team",
"type": "team_handle"
},
"title": "Production outage - SEV-1"
},
"type": "page"
}
}
EOF# Path parameters
export incident_id="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="us2.ddog-gov.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X POST "https://api.${DD_SITE}/api/v2/incidents/${incident_id}/page" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"attributes": {
"description": "A critical incident affecting production systems.",
"services": [
"web-store"
],
"target": {
"identifier": "my-oncall-team",
"type": "team_handle"
},
"title": "Production outage - SEV-1"
},
"type": "page"
}
}
EOF