---
schema_version: "1"
id: 97427bb7042368f7210cc37954b0a64e063ee447cf1774bf1e56843b9b0c6470
title: CloudHub 2.0 API Reference
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/cloudhub-2/ch2-api-reference.md
canonical_url: https://docs.mulesoft.com/cloudhub-2/ch2-api-reference
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 7d80cb4182bc5ef2d1894e87cd04ed34a6bc811fe4a11955c8ed45e404048d07
description: MuleSoft Documentation Site
latest: true
---
---
product: CloudHub 2.0
---

# CloudHub 2.0 API Reference

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

These tables list the most commonly used CloudHub 2.0 API endpoints grouped by category. Each row
identifies which API the endpoint belongs to:

<table><colgroup><col> <col></colgroup><thead><tr><th>API</th><th>Base URL</th></tr></thead><tbody><tr><td><p><strong>CloudHub 2.0 API</strong></p></td><td><p><code>https://anypoint.mulesoft.com/runtimefabric/api</code></p></td></tr><tr><td><p><strong>Application Manager API</strong></p></td><td><p><code>https://anypoint.mulesoft.com/amc/application-manager/api/v2</code></p></td></tr></tbody></table>

For full details on request parameters, payloads, and responses, see
[CloudHub 2.0 API reference on Exchange](https://anypoint.mulesoft.com/exchange/portals/anypoint-platform/f1e97bc6-315a-4490-82a7-23abe036327a.anypoint-platform/cloudhub-20-api/)
and
[Application Manager API reference on Exchange](https://anypoint.mulesoft.com/exchange/portals/anypoint-platform/f1e97bc6-315a-4490-82a7-23abe036327a.anypoint-platform/amc-application-manager/).

## Deployments (TCP)

Use these Transmission Control Protocol (TCP) endpoints to deploy and update applications with TCP
port mappings.

<table><colgroup><col> <col> <col> <col></colgroup><thead><tr><th>Method</th><th>API</th><th>Endpoint</th><th>Description</th></tr></thead><tbody><tr><td><p><code>POST</code></p></td><td><p>Application Manager</p></td><td><p><code>/organizations/{orgId}/environments/{envId}/deployments</code></p></td><td><p>Deploy a new application with TCP port mapping.</p></td></tr><tr><td><p><code>PATCH</code></p></td><td><p>Application Manager</p></td><td><p><code>/organizations/{orgId}/environments/{envId}/deployments/{deploymentId}</code></p></td><td><p>Update an existing application’s TCP port mapping.</p></td></tr></tbody></table>

For detailed request and response examples, see
[Deploy an App with TCP using the Application Manager API](https://docs.mulesoft.com/cloudhub-2/ch2-deploy-api).

## Private Spaces

Use these endpoints to retrieve infrastructure information about a private space, such as available
TCP ports, availability zones, and the Amazon Web Services (AWS) account ID.

<table><colgroup><col> <col> <col> <col></colgroup><thead><tr><th>Method</th><th>API</th><th>Endpoint</th><th>Description</th></tr></thead><tbody><tr><td><p><code>GET</code></p></td><td><p>CloudHub 2.0</p></td><td><p><code>/organizations/{orgId}/privatespaces/{spaceId}/ports?available=true&amp;count=10</code></p></td><td><p>List available TCP ports for a private space.</p></td></tr><tr><td><p><code>GET</code></p></td><td><p>CloudHub 2.0</p></td><td><p><code>/organizations/{orgId}/privatespaces/{spaceId}/azs</code></p></td><td><p>List availability zones for a private space.</p></td></tr><tr><td><p><code>GET</code></p></td><td><p>CloudHub 2.0</p></td><td><p><code>/organizations/{orgId}/privatespaces/{spaceId}/accounts</code></p></td><td><p>Get the AWS account ID associated with a private space.</p></td></tr></tbody></table>

For more information, see [Deploy an App with TCP using the Application Manager API](https://docs.mulesoft.com/cloudhub-2/ch2-deploy-api)
and [Setting Up an Outbound Private Link Connection](https://docs.mulesoft.com/cloudhub-2/ps-outbound-private-link).

## VPC Endpoints (Private Link)

Use these endpoints to manage Virtual Private Cloud (VPC) endpoints that provide private
connectivity through AWS Private Link.

<table><colgroup><col> <col> <col> <col></colgroup><thead><tr><th>Method</th><th>API</th><th>Endpoint</th><th>Description</th></tr></thead><tbody><tr><td><p><code>POST</code></p></td><td><p>CloudHub 2.0</p></td><td><p><code>/organizations/{orgId}/privatespaces/{spaceId}/vpces</code></p></td><td><p>Create a VPC endpoint for a private space.</p></td></tr><tr><td><p><code>GET</code></p></td><td><p>CloudHub 2.0</p></td><td><p><code>/organizations/{orgId}/privatespaces/{spaceId}/vpces</code></p></td><td><p>List all VPC endpoints for a private space.</p></td></tr><tr><td><p><code>GET</code></p></td><td><p>CloudHub 2.0</p></td><td><p><code>/organizations/{orgId}/privatespaces/{spaceId}/vpces/{vpceId}</code></p></td><td><p>Get VPC endpoint details and provisioning status.</p></td></tr><tr><td><p><code>PATCH</code></p></td><td><p>CloudHub 2.0</p></td><td><p><code>/organizations/{orgId}/privatespaces/{spaceId}/vpces/{vpceId}</code></p></td><td><p>Update a VPC endpoint.</p></td></tr><tr><td><p><code>DELETE</code></p></td><td><p>CloudHub 2.0</p></td><td><p><code>/organizations/{orgId}/privatespaces/{spaceId}/vpces/{vpceId}</code></p></td><td><p>Delete a VPC endpoint.</p></td></tr></tbody></table>

For detailed curl examples, see
[Setting Up an Outbound Private Link Connection](https://docs.mulesoft.com/cloudhub-2/ps-outbound-private-link).

## VPNs

Use these endpoints to manage Virtual Private Network (VPN) connections for a private space.

<table><colgroup><col> <col> <col> <col></colgroup><thead><tr><th>Method</th><th>API</th><th>Endpoint</th><th>Description</th></tr></thead><tbody><tr><td><p><code>PATCH</code></p></td><td><p>CloudHub 2.0</p></td><td><p><code>/organizations/{orgId}/privatespaces/{spaceId}/connections/{connectionId}/vpns/{vpnId}</code></p></td><td><p>Update a VPN (for example, enable VPN logs).</p></td></tr></tbody></table>

For more information, see [Managing Private Spaces](https://docs.mulesoft.com/cloudhub-2/ps-manage).

## Transit Gateways

Use these endpoints to manage AWS Transit Gateway attachments for your organization.

<table><colgroup><col> <col> <col> <col></colgroup><thead><tr><th>Method</th><th>API</th><th>Endpoint</th><th>Description</th></tr></thead><tbody><tr><td><p><code>DELETE</code></p></td><td><p>CloudHub 2.0</p></td><td><p><code>/organizations/{orgId}/transitgateways/{tgwId}</code></p></td><td><p>Delete a transit gateway from the organization.</p></td></tr></tbody></table>

For more information, see [Managing Private Spaces](https://docs.mulesoft.com/cloudhub-2/ps-manage) and the
[delete transit gateway API calls](https://anypoint.mulesoft.com/exchange/portals/anypoint-platform/f1e97bc6-315a-4490-82a7-23abe036327a.anypoint-platform/cloudhub-20-api/minor/1.0/console/method/%234136/).

## Schedulers

Use these endpoints to manage Scheduler component configurations for deployed applications.

> [!NOTE] The CloudHub schedules REST API doesn’t expose scheduler or domain details for CloudHub
> 2.0 applications. Manage CloudHub 2.0 schedulers only through the CloudHub 2.0 APIs or the Runtime
> Manager **Schedules** tab. See [Managing App Schedules](https://docs.mulesoft.com/cloudhub-2/ch2-manage-schedules).

<table><colgroup><col> <col> <col> <col></colgroup><thead><tr><th>Method</th><th>API</th><th>Endpoint</th><th>Description</th></tr></thead><tbody><tr><td><p><code>DELETE</code></p></td><td><p>CloudHub 2.0</p></td><td><p><code>/organizations/{orgId}/environments/{envId}/deployments/{deploymentId}/schedulers/{flowName}</code></p></td><td><p>Reset the scheduler configuration for a specific flow.</p></td></tr></tbody></table>

For more information, see [Managing App Schedules](https://docs.mulesoft.com/cloudhub-2/ch2-manage-schedules).

## See Also

- [CloudHub 2.0 API](https://docs.mulesoft.com/cloudhub-2/ch2-api)
