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. Please call the API per below:
curl -X GET -H 'Authorization: Bearer <token from step 2>' -H 'Content-Type: application/json'
https://anypoint.mulesoft.com/runtimefabric/api/organizations/{orgId}/privatespaces
4. You should see something like this:
{
"content": [
{
"id": "abcd323-8ab1-43e2-aa61-2342342343",
"name": "test-west2-external",
"organizationId": "12312312-e6c4-475c-8711-234234234",
"rootOrganizationId": "12312312-e6c4-475c-8711-23423423432",
"region": "us-west-2",
"status": "Active",
"connections": {
"transitGateways": [
{
"id": "tgw-23423423",
"name": "test-tgw-2",
"spec": {
"resourceShare": {
"id": "5b11a277-c4af-4bd4-bd92-23423423243"
}
},
"status": {
"routes": [
"1.1.1.1/32"
]
}
}
]
}
},
{
"id": "23423423-f932-43cb-aada-423423432",
"name": "test-west2-private",
"organizationId": "23423423-e6c4-475c-8711-234324",
"rootOrganizationId": "23423423-e6c4-475c-8711-23423",
"region": "us-west-2",
"status": "Active",
"connections": {
"transitGateways": [
{
"id": "tgw-234234",
"name": "test-tgw-2",
"spec": {
"resourceShare": {
"id": "5b11a277-c4af-4bd4-bd92-23423423423"
}
},
"status": {
"routes": [
"10.66.77.0/24"
]
}
}
]
}
}
],
"pageable": {
"sort": {
"empty": true,
"sorted": false,
"unsorted": true
},
"offset": 0,
"pageNumber": 0,
"pageSize": 100,
"paged": true,
"unpaged": false
},
"totalPages": 1,
"totalElements": 2,
"last": true,
"number": 0,
"sort": {
"empty": true,
"sorted": false,
"unsorted": true
},
"size": 100,
"numberOfElements": 2,
"first": true,
"empty": false
}
001115487

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.