View a markdown version of this page

CreateResourceProvider - AWS Backup

CreateResourceProvider

Creates a resource provider on the specified appliance with configuration for the provider and its resource targets.

Request Syntax

POST /resources/providers HTTP/1.1 Content-type: application/json { "ApplianceArn": "string", "AutoDeleteNotFoundTargetsAfterDays": number, "ClientToken": "string", "Name": "string", "ProviderConfiguration": { ... }, "ProviderType": "string", "SecretConfigurationArn": "string", "Tags": { "string" : "string" }, "TargetConfiguration": { "MssqlDatabase": { "BackupStreamCount": number, "FullBackupAfterDays": number, "FullBackupAfterScheduleExpression": "string", "IsCopyOnlyFull": boolean, "LogBackupFrequencyInMinutes": number }, "NasFilesystem": { "AllowUnencryptedDataTransfer": boolean }, "OracledbDatabase": { "BackupChannelCount": number, "BackupNodeHostName": "string", "FullBackupAfterDays": number, "FullBackupAfterScheduleExpression": "string", "LogBackupFrequencyInMinutes": number, "LogRetentionOnHostInHours": number }, "ServerFilesystem": { "BackupConsistency": "string", "PostBackupScript": { "ScriptParams": "string", "ScriptPath": "string", "TimeoutInMinutes": number }, "PreBackupScript": { "ContinueBackupOnScriptFailure": boolean, "ScriptParams": "string", "ScriptPath": "string", "TimeoutInMinutes": number } }, "VmwareVm": { "BackupConsistency": "string" } }, "TargetTagKeysToSync": [ "string" ], "TargetTagsOnCreate": { "string" : "string" } }

URI Request Parameters

The request does not use any URI parameters.

Request Body

The request accepts the following data in JSON format.

ApplianceArn

The Amazon Resource Name (ARN) of the appliance.

Type: String

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

AutoDeleteNotFoundTargetsAfterDays

The number of days after which resource targets with a status of NOT_FOUND are automatically deleted.

Type: Integer

Valid Range: Minimum value of 0.

Required: No

ClientToken

A unique, case-sensitive identifier that you provide to ensure that the request is idempotent.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

Pattern: [!-~]+

Required: No

Name

The name of the resource provider.

Type: String

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

Pattern: [\p{L}\p{Z}\p{N}_.:/=+\-@]*

Required: No

ProviderConfiguration

The configuration of the resource provider.

Type: ResourceProviderConfiguration object

Note: This object is a Union. Only one member of this object can be specified or returned.

Required: Yes

ProviderType

The type of resource provider.

Type: String

Valid Values: MSSQL_SERVER | NAS_SHARE | ORACLEDB_SERVER | ORACLEDB_CLUSTER | SERVER_HOST | VMWARE_ESXI | VMWARE_VCENTER

Required: Yes

SecretConfigurationArn

The Amazon Resource Name (ARN) of the AWS Secrets Manager secret used to access the resource provider.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 1024.

Pattern: arn:aws[a-z0-9-]{0,30}:secretsmanager:[a-z0-9-]{1,30}:[0-9]{12}:secret:[a-zA-Z0-9/_+=.@-]{1,512}

Required: No

Tags

The tags to associate with the resource provider.

Type: String to string map

Map Entries: Minimum number of 0 items. Maximum number of 200 items.

Key Length Constraints: Minimum length of 1. Maximum length of 128.

Key Pattern: [\p{L}\p{Z}\p{N}_.:/=+\-@]*

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

Value Pattern: [\p{L}\p{Z}\p{N}_.:/=+\-@]*

Required: No

TargetConfiguration

The default backup configurations for the resource provider's resource targets, by target type.

Type: ResourceTargetConfigurations object

Required: Yes

TargetTagKeysToSync

The tag keys whose values are synchronized from external resources to their resource targets.

Type: Array of strings

Array Members: Minimum number of 0 items. Maximum number of 10 items.

Length Constraints: Minimum length of 1. Maximum length of 100.

Pattern: [\p{L}\p{Z}\p{N}_.:/=+\-@]*

Required: No

TargetTagsOnCreate

The tags to apply when the resource provider's resource targets are created.

Type: String to string map

Map Entries: Minimum number of 0 items. Maximum number of 10 items.

Key Length Constraints: Minimum length of 1. Maximum length of 128.

Key Pattern: [\p{L}\p{Z}\p{N}_.:/=+\-@]*

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

Value Pattern: [\p{L}\p{Z}\p{N}_.:/=+\-@]*

Required: No

Response Syntax

HTTP/1.1 201 Content-type: application/json { "Arn": "string" }

Response Elements

If the action is successful, the service sends back an HTTP 201 response.

The following data is returned in JSON format by the service.

Arn

The Amazon Resource Name (ARN) of the resource provider.

Type: String

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}:resource-provider:[a-z0-9-]{1,30}/[a-z0-9]{1,36}

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

ServiceQuotaExceededException

The request would exceed a service quota.

HTTP Status Code: 402

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: