Skip to content

awsNativeEc2Instances

Lists the AWS Native EC2 instances under the AWS-native hierarchy root.

Arguments

Argument Type Description
first Int Returns the first n elements from the list.
after String An opaque cursor returned from a previous query's endCursor field. Pass this value verbatim to retrieve the next page of results.
last Int Returns the last n elements from the list.
before String An opaque cursor returned from a previous query's startCursor field. Pass this value verbatim to retrieve the previous page of results.
sortBy AwsNativeEc2InstanceSortFields Field of the EC2 instance to order the results by. Defaults to the instance name.
sortOrder SortOrder Direction the results are ordered in. Defaults to ascending.
descendantTypeFilter [HierarchyObjectTypeEnum!] Filter the CDM cloud hosts by workload type: returns only the EC2 instances whose CDM host has a workload of one of these types. No filtering when empty.
ec2InstanceFilters AwsNativeEc2InstanceFilters Narrows the results to the EC2 instances matching every filter supplied. Unset returns all non-relic instances.
includeSecurityMetadata Boolean Whether to include each object's security metadata in the response.

Returns

AwsNativeEc2InstanceConnection!

Sample

query {
  awsNativeEc2Instances(first: 10) {
    nodes {
      authorizedOperations
      availabilityZone
      awsAccountRubrikId
      awsNativeAccountName
      cloudNativeId
      fileIndexingStatus
      id
      instanceName
      instanceNativeId
      instanceType
      isAppConsistencyEnabled
      isExocomputeConfigured
      isIndexingEnabled
      isMarketplace
      isPreOrPostScriptEnabled
      isProtectable
      isRelic
      legallyHeldSnapshotCount
      name
      nativeName
      numWorkloadDescendants
      objectType
      onDemandSnapshotCount
      osType
      outpostArn
      privateIp
      publicIp
      region
      rscPendingObjectPauseAssignment
      slaAssignment
      slaPauseStatus
      sshKeyPairName
      vpcId
      vpcName
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
{}
{
  "data": {
    "awsNativeEc2Instances": {
      "nodes": [
        [
          {
            "authorizedOperations": [
              "DELETE_SNAPSHOT"
            ],
            "availabilityZone": "example-string",
            "awsAccountRubrikId": "example-string",
            "awsNativeAccountName": "example-string",
            "cloudNativeId": "example-string",
            "fileIndexingStatus": "DISABLED"
          }
        ]
      ],
      "pageInfo": {
        "endCursor": "example-string",
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "example-string"
      }
    }
  }
}