Queries
hubByDataManagementAPIId
Retrieves an object representing a hub by its external id.
A Hub is a container of projects, shared resources, and users with a common context.
Template for Query:
query GetHubByDataManagementAPIId($dataManagementAPIHubId: ID!) {
hubByDataManagementAPIId(dataManagementAPIHubId: $dataManagementAPIHubId) {
# HubByDataManagementAPIId Fields
}
}
Template for Query Variables:
{
"dataManagementAPIHubId" : "<SOME-ID-TYPE-SCALAR-VALUE>"
}
Arguments
dataManagementAPIHubId* ID! non-null | The external ID of the hub to return. |
* Required
Possible Returns
Value Type | Description |
---|---|
Hub | Represents a hub. A hub is a container of projects, shared resources, and users with a common context. |
Examples
Example 1
Retrieves a hub by legacy DataManagementAPI Hub ID.
Query:
query GetHub($dataManagementAPIHubId: ID!) {
hubByDataManagementAPIId(dataManagementAPIHubId: $dataManagementAPIHubId) {
id
name
__typename
alternativeIdentifiers {
dataManagementAPIHubId
}
}
}
Show More
Query Variables:
{
"dataManagementAPIHubId": "a.YnVzaW5lc3M6YXV0b2Rlc2syMzk4"
}
Response:
{
"data": {
"hubByDataManagementAPIId": {
"id": "urn:adsk.ace:beta.scope:e7c7f5a9-a88a-40b4-85f6-ba1454def997",
"name": "stg-hds-test-hub",
"__typename": "Hub",
"alternativeIdentifiers": {
"dataManagementAPIHubId": "a.YnVzaW5lc3M6YXV0b2Rlc2syMzk4"
}
}
}
}
Show More