Change Updates Repository

Change Updates Repository

Change the current Updates Repository.

Request
URI
PUT
https://{api_host}/appliance/update-manager/repository
COPY
Request Body
UpdatesRepository of type(s) application/json
Optional
{
    "url": "string",
    "mounted_iso": false,
    "username": "string",
    "password": "string"
}
string
url
Optional

Updates repository URL

boolean
mounted_iso
Optional

True if the appliance has a mounted ISO for updates. In this case - url, user name and password fields must be null.

string
username
Optional

User name for the update repository. If a user name is specified, a password is required as well.

string
password
Optional

Password for the update repository. If a user name is specified, a password is required as well.

Authentication
This operation uses the following authentication methods.
Responses
204

The Updates Repository is updated.

Operation doesn't return any data structure

400

Bad request - the server could not understand the request due to invalid syntax or invalid request body content

Returns ResponseError of type(s) application/json
{
    "error_code": "string",
    "message": "string",
    "op_id": "string"
}
string
error_code
Optional

The code of the error.

string
message
Optional

The message of the error.

string As uuid As uuid
op_id
Optional

The ID of the operation.


401

Unauthorized - the client must authenticate itself to get the requested response

Operation doesn't return any data structure

403

Forbidden - not sufficient access rights to fulfill the request

Returns ResponseError of type(s) application/json
{
    "error_code": "string",
    "message": "string",
    "op_id": "string"
}
string
error_code
Optional

The code of the error.

string
message
Optional

The message of the error.

string As uuid As uuid
op_id
Optional

The ID of the operation.


500

Internal server error - unexpected condition prevents fulfilling the request

Returns ResponseError of type(s) application/json
{
    "error_code": "string",
    "message": "string",
    "op_id": "string"
}
string
error_code
Optional

The code of the error.

string
message
Optional

The message of the error.

string As uuid As uuid
op_id
Optional

The ID of the operation.