Note: This endpoint is in Preview. To request access, fill out this form.
If you have any feedback, contact Datadog support.
POST https://api.ap1.datadoghq.com/api/v2/team/connectionshttps://api.ap2.datadoghq.com/api/v2/team/connectionshttps://api.datadoghq.eu/api/v2/team/connectionshttps://api.ddog-gov.com/api/v2/team/connectionshttps://api.datadoghq.com/api/v2/team/connectionshttps://api.us3.datadoghq.com/api/v2/team/connectionshttps://api.us5.datadoghq.com/api/v2/team/connections
개요
Create multiple team connections.
This endpoint requires the teams_read permission.
OAuth apps require the teams_read authorization scope to access this endpoint.
요청
Body Data (required)
Expand All
Array of team connections to create.
Attributes of the team connection.
The entity that manages this team connection.
The name of the external source.
Relationships of the team connection.
Reference to a team from an external system.
Reference to connected external team.
The connected team ID as it is referenced throughout the Datadog ecosystem.
External team resource type.
Allowed enum values: github_team
default: github_team
Reference to a Datadog team.
Reference to a Datadog team.
Datadog team resource type.
Allowed enum values: team
default: team
Team connection resource type.
Allowed enum values: team_connection
default: team_connection
{
"data": [
{
"attributes": {
"managed_by": "github_sync",
"source": "github"
},
"relationships": {
"connected_team": {
"data": {
"id": "@GitHubOrg/team-handle",
"type": "github_team"
}
},
"team": {
"data": {
"id": "87654321-4321-8765-dcba-210987654321",
"type": "team"
}
}
},
"type": "team_connection"
}
]
}
응답
Created
Response containing information about multiple team connections.
Expand All
Array of team connections.
Attributes of the team connection.
The entity that manages this team connection.
The name of the external source.
The unique identifier of the team connection.
Relationships of the team connection.
Reference to a team from an external system.
Reference to connected external team.
The connected team ID as it is referenced throughout the Datadog ecosystem.
External team resource type.
Allowed enum values: github_team
default: github_team
Reference to a Datadog team.
Reference to a Datadog team.
Datadog team resource type.
Allowed enum values: team
default: team
Team connection resource type.
Allowed enum values: team_connection
default: team_connection
Connections response metadata.
Page-based pagination metadata.
The previous page number.
Total connections matching request.
{
"data": [
{
"attributes": {
"managed_by": "github_sync",
"source": "github"
},
"id": "12345678-1234-5678-9abc-123456789012",
"relationships": {
"connected_team": {
"data": {
"id": "@GitHubOrg/team-handle",
"type": "github_team"
}
},
"team": {
"data": {
"id": "87654321-4321-8765-dcba-210987654321",
"type": "team"
}
}
},
"type": "team_connection"
}
],
"meta": {
"page": {
"first_number": "integer",
"last_number": "integer",
"next_number": "integer",
"number": "integer",
"prev_number": "integer",
"size": "integer",
"total": "integer",
"type": "number_size"
}
}
}
Bad Request
{
"errors": [
"Bad Request"
]
}
Forbidden
{
"errors": [
"Bad Request"
]
}
Conflict
{
"errors": [
"Bad Request"
]
}
Too many requests
{
"errors": [
"Bad Request"
]
}
코드 사례
# Curl command
curl -X POST "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/team/connections" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "DD-API-KEY: ${DD_API_KEY}" \
-H "DD-APPLICATION-KEY: ${DD_APP_KEY}" \
-d @- << EOF
{
"data": [
{
"relationships": {
"connected_team": {
"data": {
"id": "@GitHubOrg/team-handle",
"type": "github_team"
}
},
"team": {
"data": {
"id": "87654321-4321-8765-dcba-210987654321",
"type": "team"
}
}
},
"type": "team_connection"
}
]
}
EOF