Skip to main content
PUT
/
cloud
/
v1
/
reseller_image
Deprecated. Set or update available image list for reseller
curl --request PUT \
  --url https://api.gcore.com/cloud/v1/reseller_image \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "image_ids": [
    "b5b4d65d-945f-4b98-ab6f-332319c724ef",
    "0052a312-e6d8-4177-8e29-b017a3a6b588"
  ],
  "region_id": 123,
  "reseller_id": 123
}
'
{
  "image_ids": [
    "b5b4d65d-945f-4b98-ab6f-332319c724ef",
    "0052a312-e6d8-4177-8e29-b017a3a6b588"
  ],
  "region_id": 123,
  "reseller_id": 123
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Body

application/json

Reseller and cloud admin can change the set of images available to reseller clients. Firstly, they may limit the number of public images available. Secondly, can share the image of the reseller client to all clients of the reseller. If image_ids = None for the reseller, all public images will be available to them. If image_ids = [] for the reseller, all public images will be unavailable to the client.

image_ids
string[] | null
required

List of image IDs available for the clients of this reseller.

Example:
[
"b5b4d65d-945f-4b98-ab6f-332319c724ef",
"0052a312-e6d8-4177-8e29-b017a3a6b588"
]
region_id
integer
required

Region ID.

Example:

1

reseller_id
integer
required

Reseller ID.

Example:

123

Response

200 - application/json

OK

Reseller and cloud admin can change the set of images available to reseller clients. Firstly, they may limit the number of public images available. Secondly, can share the image of the reseller client to all clients of the reseller. If image_ids = None for the reseller, all public images will be available to them. If image_ids = [] for the reseller, all public images will be unavailable to the client.

image_ids
string[] | null
required

List of image IDs available for the clients of this reseller.

Example:
[
"b5b4d65d-945f-4b98-ab6f-332319c724ef",
"0052a312-e6d8-4177-8e29-b017a3a6b588"
]
region_id
integer
required

Region ID.

Example:

1

reseller_id
integer
required

Reseller ID.

Example:

123