---
title: "POST /#X-Amz-Target=com.amazonaws.codestar.connections.CodeStar_connections_20191201.CreateHost"
method: POST
path: "/#X-Amz-Target=com.amazonaws.codestar.connections.CodeStar_connections_20191201.CreateHost"
---

# POST /#X-Amz-Target=com.amazonaws.codestar.connections.CodeStar_connections_20191201.CreateHost

`POST /#X-Amz-Target=com.amazonaws.codestar.connections.CodeStar_connections_20191201.CreateHost`

Creates a resource that represents the infrastructure where a third-party provider is installed. The host is used when you create connections to an installed third-party provider type, such as GitHub Enterprise Server. You create one host for all connections to that provider.

A host created through the CLI or the SDK is in \`PENDING\` status by default. You can make its status \`AVAILABLE\` by setting up the host in the console.

## Headers

- `X-Amz-Target` 'com.amazonaws.codestar.connections.CodeStar_connections_20191201.CreateHost', required

## Request body

- CreateHostInput
  - `Name` string, required — The name of the host to be created. The name must be unique in the calling AWS account.
  - `ProviderType` 'Bitbucket' | 'GitHub' | 'GitHubEnterpriseServer', required — The name of the installed provider to be associated with your connection. The host resource represents the infrastructure where your provider type is installed. The valid provider type is GitHub Enterprise Server.
  - `ProviderEndpoint` string, required — The endpoint of the infrastructure to be represented by the host after it is created.
  - `VpcConfiguration` object — The VPC configuration to be provisioned for the host. A VPC must be configured and the infrastructure to be represented by the host must already be connected to the VPC.
    - `VpcId` string, required — The ID of the Amazon VPC connected to the infrastructure where your provider type is installed.
    - `SubnetIds` SubnetId[], required — The ID of the subnet or subnets associated with the Amazon VPC connected to the infrastructure where your provider type is installed.
    - `SecurityGroupIds` SecurityGroupId[], required — The ID of the security group or security groups associated with the Amazon VPC connected to the infrastructure where your provider type is installed.
    - `TlsCertificate` string — The value of the Transport Layer Security (TLS) certificate associated with the infrastructure where your provider type is installed.
  - `Tags` Tag[]
    - `Key` string, required — The tag's key.
    - `Value` string, required — The tag's value.

## Response `200`

Success

- CreateHostOutput
  - `HostArn` string — The Amazon Resource Name (ARN) of the host to be created.
  - `Tags` Tag[]
    - `Key` string, required — The tag's key.
    - `Value` string, required — The tag's value.

## Other responses

- `480` — LimitExceededException

---

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