Configure application access
configure_application_accessQueue an access change for one owned VPSnet managed application, setting each endpoint to private, public HTTP, managed HTTPS, platform HTTPS, or external HTTPS after confirmation.
Instructions
Queue an access change for one owned managed application. Read get_application_installation first and pass its current revision. If access.request.schema_version=2, preserve every exact endpoint key and configure each endpoint independently; use service and port metadata to match the user's intent instead of prioritizing array order or primary=true. Private removes that route's public listener. Public HTTP exposes it through the server public IP. Managed HTTPS requires an eligible VPSnet-managed DNS zone, subdomain, and explicit DNS approval; it may also carry additional_addresses (up to 4 per endpoint, 8 per application): other names in the customer's own VPSnet zones, each with its own DNS approval, where name '' or '@' is the zone's bare domain (for example example.com next to www.example.com) and action 'redirect' (default) answers 301 to the main address keeping path and query while 'serve' opens the same application; the main address is never changed by adding or removing an additional address; the list is the complete wanted set, so an access change that omits additional_addresses removes the saved ones (pass them again to keep them); additional_addresses are refused on every other mode. External HTTPS only records the customer-managed URL; VPSnet does not configure or validate its DNS, TLS, or reverse proxy. Confirm the exact change with the user first. A queued response must be verified with get_application_installation and get_application_events. Requires applications:manage and is not a paid API-key operation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| access | Yes | One access choice, or schema_version=2 with every exact endpoint key and its independent access choice | |
| orderNo | Yes | Tenant-owned service order number: 1-64 ASCII letters, digits or hyphens, e.g. VP12345 or VP12345-1 | |
| confirmed | Yes | True only after the user confirmed this access change | |
| idempotencyKey | Yes | Client-global unique key. Reuse it only to replay this exact access request; never reuse it for another service or request. | |
| installation_id | Yes | Managed application installation UUID | |
| expected_revision | Yes | Current installation revision returned by get_application_installation |