View a markdown version of this page

PutAgentUpgradeSettings - AWS Backup

PutAgentUpgradeSettings

Configures daily automatic agent upgrade settings for an appliance.

When EnableAutoUpgrade is true, you must specify both StartHourUtc and EndHourUtc. These values define the daily UTC window during which the appliance can be upgraded automatically. The upgrade starts once a day at a random time within this window.

  • If EnableAutoUpgrade is false, StartHourUtc and EndHourUtc are ignored.

  • The window can span midnight. For example, a StartHourUtc of 22 and an EndHourUtc of 4 sets a window from 10:00 PM to 4:00 AM UTC.

  • The window must be at least 1 hour long, so StartHourUtc and EndHourUtc can't be the same.

Request Syntax

PUT /appliances/appliance/ApplianceArn/agent-upgrade-settings HTTP/1.1 Content-type: application/json { "EnableAutoUpgrade": boolean, "EndHourUtc": number, "StartHourUtc": number }

URI Request Parameters

The request uses the following URI parameters.

ApplianceArn

The Amazon Resource Name (ARN) of the appliance.

Length Constraints: Minimum length of 0. Maximum length of 256.

Pattern: arn:aws[a-z0-9-]{0,30}:backup-external:[a-z0-9-]{1,30}:[0-9]{12}:appliance:[a-zA-Z0-9-]{36}

Required: Yes

Request Body

The request accepts the following data in JSON format.

EnableAutoUpgrade

Specifies whether automatic agent upgrades are enabled for the appliance.

Type: Boolean

Required: Yes

EndHourUtc

Hour of day in UTC (0-23 inclusive).

Type: Integer

Valid Range: Minimum value of 0. Maximum value of 23.

Required: No

StartHourUtc

Hour of day in UTC (0-23 inclusive).

Type: Integer

Valid Range: Minimum value of 0. Maximum value of 23.

Required: No

Response Syntax

HTTP/1.1 200

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Errors

For information about the errors that are common to all actions, see Common Error Types.

AccessDeniedException

The request was denied because you do not have permission to perform the requested operation.

HTTP Status Code: 403

ConflictException

The request conflicts with the current state of the specified resource.

HTTP Status Code: 409

InternalServerException

The request failed because of an internal server error.

HTTP Status Code: 500

ResourceNotFoundException

The specified resource was not found.

HTTP Status Code: 404

ThrottlingException

The request was denied because the request rate is too high.

HTTP Status Code: 429

ValidationException

The request contains invalid parameters.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: