com.vmware.nsx_policy.cluster package¶
Submodules¶
com.vmware.nsx_policy.cluster.backups_client module¶
-
class
com.vmware.nsx_policy.cluster.backups_client.
Config
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
Parameters: config ( vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.-
UPDATE_FRAME_TYPE_GLOBAL_MANAGER
= 'GLOBAL_MANAGER'¶ Possible value for
frameType
of methodConfig.update()
.
-
UPDATE_FRAME_TYPE_LOCAL_LOCAL_MANAGER
= 'LOCAL_LOCAL_MANAGER'¶ Possible value for
frameType
of methodConfig.update()
.
-
UPDATE_FRAME_TYPE_LOCAL_MANAGER
= 'LOCAL_MANAGER'¶ Possible value for
frameType
of methodConfig.update()
.
-
UPDATE_FRAME_TYPE_NSX_INTELLIGENCE
= 'NSX_INTELLIGENCE'¶ Possible value for
frameType
of methodConfig.update()
.
-
get
()¶ Get a configuration of a file server and timers for automated backup. Fields that contain secrets (password, passphrase) are not returned.
Return type: com.vmware.nsx_policy.model_client.BackupConfiguration
Returns: com.vmware.nsx_policy.model.BackupConfiguration Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found
-
update
(backup_configuration, frame_type=None, site_id=None)¶ Configure file server and timers for automated backup. If secret fields are omitted (password, passphrase) then use the previously set value.
Parameters: - backup_configuration (
com.vmware.nsx_policy.model_client.BackupConfiguration
) – (required) - frame_type (
str
orNone
) – Frame type (optional, default to LOCAL_LOCAL_MANAGER) - site_id (
str
orNone
) – Site ID (optional, default to localhost)
Return type: Returns: com.vmware.nsx_policy.model.BackupConfiguration
Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found- backup_configuration (
-
-
class
com.vmware.nsx_policy.cluster.backups_client.
History
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
Parameters: config ( vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.-
get
()¶ Get history of previous backup operations
Return type: com.vmware.nsx_policy.model_client.BackupOperationHistory
Returns: com.vmware.nsx_policy.model.BackupOperationHistory Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found
-
-
class
com.vmware.nsx_policy.cluster.backups_client.
Overview
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
Parameters: config ( vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.-
LIST_FRAME_TYPE_GLOBAL_MANAGER
= 'GLOBAL_MANAGER'¶ Possible value for
frameType
of methodOverview.list()
.
-
LIST_FRAME_TYPE_LOCAL_LOCAL_MANAGER
= 'LOCAL_LOCAL_MANAGER'¶ Possible value for
frameType
of methodOverview.list()
.
-
LIST_FRAME_TYPE_LOCAL_MANAGER
= 'LOCAL_MANAGER'¶ Possible value for
frameType
of methodOverview.list()
.
-
LIST_FRAME_TYPE_NSX_INTELLIGENCE
= 'NSX_INTELLIGENCE'¶ Possible value for
frameType
of methodOverview.list()
.
-
list
(cursor=None, frame_type=None, included_fields=None, page_size=None, show_backups_list=None, site_id=None, sort_ascending=None, sort_by=None)¶ Get a configuration of a file server, timers for automated backup, latest backup status, backups list for a site. Fields that contain secrets (password, passphrase) are not returned.
Parameters: - cursor (
str
orNone
) – Opaque cursor to be used for getting next page of records (supplied by current result page) (optional) - frame_type (
str
orNone
) – Frame type (optional, default to LOCAL_LOCAL_MANAGER) - included_fields (
str
orNone
) – Comma separated list of fields that should be included in query result (optional) - page_size (
long
orNone
) – Maximum number of results to return in this page (server may return fewer) (optional, default to 1000) - show_backups_list (
bool
orNone
) – Need a list of backups (optional, default to true) - site_id (
str
orNone
) – Site ID (optional, default to localhost) - sort_ascending (
bool
orNone
) – (optional) - sort_by (
str
orNone
) – Field by which records are sorted (optional)
Return type: Returns: com.vmware.nsx_policy.model.BackupOverview
Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found- cursor (
-
-
class
com.vmware.nsx_policy.cluster.backups_client.
Status
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
Parameters: config ( vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.-
get
()¶ Get status of active backup operations
Return type: com.vmware.nsx_policy.model_client.CurrentBackupOperationStatus
Returns: com.vmware.nsx_policy.model.CurrentBackupOperationStatus Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found
-
-
class
com.vmware.nsx_policy.cluster.backups_client.
StubFactory
(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBase
Initialize StubFactoryBase
Parameters: stub_config ( vmware.vapi.bindings.stub.StubConfiguration
) – Stub config instance
com.vmware.nsx_policy.cluster.restore_client module¶
-
class
com.vmware.nsx_policy.cluster.restore_client.
Backuptimestamps
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
Parameters: config ( vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.-
get
(cursor=None, included_fields=None, page_size=None, sort_ascending=None, sort_by=None)¶ Returns timestamps for all backup files that are available on the SFTP server.
Parameters: - cursor (
str
orNone
) – Opaque cursor to be used for getting next page of records (supplied by current result page) (optional) - included_fields (
str
orNone
) – Comma separated list of fields that should be included in query result (optional) - page_size (
long
orNone
) – Maximum number of results to return in this page (server may return fewer) (optional, default to 1000) - sort_ascending (
bool
orNone
) – (optional) - sort_by (
str
orNone
) – Field by which records are sorted (optional)
Return type: com.vmware.nsx_policy.model_client.ClusterBackupInfoListResult
Returns: com.vmware.nsx_policy.model.ClusterBackupInfoListResult
Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found- cursor (
-
-
class
com.vmware.nsx_policy.cluster.restore_client.
Config
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
Parameters: config ( vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.-
get
()¶ Deprecated. Please use API /cluster/backups/config, to get remote file server(where backuped-up files are stored) details durign restore. In older versions - Get configuration information for the file server used to store backed-up files. Fields that contain secrets (password, passphrase) are not returned.
Return type: com.vmware.nsx_policy.model_client.RestoreConfiguration
Returns: com.vmware.nsx_policy.model.RestoreConfiguration Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found
-
update
(restore_configuration)¶ Deprecated. Please use API /cluster/backups/config, to configure remote file server(where backed-up files are stored) details during restore. In older versions - Configure file server where the backed-up files used for the Restore operation are available.
Parameters: restore_configuration ( com.vmware.nsx_policy.model_client.RestoreConfiguration
) – (required)Return type: com.vmware.nsx_policy.model_client.RestoreConfiguration
Returns: com.vmware.nsx_policy.model.RestoreConfiguration Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found
-
-
class
com.vmware.nsx_policy.cluster.restore_client.
InstructionResources
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
Parameters: config ( vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.-
get
(instruction_id, cursor=None, included_fields=None, page_size=None, sort_ascending=None, sort_by=None)¶ For restore operations requiring user input e.g. performing an action, accepting/rejecting an action, etc. the information to be conveyed to users is provided in this call.
Parameters: - instruction_id (
str
) – Id of the instruction set whose instructions are to be returned (required) - cursor (
str
orNone
) – Opaque cursor to be used for getting next page of records (supplied by current result page) (optional) - included_fields (
str
orNone
) – Comma separated list of fields that should be included in query result (optional) - page_size (
long
orNone
) – Maximum number of results to return in this page (server may return fewer) (optional, default to 1000) - sort_ascending (
bool
orNone
) – (optional) - sort_by (
str
orNone
) – Field by which records are sorted (optional)
Return type: com.vmware.nsx_policy.model_client.ActionableResourceListResult
Returns: com.vmware.nsx_policy.model.ActionableResourceListResult
Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found- instruction_id (
-
-
class
com.vmware.nsx_policy.cluster.restore_client.
StubFactory
(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBase
Initialize StubFactoryBase
Parameters: stub_config ( vmware.vapi.bindings.stub.StubConfiguration
) – Stub config instance