[{"label":"Latest (2.0.0)","version":"latest"},{"version":"1.0.0"}]
srm-appliance-config-api

Change Updates Repository

Description

Change the current Updates Repository.

Request

Request

URL

URL


put
https://{api_host}//appliance/update-manager/repository
Copy

Request Body

Request Body

UpdatesRepository of mimetype application/json Optional
{
	"mounted_iso": false,
	"password": "string",
	"url": "string",
	"username": "string"
}
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
password Optional

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


string
url Optional

Updates repository URL


string
username Optional

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

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

204 No Content

The Updates Repository is updated.

Errors

Errors

ResponseError
400

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


401

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


ResponseError
403

Forbidden - not sufficient access rights to fulfill the request


ResponseError
500

Internal server error - unexpected condition prevents fulfilling the request

Code Samples

Code Samples

cURL Command

curl -X PUT -H "Content-Type: application/json" -d '{"mounted_iso":false,"password":"string","url":"string","username":"string"}' https://{api_host}/appliance/update-manager/repository


[{"label":"Latest (2.0.0)","version":"latest"},{"version":"1.0.0"}]
srm-appliance-config-api
Feedback

Was this page helpful?