GET https://api.ap1.datadoghq.com/api/v2/org_connections https://api.ap2.datadoghq.com/api/v2/org_connections https://api.datadoghq.eu/api/v2/org_connections https://api.ddog-gov.com/api/v2/org_connections https://api.datadoghq.com/api/v2/org_connections https://api.us3.datadoghq.com/api/v2/org_connections https://api.us5.datadoghq.com/api/v2/org_connections
Información general Returns a list of org connections.
This endpoint requires the org_connections_read
permission.
OAuth apps require the org_connections_read
authorization scope to access this endpoint.
Argumentos Cadenas de consulta The Org ID of the sink org.
The Org ID of the source org.
The limit of number of entries you want to return. Default is 1000.
The pagination offset which you want to query from. Default is 0.
Respuesta OK
Response containing a list of org connections.
Expand All
Org connection attributes.
connection_types [required ]
List of connection types.
Timestamp when the connection was created.
The unique identifier of the org connection.
Related organizations and user.
The data for a user relationship.
The type of the user relationship.
Allowed enum values: users
The definition of OrgConnectionOrgRelationshipData
object.
The type of the organization relationship.
Allowed enum values: orgs
The definition of OrgConnectionOrgRelationshipData
object.
The type of the organization relationship.
Allowed enum values: orgs
Org connection type.
Allowed enum values: org_connection
Total number of org connections.
Total number of org connections matching the filter.
{
"data" : [
{
"attributes" : {
"connection_types" : [
"logs" ,
"metrics"
],
"created_at" : "2023-01-01T12:00:00Z"
},
"id" : "f9ec96b0-8c8a-4b0a-9b0a-1b2c3d4e5f6a" ,
"relationships" : {
"created_by" : {
"data" : {
"id" : "usr123abc456" ,
"name" : "John Doe" ,
"type" : "users"
}
},
"sink_org" : {
"data" : {
"id" : "f9ec96b0-8c8a-4b0a-9b0a-1b2c3d4e5f6a" ,
"name" : "Example Org" ,
"type" : "orgs"
}
},
"source_org" : {
"data" : {
"id" : "f9ec96b0-8c8a-4b0a-9b0a-1b2c3d4e5f6a" ,
"name" : "Example Org" ,
"type" : "orgs"
}
}
},
"type" : "org_connection"
}
],
"meta" : {
"page" : {
"total_count" : 0 ,
"total_filtered_count" : 0
}
}
}
Unauthorized
{
"errors" : [
"Bad Request"
]
}
Forbidden
{
"errors" : [
"Bad Request"
]
}
Too many requests
{
"errors" : [
"Bad Request"
]
}
Ejemplo de código Copia
# 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/org_connections " \
-H "Accept: application/json" \
-H "DD-API-KEY: ${DD_API_KEY} " \
-H "DD-APPLICATION-KEY: ${DD_APP_KEY} "