POST
/
{site}
/
transient-forward
curl --request POST \
  --url https://api.altostrat.io/{site}/transient-forward \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "expire_after_minutes": 123,
  "allow_only_cidr": "<string>",
  "dst_address": "127.0.0.1",
  "dst_port": 123
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "port": 123,
  "revoked_early": true,
  "allow_only_cidr": "<string>",
  "expires_at": "2023-11-07T05:31:56Z",
  "expired": true,
  "entry_point": "<string>",
  "dst_address": "127.0.0.1",
  "dst_port": 123,
  "time_to_expire": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

site
string
required

UUID of the site

Body

application/json

Parameters for the new port-forward

The body is of type object.

Response

201
application/json

Transient port rule created

The response is of type object.