BackupExternal / Client / get_resource_provider

get_resource_provider

BackupExternal.Client.get_resource_provider(**kwargs)

Returns configuration, metadata, and status information for the specified resource provider.

See also: AWS API Documentation

Request Syntax

response = client.get_resource_provider(
    Arn='string'
)
Parameters:

Arn (string) –

[REQUIRED]

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

Return type:

dict

Returns:

Response Syntax

{
    'AgentComplianceStatus': 'NON_COMPLIANT'|'UP_TO_DATE'|'UPGRADE_AVAILABLE',
    'AgentUpgradeStatus': 'PENDING'|'RUNNING'|'COMPLETED'|'FAILED',
    'AgentUpgradeStatusMessage': 'string',
    'AgentVersionCurrent': 'string',
    'AgentVersionLatest': 'string',
    'ApplianceArn': 'string',
    'Arn': 'string',
    'CreatedAt': datetime(2015, 1, 1),
    'LastSyncStartedAt': datetime(2015, 1, 1),
    'LastSyncCompletedAt': datetime(2015, 1, 1),
    '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
        }
    },
    'ProviderMetadata': {
        'MssqlServer': {
            'DatabaseCount': 123,
            'InstanceCount': 123,
            'OsName': 'string',
            'OsType': 'string'
        },
        'NasShare': {},
        'OracledbServer': {
            'DatabaseCount': 123,
            'OsName': 'string',
            'SoftwareVersion': 'string'
        },
        'OracledbCluster': {
            'ClusterNodeCount': 123,
            'DatabaseCount': 123
        },
        'ServerHost': {
            'LogicalSizeInBytes': 123,
            'OsName': 'string',
            'OsType': 'string'
        },
        'VmwareEsxi': {},
        'VmwareVcenter': {}
    },
    'ProviderType': 'MSSQL_SERVER'|'NAS_SHARE'|'ORACLEDB_SERVER'|'ORACLEDB_CLUSTER'|'SERVER_HOST'|'VMWARE_ESXI'|'VMWARE_VCENTER',
    'SecretConfigurationArn': 'string',
    'Status': 'DELETING'|'DELETION_FAILED'|'MIGRATING'|'MIGRATION_FAILED'|'SYNCING'|'SYNC_COMPLETED'|'SYNC_FAILED',
    'StatusMessage': '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,
    'UpdatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) –

    • AgentComplianceStatus (string) –

      The compliance status of the resource provider’s agent version.

    • AgentUpgradeStatus (string) –

      The status of the resource provider’s agent upgrade.

    • AgentUpgradeStatusMessage (string) –

      The message describing the status of the resource provider’s agent upgrade.

    • AgentVersionCurrent (string) –

      The current version of the resource provider’s agent.

    • AgentVersionLatest (string) –

      The latest version of the agent available for the resource provider.

    • ApplianceArn (string) –

      The Amazon Resource Name (ARN) of the appliance.

    • Arn (string) –

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

    • CreatedAt (datetime) –

      The date and time that the resource provider was created.

    • LastSyncStartedAt (datetime) –

      The date and time that the resource provider’s most recent synchronization started.

    • LastSyncCompletedAt (datetime) –

      The date and time that the resource provider’s most recent synchronization completed.

    • Name (string) –

      The name of the resource provider.

    • ProviderConfiguration (dict) –

      The configuration of the resource provider.

      Note

      This is a Tagged Union structure. Only one of the following top level keys will be set: MssqlServer, NasShare, OracledbServer, OracledbCluster, ServerHost, VmwareEsxi, VmwareVcenter. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is as follows:

      'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
      
      • MssqlServer (dict) –

        The configuration for a Microsoft SQL Server.

        • Endpoint (string) –

          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) –

          NAS share path (e.g., “10.0.0.1:/nfs_share” or “//10.0.0.1/smb_share”).

        • Protocol (string) –

          The network protocol used to access the network-attached storage (NAS) share.

      • OracledbServer (dict) –

        The configuration for an Oracle database server.

        • Endpoint (string) –

          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) –

          SCAN endpoint used to connect to the cluster.

      • ServerHost (dict) –

        The configuration for a server host.

        • Endpoint (string) –

          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) –

          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) –

          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.

    • ProviderMetadata (dict) –

      The metadata describing the resource provider.

      Note

      This is a Tagged Union structure. Only one of the following top level keys will be set: MssqlServer, NasShare, OracledbServer, OracledbCluster, ServerHost, VmwareEsxi, VmwareVcenter. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is as follows:

      'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
      
      • MssqlServer (dict) –

        The metadata for a Microsoft SQL Server.

        • DatabaseCount (integer) –

          The number of databases on the resource provider.

        • InstanceCount (integer) –

          The number of Microsoft SQL Server instances on the resource provider.

        • OsName (string) –

          The name of the operating system on the resource provider.

        • OsType (string) –

          The type of operating system on the resource provider.

      • NasShare (dict) –

        The metadata for a network-attached storage (NAS) share.

      • OracledbServer (dict) –

        The metadata for an Oracle database server.

        • DatabaseCount (integer) –

          The number of databases on the resource provider.

        • OsName (string) –

          The name of the operating system on the resource provider.

        • SoftwareVersion (string) –

          The software version of the Oracle database.

      • OracledbCluster (dict) –

        The metadata for an Oracle database cluster.

        • ClusterNodeCount (integer) –

          The number of nodes in the Oracle database cluster.

        • DatabaseCount (integer) –

          The number of databases on the resource provider.

      • ServerHost (dict) –

        The metadata for a server host.

        • LogicalSizeInBytes (integer) –

          The logical size of the server host, in bytes.

        • OsName (string) –

          The name of the operating system on the resource provider.

        • OsType (string) –

          The type of operating system on the resource provider.

      • VmwareEsxi (dict) –

        The metadata for a VMware ESXi host.

      • VmwareVcenter (dict) –

        The metadata for a VMware vCenter Server.

    • ProviderType (string) –

      The type of resource provider.

    • SecretConfigurationArn (string) –

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

    • Status (string) –

      The status of the resource provider.

    • StatusMessage (string) –

      The message describing the status of the resource provider.

    • TargetConfiguration (dict) –

      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) –

          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) –

          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) –

          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) –

          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) –

            A relative path to a script within the user_scripts folder 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) –

            Specifies whether to continue the backup if the pre-backup script fails.

          • ScriptParams (string) –

            The parameters to pass to the backup script.

          • ScriptPath (string) –

            A relative path to a script within the user_scripts folder 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_FOUND are automatically deleted.

    • UpdatedAt (datetime) –

      The date and time that the resource provider was last updated.

Exceptions