---
title: "POST /2013-04-01/hostedzone/{Id}/associatevpc"
method: POST
path: "/2013-04-01/hostedzone/{Id}/associatevpc"
---

# POST /2013-04-01/hostedzone/{Id}/associatevpc

`POST /2013-04-01/hostedzone/{Id}/associatevpc`

Associates an Amazon VPC with a private hosted zone.

To perform the association, the VPC and the private hosted zone must already exist. You can't convert a public hosted zone into a private hosted zone.

If you want to associate a VPC that was created by using one Amazon Web Services account with a private hosted zone that was created by using a different account, the Amazon Web Services account that created the private hosted zone must first submit a `CreateVPCAssociationAuthorization` request. Then the account that created the VPC must submit an `AssociateVPCWithHostedZone` request.

When granting access, the hosted zone and the Amazon VPC must belong to the same partition. A partition is a group of Amazon Web Services Regions. Each Amazon Web Services account is scoped to one partition.

The following are the supported partitions:

*   `aws` - Amazon Web Services Regions
    
*   `aws-cn` - China Regions
    
*   `aws-us-gov` - Amazon Web Services GovCloud (US) Region
    

For more information, see [Access Management](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in the _Amazon Web Services General Reference_.

## Path parameters

- `Id` string, required

## Response `200`

Success

## Other responses

- `480` — NoSuchHostedZone
- `481` — NotAuthorizedException
- `482` — InvalidVPCId
- `483` — InvalidInput
- `484` — PublicZoneVPCAssociation
- `485` — ConflictingDomainExists
- `486` — LimitsExceeded
- `487` — PriorRequestNotComplete

---

[API](https://skmtc.net/aws/apis/route53.md) · [All operations](https://skmtc.net/aws/apis/route53/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/route53/versions/8f06f4790bfa/schema)
