GET https://api.ap1.datadoghq.com/api/v2/seats/usershttps://api.ap2.datadoghq.com/api/v2/seats/usershttps://api.datadoghq.eu/api/v2/seats/usershttps://api.ddog-gov.com/api/v2/seats/usershttps://api.datadoghq.com/api/v2/seats/usershttps://api.us3.datadoghq.com/api/v2/seats/usershttps://api.us5.datadoghq.com/api/v2/seats/users
概要
Get the list of users assigned seats for a product code.
This endpoint requires
any
of the following permissions:
billing_readincident_readon_call_read引数
クエリ文字列
The product code for which to retrieve seat users.
Maximum number of results to return.
応答
OK
Expand All
The attributes of the seat user.
The date and time the seat was assigned.
Seat users resource type.
Allowed enum values: seat-users
default: seat-users
The metadata of the seat users.
The cursor for the seat users.
The limit for the seat users.
The next cursor for the seat users.
{
"data": [
{
"attributes": {
"assigned_at": "2021-01-01T00:00:00Z",
"email": "user@example.com",
"name": "John Doe"
},
"id": "00000000-0000-0000-0000-000000000000",
"type": "seat-users"
}
],
"meta": {
"cursor": "string",
"limit": "integer",
"next_cursor": "string"
}
}
Bad Request
{
"errors": [
"Bad Request"
]
}
Unprocessable Entity
{
"errors": [
"Bad Request"
]
}
Too many requests
{
"errors": [
"Bad Request"
]
}
コード例
# Required query arguments
export product_code="CHANGE_ME"
# Curl command
curl -X GET "https://api.ap1.datadoghq.com"https://api.ap2.datadoghq.com"https://api.datadoghq.eu"https://api.ddog-gov.com"https://api.datadoghq.com"https://api.us3.datadoghq.com"https://api.us5.datadoghq.com/api/v2/seats/users?product_code=${product_code}" \
-H "Accept: application/json" \
-H "DD-API-KEY: ${DD_API_KEY}" \
-H "DD-APPLICATION-KEY: ${DD_APP_KEY}"