Description: This guide provides step-by-step instructions for creating a Host IP Service with custom ports in CloudConnexa using the public API through Swagger.
Step 1: Create API credentials
- Sign in to your CloudConnexa Portal.
- Click API & Logs > API.
- Click Create Credentials.
- Enter the details for your new credentials and click Create.
- Once the credentials are created, copy the Public API Client ID and Public API Client Secret, which you'll use as your authorization credentials using Swagger.
- Return to the CloudConnexa API UI and turn on Enable API for this Cloud ID to ensure active API access.
Step 2: Authorize in Swagger
- From the CloudConnexa API UI, click Swagger.
- Click Authorize.
- Paste your Public API Client ID and Public API Client Secret, and click Authorize.
- The Available authorizations notification displays, and you can click Close.
Step 3: Ensure your Hosts is created
If you haven't created a Host yet, follow this guide first: CloudConnexa: How to Create Hosts using the CloudConnexa API via Swagger.
Once your Host is ready, continue with the next step.
Step 4: Retrieve your Hosts ID
- In Swagger, click to expand
GET /api/v1/hosts
under Host. - Click Try it out, then Execute.
- From the response, copy the Host ID of the Host you want to use.
Step 5: Create an IP Service
- In Swagger, click to expand
POST /api/v1/hosts/ip-services
. - Click Try it out and paste the copied Host ID in the hostId field.
- Make your changes to define your custom application in the Request body.
{
"name": "RDP",
"description": "TCP Port 3389",
"config": {
"serviceTypes": [
"CUSTOM"
],
"customServiceTypes": [
{
"protocol": "TCP",
"port": [
{
"lowerValue": 3389,
"upperValue": 3389
}
]
}
]
}
} - Click Execute to submit the request.
Step 6: Verify the IP Service in your CloudConnexa portal
- Sign in to your CloudConnexa Portal.
- Click Hosts > IP Services.
- Confirm the executed CloudConnexa API parameters.
If you require further assistance, please submit a support ticket.
Comments
0 comments
Please sign in to leave a comment.