Skip to content

allObjectsAlreadyAssignedToOrgs

Returns objects that have already been assigned to existing orgs.

Arguments

Argument Type Description
objectIdsForHierarchyTypes (required) [ObjectIdsForHierarchyTypeInput!]! Objects for each workload type.
allowedClusters (required) [String!]! Allowed clusters in the org.
targetOrgId String The ID of the target organization to compare the rules of the current organization.

Returns

[ObjectIdsForHierarchyType!]!

Sample

query AllObjectsAlreadyAssignedToOrgs($objectIdsForHierarchyTypes: [ObjectIdsForHierarchyTypeInput!]!, $allowedClusters: [String!]!) {
  allObjectsAlreadyAssignedToOrgs(
    objectIdsForHierarchyTypes: $objectIdsForHierarchyTypes
    allowedClusters: $allowedClusters
  ) {
    objectIds
    snappableType
  }
}
{
  "objectIdsForHierarchyTypes": [
    {
      "objectIds": [
        "example-string"
      ],
      "snappableType": "AWS_NATIVE_CONFIG"
    }
  ],
  "allowedClusters": [
    "example-string"
  ]
}
{
  "data": {
    "allObjectsAlreadyAssignedToOrgs": [
      {
        "objectIds": [
          "example-string"
        ],
        "snappableType": "AWS_NATIVE_CONFIG"
      }
    ]
  }
}