BackupExternal / Client / get_resource_target

get_resource_target

BackupExternal.Client.get_resource_target(**kwargs)

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

See also: AWS API Documentation

Request Syntax

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

Arn (string) –

[REQUIRED]

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

Return type:

dict

Returns:

Response Syntax

{
    'Arn': 'string',
    'CreatedAt': datetime(2015, 1, 1),
    'ExternalIdentifier': 'string',
    'ExternalName': 'string',
    'LastSyncedAt': datetime(2015, 1, 1),
    'Name': 'string',
    'ProviderArn': 'string',
    'ProviderType': 'MSSQL_SERVER'|'NAS_SHARE'|'ORACLEDB_SERVER'|'ORACLEDB_CLUSTER'|'SERVER_HOST'|'VMWARE_ESXI'|'VMWARE_VCENTER',
    'Status': 'AVAILABLE'|'UNAVAILABLE'|'NOT_FOUND'|'DELETING'|'MIGRATING',
    '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'
        }
    },
    'TargetConfigurationSource': 'PROVIDER'|'TARGET',
    'TargetMetadata': {
        'MssqlDatabase': {
            'CompatibilityLevel': 'string',
            'DatabaseName': 'string',
            'DatabaseIdentifier': 'string',
            'FilestreamStatus': 'string',
            'InstanceName': 'string',
            'IsSystemDb': True|False,
            'LogicalSizeInBytes': 123,
            'RecoveryModel': 'SIMPLE'|'FULL'|'BULK_LOGGED',
            'SoftwareVersion': 'string',
            'TransparentDataEncryptionEnabled': True|False
        },
        'NasFilesystem': {},
        'OracledbDatabase': {
            'DatabaseName': 'string',
            'DatabaseIdentifier': 'string',
            'LogicalSizeInBytes': 123,
            'SoftwareVersion': 'string',
            'TransparentDataEncryptionEnabled': True|False
        },
        'ServerFilesystem': {},
        'VmwareVm': {
            'GuestOsType': 'string',
            'IpAddress': 'string',
            'LogicalSizeInBytes': 123,
            'ResourcePoolPath': 'string',
            'VirtualHardwareVersion': 'string',
            'VmFolderPath': 'string',
            'VmName': 'string',
            'VmMoId': 'string',
            'VmwareToolsStatus': 'string'
        }
    },
    'TargetType': 'MSSQL_DATABASE'|'NAS_FILESYSTEM'|'ORACLEDB_DATABASE'|'SERVER_FILESYSTEM'|'VMWARE_VM',
    'UpdatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) –

    • Arn (string) –

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

    • CreatedAt (datetime) –

      The date and time that the resource target was created.

    • ExternalIdentifier (string) –

      The identifier of the resource target in the external system.

    • ExternalName (string) –

      The name of the resource target in the external system.

    • LastSyncedAt (datetime) –

      The date and time that the resource target was last synchronized with its resource provider.

    • Name (string) –

      The name of the resource target.

    • ProviderArn (string) –

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

    • ProviderType (string) –

      The type of resource provider.

    • Status (string) –

      The status of the resource target.

    • StatusMessage (string) –

      The message describing the status of the resource target.

    • TargetConfiguration (dict) –

      The backup configuration for the resource target.

      Note

      This is a Tagged Union structure. Only one of the following top level keys will be set: MssqlDatabase, NasFilesystem, OracledbDatabase, ServerFilesystem, VmwareVm. 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'}
      
      • MssqlDatabase (dict) –

        The 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 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 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 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 backup configuration for a VMware virtual machine.

        • BackupConsistency (string) –

          The consistency behavior for the VMware virtual machine backup.

    • TargetConfigurationSource (string) –

      The source of the resource target’s backup configuration.

    • TargetMetadata (dict) –

      The metadata describing the resource target.

      Note

      This is a Tagged Union structure. Only one of the following top level keys will be set: MssqlDatabase, NasFilesystem, OracledbDatabase, ServerFilesystem, VmwareVm. 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'}
      
      • MssqlDatabase (dict) –

        The metadata for a Microsoft SQL Server database.

        • CompatibilityLevel (string) –

          The compatibility level of the Microsoft SQL Server database.

        • DatabaseName (string) –

          The name of the database.

        • DatabaseIdentifier (string) –

          The identifier of the database.

        • FilestreamStatus (string) –

          The FILESTREAM status of the Microsoft SQL Server database.

        • InstanceName (string) –

          The name of the Microsoft SQL Server instance that contains the database.

        • IsSystemDb (boolean) –

          Specifies whether the database is a system database.

        • LogicalSizeInBytes (integer) –

          The logical size of the database, in bytes.

        • RecoveryModel (string) –

          The recovery model of the Microsoft SQL Server database.

        • SoftwareVersion (string) –

          The software version of Microsoft SQL Server.

        • TransparentDataEncryptionEnabled (boolean) –

          Specifies whether transparent data encryption is enabled for the database.

      • NasFilesystem (dict) –

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

      • OracledbDatabase (dict) –

        The metadata for an Oracle database.

        • DatabaseName (string) –

          The name of the database.

        • DatabaseIdentifier (string) –

          The identifier of the database.

        • LogicalSizeInBytes (integer) –

          The logical size of the database, in bytes.

        • SoftwareVersion (string) –

          The software version of the Oracle database.

        • TransparentDataEncryptionEnabled (boolean) –

          Specifies whether transparent data encryption is enabled for the database.

      • ServerFilesystem (dict) –

        The metadata for a server filesystem.

      • VmwareVm (dict) –

        The metadata for a VMware virtual machine.

        • GuestOsType (string) –

          The type of guest operating system on the virtual machine.

        • IpAddress (string) –

          The IP address of the virtual machine.

        • LogicalSizeInBytes (integer) –

          The logical size of the virtual machine, in bytes.

        • ResourcePoolPath (string) –

          The path of the resource pool that contains the virtual machine.

        • VirtualHardwareVersion (string) –

          The virtual hardware version of the virtual machine.

        • VmFolderPath (string) –

          The path of the folder that contains the virtual machine.

        • VmName (string) –

          The name of the virtual machine.

        • VmMoId (string) –

          VMware managed object ID (e.g., host-1, vm-1, etc.)

        • VmwareToolsStatus (string) –

          The status of VMware Tools on the virtual machine.

    • TargetType (string) –

      The type of resource target.

    • UpdatedAt (datetime) –

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

Exceptions

  • BackupExternal.Client.exceptions.ThrottlingException

  • BackupExternal.Client.exceptions.AccessDeniedException

  • BackupExternal.Client.exceptions.ResourceNotFoundException

  • BackupExternal.Client.exceptions.ConflictException

  • BackupExternal.Client.exceptions.ValidationException

  • BackupExternal.Client.exceptions.InternalServerException