rdb / Client / copy_db_snapshot
copy_db_snapshot
- rdb.Client.copy_db_snapshot(**kwargs)
DBスナップショットをコピーします。
コピー元のDBスナップショットはステータスが”available”でなければなりません。
自動バックアップ機能で作成されたDBスナップショットのみコピーすることができます。
See also: NIFCLOUD API Documentation
Request Syntax
response = client.copy_db_snapshot( SourceDBSnapshotIdentifier='string', TargetDBSnapshotIdentifier='string' )
- Parameters:
SourceDBSnapshotIdentifier (string) – [REQUIRED]
TargetDBSnapshotIdentifier (string) – [REQUIRED]
- Return type:
dict
- Returns:
Response Syntax
{ 'DBSnapshot': { 'AllocatedStorage': 123, 'AvailabilityZone': 'string', 'DBInstanceIdentifier': 'string', 'DBSnapshotIdentifier': 'string', 'Engine': 'string', 'EngineVersion': 'string', 'InstanceCreateTime': datetime(2015, 1, 1), 'LicenseModel': 'string', 'MasterUsername': 'string', 'OptionGroupName': 'string', 'Port': 123, 'SnapshotCreateTime': datetime(2015, 1, 1), 'SnapshotType': 'string', 'Status': 'string' }, 'ResponseMetadata': { 'RequestId': 'string' } }
Response Structure
(dict) –
DBSnapshot (dict) –
AllocatedStorage (integer) –
AvailabilityZone (string) –
DBInstanceIdentifier (string) –
DBSnapshotIdentifier (string) –
Engine (string) –
EngineVersion (string) –
InstanceCreateTime (datetime) –
LicenseModel (string) –
MasterUsername (string) –
OptionGroupName (string) –
Port (integer) –
SnapshotCreateTime (datetime) –
SnapshotType (string) –
Status (string) –
ResponseMetadata (dict) –
RequestId (string) –