---
title: "Get account alias"
method: POST
path: "/organizations/{organization_id}/aws/accountalias"
tags: ["Aws"]
---

# Get account alias

`POST /organizations/{organization_id}/aws/accountalias`

## Request

- Base URL: `https://api.cloudranger.com/202004`
- URL: `https://api.cloudranger.com/202004/organizations/{organization_id}/aws/accountalias`
- Auth: API key in header `Authorization` and API key in header `x-api-key`

Get alias for the account using the specified ARN and external ID

## Path parameters

- `organization_id` string, required

## Request body

- PostOrganizationsAwsAccountaliasRequest
  - `access_role_arn` string
  - `external_id` string
  - `state` string

## Response `200`

200 response

- PostOrganizationsAwsAccountaliasResponse
  - `AccountAliases` string[]
  - `IsTruncated` boolean
  - `ResponseMetadata` object
    - `RequestId` string

## Other responses

- `201`: 201 response
- `401`: 401 response
- `403`: 403 response
- `404`: 404 response

---

[API](https://skmtc.dev/druva/apis/cloudranger.md) - [All operations](https://skmtc.dev/druva/apis/cloudranger/llms.txt) - [OpenAPI document](https://skmtc.dev/druva/apis/cloudranger/revisions/0b87602807da?raw)
