Get Connected Accounts

Get a list of connected accounts

In order to do interesting things with the connected AWS account, we need the ID. In some cases it may be nice/necessary to find the AWS account number.

URL

GET https://vmc.vmware.com/vmc/api/orgs/:org/account-link/connected-accounts

Path Variables

KeyExample ValueHow do I find This
orgXXXXXXXXX-1111-XXXX-1111-XXXXXXXXXXXXFind My Org ID

Key Headers

KeyExample ValueHow do I find This
csp-auth-tokeneyJhbGciOiJSUzI1XXXXXXXXXXXXXXXXXX
XXXXXXXXeyJzdWIiOiJ2bXdhcmUuY29
VMware Cloud API Authentication

Example JSON Payload

none


Example Response Body

[
    {
        "user_id": "XXXXXXXXX-1111-XXXX-1111-XXXXXXXXXXXX",
        "user_name": "user@domain",
        "created": "2019-07-01T22:31:07.000000Z",
        "version": 22,
        "id": "XXXXXXXXX-1111-XXXX-1111-XXXXXXXXXXXX",
        "updated_by_user_id": "XXXXXXXXX-1111-XXXX-1111-XXXXXXXXXXXX",
        "updated_by_user_name": "user@domain",
        "updated": "2021-07-29T16:33:32.000000Z",
        "state": "ACTIVE",
        "account_number": "1234567890128",
        "policy_payer_arn": "arn:aws:iam::1234567890128:role/vmware-sddc-formation-7XXXXXXXX3-3995-42c-RemoteRole-TR3XXXXXXXXG9",
        "policy_payer_linked_arn": "arn:aws:iam::1234567890128:role/vmware-sddc-formation-XXXXXXXX-399-RemoteRolePayer-2JP0D3OGF66H",
        "policy_service_arn": "arn:aws:iam::1234567890128:role/vmware-sddc-formation-XXXXXXXX-3-RemoteRoleService-1LGSAPXXXXXXXXQK",
        "policy_external_id": "vmware-vmc",
        "cf_stack_name": "vmware-sddc-formation-XXXXXXXXX-1111-XXXX-1111-XXXXXXXXXXXX",
        "region_to_az_to_shadow_mapping": {
            "ap-south-1": {
                "ap-south-1a": "ap-south-1a",
                "ap-south-1b": "ap-south-1b",
                "ap-south-1c": "ap-south-1c"
            },
            "eu-west-3": {
                "eu-west-3a": "eu-west-3a",
                "eu-west-3b": "eu-west-3b",
                "eu-west-3c": "eu-west-3c"
            },
            "eu-north-1": {
                "eu-north-1a": "eu-north-1a",
                "eu-north-1b": "eu-north-1b",
                "eu-north-1c": "eu-north-1c"
            },
            "eu-west-2": {
                "eu-west-2a": "eu-west-2a",
                "eu-west-2b": "eu-west-2b",
                "eu-west-2c": "eu-west-2c"
            },
            "eu-south-1": {
                "eu-south-1a": "eu-south-1a",
                "eu-south-1b": "eu-south-1b",
                "eu-south-1c": "eu-south-1c"
            },
            "eu-west-1": {
                "eu-west-1a": "eu-west-1b",
                "eu-west-1b": "eu-west-1c",
                "eu-west-1c": "eu-west-1a"
            },
            "ap-northeast-2": {
                "ap-northeast-2a": "ap-northeast-2a",
                "ap-northeast-2b": "ap-northeast-2b",
                "ap-northeast-2c": "ap-northeast-2c",
                "ap-northeast-2d": "ap-northeast-2d"
            },
            "ap-northeast-1": {
                "ap-northeast-1a": "ap-northeast-1a",
                "ap-northeast-1c": "ap-northeast-1c",
                "ap-northeast-1d": "ap-northeast-1d"
            },
            "ca-central-1": {
                "ca-central-1a": "ca-central-1a",
                "ca-central-1b": "ca-central-1b",
                "ca-central-1d": "ca-central-1d"
            },
            "sa-east-1": {
                "sa-east-1a": "sa-east-1a",
                "sa-east-1b": "sa-east-1b",
                "sa-east-1c": "sa-east-1c"
            },
            "ap-southeast-1": {
                "ap-southeast-1a": "ap-southeast-1a",
                "ap-southeast-1b": "ap-southeast-1b",
                "ap-southeast-1c": "ap-southeast-1c"
            },
            "ap-southeast-2": {
                "ap-southeast-2a": "ap-southeast-2b",
                "ap-southeast-2b": "ap-southeast-2a",
                "ap-southeast-2c": "ap-southeast-2c"
            },
            "eu-central-1": {
                "eu-central-1a": "eu-central-1a",
                "eu-central-1b": "eu-central-1b",
                "eu-central-1c": "eu-central-1c"
            },
            "us-east-1": {
                "us-east-1a": "us-east-1c",
                "us-east-1b": "us-east-1d",
                "us-east-1c": "us-east-1a",
                "us-east-1d": "us-east-1b",
                "us-east-1e": "us-east-1e",
                "us-east-1f": "us-east-1f"
            },
            "us-east-2": {
                "us-east-2a": "us-east-2a",
                "us-east-2b": "us-east-2b",
                "us-east-2c": "us-east-2c"
            },
            "us-west-1": {
                "us-west-1b": "us-west-1b",
                "us-west-1c": "us-west-1c"
            },
            "us-west-2": {
                "us-west-2a": "us-west-2a",
                "us-west-2b": "us-west-2b",
                "us-west-2c": "us-west-2c",
                "us-west-2d": "us-west-2d"
            }
        },
        "region_to_datacenter_to_az_mapping": {
            "ap-south-1": {
                "bom52": "ap-south-1a",
                "bom54": "ap-south-1b",
                "bom53": "ap-south-1c"
            },
            "eu-west-3": {
                "cdg53": "eu-west-3a",
                "cdg54": "eu-west-3b",
                "cdg55": "eu-west-3c"
            },
            "eu-north-1": {
                "arn50": "eu-north-1a",
                "arn51": "eu-north-1b",
                "arn52": "eu-north-1c"
            },
            "eu-west-2": {
                "lhr54": "eu-west-2a",
                "lhr55": "eu-west-2b",
                "lhr53": "eu-west-2c"
            },
            "eu-west-1": {
                "dub8": "eu-west-1a",
                "dub2": "eu-west-1b",
                "dub4": "eu-west-1c"
            },
            "ap-northeast-2": {
                "icn52": "ap-northeast-2a",
                "icn53": "ap-northeast-2b",
                "icn54": "ap-northeast-2c"
            },
            "ap-northeast-1": {
                "nrt8": "ap-northeast-1a",
                "nrt12": "ap-northeast-1c",
                "nrt55": "ap-northeast-1d"
            },
            "ca-central-1": {
                "yul50": "ca-central-1a",
                "yul51": "ca-central-1b"
            },
            "sa-east-1": {
                "gru1": "sa-east-1a",
                "gru2": "sa-east-1b",
                "gru4": "sa-east-1c"
            },
            "ap-southeast-1": {
                "sin3": "ap-southeast-1a",
                "sin2": "ap-southeast-1b",
                "sin4": "ap-southeast-1c"
            },
            "ap-southeast-2": {
                "syd5": "ap-southeast-2a",
                "syd6": "ap-southeast-2b",
                "syd52": "ap-southeast-2c"
            },
            "eu-central-1": {
                "fra53": "eu-central-1a",
                "fra54": "eu-central-1b",
                "fra52": "eu-central-1c"
            },
            "us-east-1": {
                "iad1": "us-east-1a",
                "iad12": "us-east-1b",
                "iad6": "us-east-1c",
                "iad7": "us-east-1d",
                "iad5": "us-east-1e",
                "iad62": "us-east-1f"
            },
            "us-east-2": {
                "cmh50": "us-east-2a",
                "cmh51": "us-east-2b",
                "cmh52": "us-east-2c"
            },
            "us-west-1": {
                "sfo9": "us-west-1b",
                "sfo6": "us-west-1c"
            },
            "us-west-2": {
                "pdx1": "us-west-2a",
                "pdx2": "us-west-2b",
                "pdx4": "us-west-2c",
                "pdx80": "us-west-2d"
            }
        },
        "org_id": "XXXXXXXXX-1111-XXXX-1111-XXXXXXXXXXXX"
    }
]