getConnectorResources
Retrieves available resources for a connector, such as repositories, projects, or other assets that can be monitored.
Examples
query GetConnectorResources($getConnectorResourcesInput: GetConnectorResourcesInput!) {
getConnectorResources(getConnectorResourcesInput: $getConnectorResourcesInput) {
resources {
id
name
resourceOrgName
isMonitored
resourceType
children {
id
name
resourceOrgName
isMonitored
resourceType
children {
id
name
resourceOrgName
isMonitored
resourceType
iconName
settingsAvailable
credentialsId
}
iconName
settingsAvailable
credentialsId
}
iconName
settingsAvailable
credentialsId
}
monitorAllNewlyCreatedResources
total
selected
}
}Variables
This is an example input showing all available input fields. Only fields marked as required in the schema are mandatory.
Arguments
You can use the following argument(s) to customize your getConnectorResources query.
getConnectorResourcesInput GetConnectorResourcesInput! required
Input parameters specifying which connector and credentials to fetch resources for
connectorID String!
credentialsId String
featureFlags JSON
Fields
Return type: ConnectorResourceResponse
You can use the following field(s) to specify what information your getConnectorResources query will return. Please note that some fields may have their own subfields.
resources [Resource]
List of resources that are available and their monitoring status
id String
name String
resourceOrgName String
isMonitored Boolean
resourceType ResourceType
children [Resource]
iconName ResourceIcon
settingsAvailable Boolean
credentialsId String
monitorAllNewlyCreatedResources Boolean
Indicates if newly created resources should be automatically monitored
total Int
Total number of available resources
selected Int
Number of selected (monitored) resources
Last updated
