BackupExternal / Client / create_resource_provider
create_resource_provider¶
- BackupExternal.Client.create_resource_provider(**kwargs)¶
Creates a resource provider on the specified appliance with configuration for the provider and its resource targets.
See also: AWS API Documentation
Request Syntax
response = client.create_resource_provider( ApplianceArn='string', ClientToken='string', Name='string', ProviderConfiguration={ 'MssqlServer': { 'Endpoint': 'string' }, 'NasShare': { 'SharePath': 'string', 'Protocol': 'NFS_3'|'NFS_4_1'|'SMB' }, 'OracledbServer': { 'Endpoint': 'string' }, 'OracledbCluster': { 'AlternativeEndpoint': 'string', 'Endpoint': 'string' }, 'ServerHost': { 'Endpoint': 'string' }, 'VmwareEsxi': { 'Endpoint': 'string', 'MaxConcurrentStreamsPerDatastore': 123, 'MinFreeDatastoreSpaceForBackupPercentage': 123.0, 'MinFreeDatastoreSpaceForBackupGB': 123.0 }, 'VmwareVcenter': { 'Endpoint': 'string', 'MaxConcurrentStreamsPerDatastore': 123, 'MinFreeDatastoreSpaceForBackupPercentage': 123.0, 'MinFreeDatastoreSpaceForBackupGB': 123.0, 'MaxConcurrentVmBackups': 123 } }, ProviderType='MSSQL_SERVER'|'NAS_SHARE'|'ORACLEDB_SERVER'|'ORACLEDB_CLUSTER'|'SERVER_HOST'|'VMWARE_ESXI'|'VMWARE_VCENTER', SecretConfigurationArn='string', Tags={ 'string': 'string' }, TargetConfiguration={ 'MssqlDatabase': { 'FullBackupAfterDays': 123, 'FullBackupAfterScheduleExpression': 'string', 'BackupStreamCount': 123, 'IsCopyOnlyFull': True|False, 'LogBackupFrequencyInMinutes': 123 }, 'NasFilesystem': { 'AllowUnencryptedDataTransfer': True|False }, 'OracledbDatabase': { 'FullBackupAfterDays': 123, 'FullBackupAfterScheduleExpression': 'string', 'BackupChannelCount': 123, 'BackupNodeHostName': 'string', 'LogBackupFrequencyInMinutes': 123, 'LogRetentionOnHostInHours': 123 }, 'ServerFilesystem': { 'BackupConsistency': 'NON_CONSISTENT'|'CRASH_CONSISTENT'|'CRASH_CONSISTENT_FALLBACK_TO_NON_CONSISTENT', 'PostBackupScript': { 'ScriptParams': 'string', 'ScriptPath': 'string', 'TimeoutInMinutes': 123 }, 'PreBackupScript': { 'ContinueBackupOnScriptFailure': True|False, 'ScriptParams': 'string', 'ScriptPath': 'string', 'TimeoutInMinutes': 123 } }, 'VmwareVm': { 'BackupConsistency': 'APP_CONSISTENT_FALLBACK_TO_CRASH_CONSISTENT'|'APP_CONSISTENT'|'CRASH_CONSISTENT' } }, TargetTagsOnCreate={ 'string': 'string' }, TargetTagKeysToSync=[ 'string', ], AutoDeleteNotFoundTargetsAfterDays=123 )
- Parameters:
ApplianceArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the appliance.
ClientToken (string) –
A unique, case-sensitive identifier that you provide to ensure that the request is idempotent.
This field is autopopulated if not provided.
Name (string) – The name of the resource provider.
ProviderConfiguration (dict) –
[REQUIRED]
The configuration of the resource provider.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
MssqlServer,NasShare,OracledbServer,OracledbCluster,ServerHost,VmwareEsxi,VmwareVcenter.MssqlServer (dict) –
The configuration for a Microsoft SQL Server.
Endpoint (string) – [REQUIRED]
A network endpoint used to connect to a resource — can be an IP address, hostname, or FQDN. IPv6 addresses are unbracketed. Ports are not allowed. Max length of 253 as per RFC 1035.
NasShare (dict) –
The configuration for a network-attached storage (NAS) share.
SharePath (string) – [REQUIRED]
NAS share path (e.g., “10.0.0.1:/nfs_share” or “//10.0.0.1/smb_share”).
Protocol (string) – [REQUIRED]
The network protocol used to access the network-attached storage (NAS) share.
OracledbServer (dict) –
The configuration for an Oracle database server.
Endpoint (string) – [REQUIRED]
A network endpoint used to connect to a resource — can be an IP address, hostname, or FQDN. IPv6 addresses are unbracketed. Ports are not allowed. Max length of 253 as per RFC 1035.
OracledbCluster (dict) –
The configuration for an Oracle database cluster.
AlternativeEndpoint (string) –
Alternative endpoint used if the SCAN endpoint is not directly reachable.
Endpoint (string) – [REQUIRED]
SCAN endpoint used to connect to the cluster.
ServerHost (dict) –
The configuration for a server host.
Endpoint (string) – [REQUIRED]
A network endpoint used to connect to a resource — can be an IP address, hostname, or FQDN. IPv6 addresses are unbracketed. Ports are not allowed. Max length of 253 as per RFC 1035.
VmwareEsxi (dict) –
The configuration for a VMware ESXi host.
Endpoint (string) – [REQUIRED]
A network endpoint used to connect to a resource — can be an IP address, hostname, or FQDN. IPv6 addresses are unbracketed. Ports are not allowed. Max length of 253 as per RFC 1035.
MaxConcurrentStreamsPerDatastore (integer) –
Maximum number of concurrent backup streams per datastore.
MinFreeDatastoreSpaceForBackupPercentage (float) –
Minimum percentage of free datastore space required for a backup to proceed. Only one of percentage or GB may be passed.
MinFreeDatastoreSpaceForBackupGB (float) –
Minimum GB of free datastore space required for a backup to proceed. Only one of percentage or GB may be passed.
VmwareVcenter (dict) –
The configuration for a VMware vCenter Server.
Endpoint (string) – [REQUIRED]
A network endpoint used to connect to a resource — can be an IP address, hostname, or FQDN. IPv6 addresses are unbracketed. Ports are not allowed. Max length of 253 as per RFC 1035.
MaxConcurrentStreamsPerDatastore (integer) –
Maximum number of concurrent backup streams per datastore.
MinFreeDatastoreSpaceForBackupPercentage (float) –
Minimum percentage of free datastore space required for a backup to proceed. Only one of percentage or GB may be passed.
MinFreeDatastoreSpaceForBackupGB (float) –
Minimum GB of free datastore space required for a backup to proceed. Only one of percentage or GB may be passed.
MaxConcurrentVmBackups (integer) –
Maximum number of VMs that can be backed up concurrently from a vCenter.
ProviderType (string) –
[REQUIRED]
The type of resource provider.
SecretConfigurationArn (string) – The Amazon Resource Name (ARN) of the AWS Secrets Manager secret used to access the resource provider.
Tags (dict) –
The tags to associate with the resource provider.
(string) –
(string) –
TargetConfiguration (dict) –
[REQUIRED]
The default backup configurations for the resource provider’s resource targets, by target type.
MssqlDatabase (dict) –
The default backup configuration for a Microsoft SQL Server database.
FullBackupAfterDays (integer) – [REQUIRED]
A required threshold, in days, that decides whether a backup job takes a full or an incremental backup. When an on-demand or scheduled backup job runs, the job takes a full backup if the target’s most recent full backup is older than this many days; otherwise it takes an incremental backup, falling back to a full backup if an incremental is not possible.
FullBackupAfterScheduleExpression (string) –
An optional schedule expression that decides whether a backup job takes a full or an incremental backup. When a backup job runs, the job takes a full backup if none has been taken since the most recent point this expression matched. It is evaluated alongside
FullBackupAfterDays; if either matches, a full backup is taken. This is not a backup schedule and does not start backup jobs. Only cron expressions are supported. Example:cron(0 3 ? * SUN *)for every Sunday at 03:00 UTC.BackupStreamCount (integer) –
Number of parallel streams to use for the backup.
IsCopyOnlyFull (boolean) – [REQUIRED]
Whether to take a copy-only backup, which does not disturb the normal backup sequence (it does not reset the differential base or truncate the transaction log). Used during migration from another backup solution.
LogBackupFrequencyInMinutes (integer) –
If log backup is enabled, the frequency for log backup in minutes
NasFilesystem (dict) –
The default backup configuration for a network-attached storage (NAS) filesystem.
AllowUnencryptedDataTransfer (boolean) – [REQUIRED]
Specifies whether unencrypted data transfer is allowed for the network-attached storage (NAS) filesystem.
OracledbDatabase (dict) –
The default backup configuration for an Oracle database.
FullBackupAfterDays (integer) – [REQUIRED]
A required threshold, in days, that decides whether a backup job takes a full or an incremental backup. When an on-demand or scheduled backup job runs, the job takes a full backup if the target’s most recent full backup is older than this many days; otherwise it takes an incremental backup, falling back to a full backup if an incremental is not possible.
FullBackupAfterScheduleExpression (string) –
An optional schedule expression that decides whether a backup job takes a full or an incremental backup. When a backup job runs, the job takes a full backup if none has been taken since the most recent point this expression matched. It is evaluated alongside
FullBackupAfterDays; if either matches, a full backup is taken. This is not a backup schedule and does not start backup jobs. Only cron expressions are supported. Example:cron(0 3 ? * SUN *)for every Sunday at 03:00 UTC.BackupChannelCount (integer) –
The number of backup channels to use for the Oracle database.
BackupNodeHostName (string) –
Hostname of the node to use as the backup leader.
LogBackupFrequencyInMinutes (integer) –
If log backup is enabled, the frequency for log backup in minutes
LogRetentionOnHostInHours (integer) –
The log retention period for the host in hours.
ServerFilesystem (dict) –
The default backup configuration for a server filesystem.
BackupConsistency (string) –
Backup consistency behavior for a server filesystem backup. CRASH_CONSISTENT_* is only applicable to Windows servers.
PostBackupScript (dict) –
Script to run after a backup.
ScriptParams (string) –
The parameters to pass to the backup script.
ScriptPath (string) – [REQUIRED]
A relative path to a script within the
user_scriptsfolder in the agent installation directory on the server.TimeoutInMinutes (integer) –
The timeout for the backup script, in minutes.
PreBackupScript (dict) –
Script to run before a backup.
ContinueBackupOnScriptFailure (boolean) – [REQUIRED]
Specifies whether to continue the backup if the pre-backup script fails.
ScriptParams (string) –
The parameters to pass to the backup script.
ScriptPath (string) – [REQUIRED]
A relative path to a script within the
user_scriptsfolder in the agent installation directory on the server.TimeoutInMinutes (integer) –
The timeout for the backup script, in minutes.
VmwareVm (dict) –
The default backup configuration for a VMware virtual machine.
BackupConsistency (string) –
The consistency behavior for the VMware virtual machine backup.
TargetTagsOnCreate (dict) –
The tags to apply when the resource provider’s resource targets are created.
(string) –
(string) –
TargetTagKeysToSync (list) –
The tag keys whose values are synchronized from external resources to their resource targets.
(string) –
AutoDeleteNotFoundTargetsAfterDays (integer) – The number of days after which resource targets with a status of
NOT_FOUNDare automatically deleted.
- Return type:
dict
- Returns:
Response Syntax
{ 'Arn': 'string' }
Response Structure
(dict) –
Arn (string) –
The Amazon Resource Name (ARN) of the resource provider.
Exceptions