---
title: "Resources by account"
method: GET
path: "/organizations/{organization_id}/accounts/{account_id}/resources"
tags: ["Resources"]
---

# Resources by account

`GET /organizations/{organization_id}/accounts/{account_id}/resources`

Return resources by account id

## Path parameters

- `organization_id` string, required
- `account_id` string, required

## Query parameters

- `extend` 'cr_configuration', required
- `types` 'ec2' | 'ebs' | 'rds' | 'dynamodb' | 'redshift', required
- `filter` string, required
- `pageSize` integer, required
- `order` 'id' | 'type' | 'region' | 'hasbackuppolicy' | 'hasschedule' | 'lastbackup' | 'state.Name', required
- `direction` 'asc' | 'desc', required
- `offset` integer, required

## Response `200`

200 response

- GetOrganizationsAccountsResourcesResponse
  - `total` integer
  - `hits` object
    - `_index` string
    - `_type` string
    - `_id` string
    - `_score` string
    - `_routing` string
    - `_source` object
      - `AmiLaunchIndex` integer
      - `ImageId` string
      - `InstanceId` string
      - `InstanceType` string
      - `KeyName` string
      - `LaunchTime` string, date-time
      - `Monitoring` object
        - `State` string
      - `Placement` object
        - `AvailabilityZone` string
        - `GroupName` string
        - `Tenancy` string
      - `PrivateDnsName` string
      - `PrivateIpAddress` string
      - `ProductCodes` string[]
      - `PublicDnsName` string
      - `PublicIpAddress` string
      - `State` object
        - `Code` integer
        - `Name` string
      - `StateTransitionReason` string
      - `SubnetId` string
      - `VpcId` string
      - `Architecture` string
      - `BlockDeviceMappings` object[]
        - `DeviceName` string
        - `Ebs` object
          - `AttachTime` string, date-time
          - `DeleteOnTermination` boolean
          - `Status` string
          - `VolumeId` string
      - `ClientToken` string
      - `EbsOptimized` boolean
      - `EnaSupport` boolean
      - `Hypervisor` string
      - `ElasticGpuAssociations` string[]
      - `ElasticInferenceAcceleratorAssociations` string[]
      - `NetworkInterfaces` object[]
        - `Association` object
          - `IpOwnerId` string
          - `PublicDnsName` string
          - `PublicIp` string
        - `Attachment` object
          - `AttachTime` string, date-time
          - `AttachmentId` string
          - `DeleteOnTermination` boolean
          - `DeviceIndex` integer
          - `Status` string
        - `Description` string
        - `Groups` object[]
          - `GroupName` string
          - `GroupId` string
        - `Ipv6Addresses` string[]
        - `MacAddress` string
        - `NetworkInterfaceId` string
        - `OwnerId` string
        - `PrivateDnsName` string
        - `PrivateIpAddress` string
        - `PrivateIpAddresses` object[]
          - `Association` object
            - `IpOwnerId` string
            - `PublicDnsName` string
            - `PublicIp` string
          - `Primary` boolean
          - `PrivateDnsName` string
          - `PrivateIpAddress` string
        - `SourceDestCheck` boolean
        - `Status` string
        - `SubnetId` string
        - `VpcId` string
        - `InterfaceType` string
      - `RootDeviceName` string
      - `RootDeviceType` string
      - `SecurityGroups` object[]
        - `GroupName` string
        - `GroupId` string
      - `SourceDestCheck` boolean
      - `Tags` string[]
      - `VirtualizationType` string
      - `CpuOptions` object
        - `CoreCount` integer
        - `ThreadsPerCore` integer
      - `CapacityReservationSpecification` object
        - `CapacityReservationPreference` string
      - `HibernationOptions` object
        - `Configured` boolean
      - `Licenses` string[]
      - `MetadataOptions` object
        - `State` string
        - `HttpTokens` string
        - `HttpPutResponseHopLimit` integer
        - `HttpEndpoint` string
      - `__AccountId` string
      - `postDate` string, date-time
      - `Region` string
      - `Type` string
      - `Source` string
      - `ObjectType` string
      - `Id` string
      - `TagStrings` string[]
    - `sort` string[]
    - `cr_configuration` object
      - `hasBackupPolicy` boolean
      - `hasSchedule` boolean
      - `scheduleActive` string
      - `lastBackupTime` string

## Other responses

- `201` — 201 response
- `401` — 401 response
- `403` — 403 response
- `404` — 404 response

---

[API](https://skmtc.net/druva/apis/authentication.md) · [All operations](https://skmtc.net/druva/apis/authentication/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/druva/authentication/revisions/2af2bf148b25/schema)
