Przejdź do treści
SoulFire LogoSoulFire

Update instance proxy

Ten poradnik jest dostępny tylko po angielsku.

PUT
/v1/instances/{id}/proxies/{index}

Updates an existing proxy in the instance by its index.

Authorization

headerAuthorizationBearer <JWT>

Preferred API authentication. Use a JWT with the api audience.

Path Parameters

id*string

The unique identifier (UUID) of the instance.

Formatuuid
index*integer

The zero-based index of the proxy to update. Returns INVALID_ARGUMENT if index is out of bounds.

Formatint32

Request Body

application/json
  1. body

Request to update an existing proxy in an instance.

proxy*

The new proxy configuration to replace the existing one.

Response Body

Response after successfully updating a proxy.

application/json
  1. response

Response after successfully updating a proxy. Empty response indicates success.

Example Request
curl -X PUT 'http://127.0.0.1:38765/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/proxies/0' \
  -H 'Content-Type: application/json' \
  -d '{
  "proxy": {
    "type": "HTTP",
    "address": "string"
  }
}'
Example Response
{}

Czy ta strona jest pomocna?