Loading

How to Change Cloudhub 2.0 Private Space Internal DNS Settings Via API

Publiceringsdatum: Jan 16, 2025
Steg

CONTENTS

You are using Cloudhub 2.0. You need to change the internal DNS settings of a private space via API.

STEPS TO FOLLOW

1. Here is the official API documentation link
2. First, please get a connected app bearer token or a user token without MFA enabled: 

Creating connected app and getting the bearer token example 

How to generate your Authorization Bearer token for Anypoint Platform

3. Find your organization ID for the private space: How to know my Organization ID (Org ID) on the Anypoint Platform
4. Get your private space ID:  How to Get a Cloudhub 2.0 Private Space's ID via API?
5. Now, please run the following command:
 

curl -L -X PATCH https://anypoint.mulesoft.com/runtimefabric/api/organizations/<org ID from step 3>/privatespaces/<private space ID from step 4> -H 'Authorization: Bearer <token from step 2>' -H 'Content-Type: application/json' \
--data-raw '{
    "network": {
        "internalDns": {
            "dnsServers": [1.1.1.1],
            "specialDomains": [mycompany.com]
        }
    }
}'
 

 

Knowledge-artikelnummer

001115490

 
Laddar
Salesforce Help | Article