diff --git a/vmc-draas/_sources/index.rst.txt b/vmc-draas/_sources/index.rst.txt index 28fa2695..f833e714 100644 --- a/vmc-draas/_sources/index.rst.txt +++ b/vmc-draas/_sources/index.rst.txt @@ -1,5 +1,5 @@ .. draas documentation master file, created by - sphinx-quickstart on Wed Nov 18 05:30:53 2020. + sphinx-quickstart on Tue Dec 8 11:12:52 2020. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. diff --git a/vmc-draas/_static/documentation_options.js b/vmc-draas/_static/documentation_options.js index fb7b6005..51070a84 100644 --- a/vmc-draas/_static/documentation_options.js +++ b/vmc-draas/_static/documentation_options.js @@ -1,6 +1,6 @@ var DOCUMENTATION_OPTIONS = { URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'), - VERSION: '1.15.0', + VERSION: '1.16.0', LANGUAGE: 'en', COLLAPSE_INDEX: false, BUILDER: 'html', diff --git a/vmc-draas/_static/pygments.css b/vmc-draas/_static/pygments.css index 96529c7b..13b72433 100644 --- a/vmc-draas/_static/pygments.css +++ b/vmc-draas/_static/pygments.css @@ -1,4 +1,4 @@ -pre { line-height: 125%; margin: 0; } +pre { line-height: 125%; } td.linenos pre { color: #000000; background-color: #f0f0f0; padding-left: 5px; padding-right: 5px; } span.linenos { color: #000000; background-color: #f0f0f0; padding-left: 5px; padding-right: 5px; } td.linenos pre.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } diff --git a/vmc-draas/com.html b/vmc-draas/com.html index ba156495..75959694 100644 --- a/vmc-draas/com.html +++ b/vmc-draas/com.html @@ -7,7 +7,7 @@ -
com.vmware.vmc.draas.model_client.
AbstractEntity
(updated=None, user_id=None, created=None, updated_by_user_id=None, version=None, updated_by_user_name=None, user_name=None, id=None)¶Bases: vmware.vapi.bindings.struct.VapiStruct
Tip
-The arguments are used to initialize data attributes with the same -names.
-updated (datetime.datetime
) –
user_id (str
) – User id that last updated this record
created (datetime.datetime
) –
updated_by_user_id (str
) – User id that last updated this record
version (long
) – Version of this entity format: int32
updated_by_user_name (str
) – User name that last updated this record
user_name (str
) – User name that last updated this record
id (str
) –
com.vmware.vmc.draas.model_client.
ActivateSiteRecoveryConfig
(srm_extension_key_suffix=None)¶Bases: vmware.vapi.bindings.struct.VapiStruct
Tip
-The arguments are used to initialize data attributes with the same -names.
-srm_extension_key_suffix (str
or None
) – Optional custom extension key suffix for SRM. If not specified,
-default extension key will be used. The custom extension suffix
-must contain 13 characters or less, be composed of letters,
-numbers, ., -, and _ characters. The extension suffix must begin
-and end with a letter or number. The suffix is appended to
-com.vmware.vcDr- to form the full extension key.
com.vmware.vmc.draas.model_client.
ErrorResponse
(status=None, path=None, retryable=None, error_code=None, error_messages=None)¶Bases: vmware.vapi.bindings.struct.VapiStruct
Tip
-The arguments are used to initialize data attributes with the same -names.
-status (long
) – HTTP status code
path (str
) – Originating request URI
retryable (bool
) – If true, client should retry operation
error_code (str
) – unique error code
error_messages (list
of str
) – localized error messages
com.vmware.vmc.draas.model_client.
Fault
(message=None, cause=None)¶Bases: vmware.vapi.bindings.struct.VapiStruct
Tip
-The arguments are used to initialize data attributes with the same -names.
-message (str
or None
) –
cause (vmware.vapi.struct.VapiStruct
or None
) –
com.vmware.vmc.draas.model_client.
HmsIssueInfo
(target_object_mo_id=None, severity=None, issue_type=None, target_object_name=None, fault=None, triggered_time=None)¶Bases: vmware.vapi.bindings.struct.VapiStruct
Tip
-The arguments are used to initialize data attributes with the same -names.
-target_object_mo_id (str
) –
severity (str
) –
issue_type (str
) –
target_object_name (str
or None
) –
fault (Fault
or None
) –
triggered_time (datetime.datetime
) –
com.vmware.vmc.draas.model_client.
HmsReplicationIssueInfo
(target_object_mo_id=None, severity=None, issue_type=None, target_object_name=None, fault=None, triggered_time=None, direction=None, source_site_uuid=None, destination_site_uuid=None)¶Bases: vmware.vapi.bindings.struct.VapiStruct
Tip
-The arguments are used to initialize data attributes with the same -names.
-target_object_mo_id (str
) –
severity (str
) –
issue_type (str
) –
target_object_name (str
or None
) –
fault (Fault
or None
) –
triggered_time (datetime.datetime
) –
direction (str
or None
) –
source_site_uuid (str
or None
) –
destination_site_uuid (str
or None
) –
com.vmware.vmc.draas.model_client.
HmsSiteIssueInfo
(target_object_mo_id=None, severity=None, issue_type=None, target_object_name=None, fault=None, triggered_time=None)¶Bases: vmware.vapi.bindings.struct.VapiStruct
Tip
-The arguments are used to initialize data attributes with the same -names.
-target_object_mo_id (str
) –
severity (str
) –
issue_type (str
) –
target_object_name (str
or None
) –
fault (Fault
or None
) –
triggered_time (datetime.datetime
) –
com.vmware.vmc.draas.model_client.
ProvisionSrmConfig
(srm_extension_key_suffix=None)¶Bases: vmware.vapi.bindings.struct.VapiStruct
Tip
-The arguments are used to initialize data attributes with the same -names.
-srm_extension_key_suffix (str
or None
) – Optional custom extension key suffix for SRM. If not specified,
-default extension key will be used.
com.vmware.vmc.draas.model_client.
ReplicaDisk
(space_requirement=None, name=None, collection_id=None, datastores_for_single_host_move=None, movable=None, disk_id=None, datastore_mo_id=None)¶Bases: vmware.vapi.bindings.struct.VapiStruct
Tip
-The arguments are used to initialize data attributes with the same -names.
-space_requirement (float
or None
) –
name (str
or None
) –
collection_id (str
or None
) –
datastores_for_single_host_move (list
of vmware.vapi.struct.VapiStruct
or None
) –
movable (bool
or None
) –
disk_id (str
or None
) –
datastore_mo_id (str
or None
) –
com.vmware.vmc.draas.model_client.
ReplicaDiskCollection
(collection_id=None, generated=None, disks=None, placeholder_vm_mo_id=None, name=None)¶Bases: vmware.vapi.bindings.struct.VapiStruct
Tip
-The arguments are used to initialize data attributes with the same -names.
-collection_id (str
or None
) –
generated (datetime.datetime
or None
) –
disks (list
of ReplicaDisk
or None
) –
placeholder_vm_mo_id (str
or None
) –
name (str
or None
) –
com.vmware.vmc.draas.model_client.
SiteRecovery
(updated=None, user_id=None, created=None, updated_by_user_id=None, version=None, updated_by_user_name=None, user_name=None, id=None, site_recovery_state=None, vr_node=None, srm_nodes=None, sddc_id=None, draas_h5_url=None)¶Bases: vmware.vapi.bindings.struct.VapiStruct
Tip
-The arguments are used to initialize data attributes with the same -names.
-updated (datetime.datetime
) –
user_id (str
) – User id that last updated this record
created (datetime.datetime
) –
updated_by_user_id (str
) – User id that last updated this record
version (long
) – Version of this entity format: int32
updated_by_user_name (str
) – User name that last updated this record
user_name (str
) – User name that last updated this record
id (str
) –
site_recovery_state (str
or None
) –
Possible values are:
-vr_node (SiteRecoveryNode
or None
) –
srm_nodes (list
of SrmNode
or None
) –
sddc_id (str
or None
) –
draas_h5_url (str
or None
) –
SITE_RECOVERY_STATE_ACTIVATED
= 'ACTIVATED'¶SITE_RECOVERY_STATE_ACTIVATING
= 'ACTIVATING'¶SITE_RECOVERY_STATE_CANCELED
= 'CANCELED'¶SITE_RECOVERY_STATE_DEACTIVATED
= 'DEACTIVATED'¶SITE_RECOVERY_STATE_DEACTIVATING
= 'DEACTIVATING'¶SITE_RECOVERY_STATE_DELETED
= 'DELETED'¶SITE_RECOVERY_STATE_FAILED
= 'FAILED'¶com.vmware.vmc.draas.model_client.
SiteRecoveryNode
(vm_moref_id=None, ip_address=None, hostname=None, id=None, state=None, type=None)¶Bases: vmware.vapi.bindings.struct.VapiStruct
Tip
-The arguments are used to initialize data attributes with the same -names.
-vm_moref_id (str
or None
) –
ip_address (str
or None
) –
hostname (str
or None
) –
id (str
or None
) –
state (str
or None
) –
Possible values are:
- -type (str
or None
) –
Possible values are:
- -STATE_CANCELED
= 'CANCELED'¶STATE_DELETING
= 'DELETING'¶STATE_DEPLOYING
= 'DEPLOYING'¶STATE_FAILED
= 'FAILED'¶STATE_PROVISIONED
= 'PROVISIONED'¶STATE_READY
= 'READY'¶TYPE_SRM
= 'SRM'¶TYPE_VRMS
= 'VRMS'¶TYPE_VRS
= 'VRS'¶com.vmware.vmc.draas.model_client.
SiteRecoveryNodeVersion
(version_source=None, node_id=None, build_number=None, appliance_version=None, node_ip=None, full_version=None, node_type=None)¶Bases: vmware.vapi.bindings.struct.VapiStruct
Tip
-The arguments are used to initialize data attributes with the same -names.
-version_source (str
or None
) –
Possible values are:
- -node_id (str
or None
) –
build_number (str
or None
) –
appliance_version (str
or None
) –
node_ip (str
or None
) –
full_version (str
or None
) –
node_type (str
or None
) –
Possible values are:
- -NODE_TYPE_SRM
= 'SRM'¶NODE_TYPE_VRMS
= 'VRMS'¶NODE_TYPE_VRS
= 'VRS'¶VERSION_SOURCE_LS
= 'ls'¶VERSION_SOURCE_VAMICLI
= 'vamicli'¶com.vmware.vmc.draas.model_client.
SiteRecoveryVersions
(generated=None, sddc_id=None, node_versions=None)¶Bases: vmware.vapi.bindings.struct.VapiStruct
Tip
-The arguments are used to initialize data attributes with the same -names.
-generated (datetime.datetime
or None
) –
sddc_id (str
or None
) –
node_versions (list
of SiteRecoveryNodeVersion
or None
) – list of site recovery node version
com.vmware.vmc.draas.model_client.
SrmNode
(vm_moref_id=None, ip_address=None, hostname=None, id=None, state=None, type=None, srm_extension_key_suffix=None, srm_extension_key=None)¶Bases: vmware.vapi.bindings.struct.VapiStruct
Tip
-The arguments are used to initialize data attributes with the same -names.
-vm_moref_id (str
or None
) –
ip_address (str
or None
) –
hostname (str
or None
) –
id (str
or None
) –
state (str
or None
) –
Possible values are:
- -type (str
or None
) –
Possible values are:
- -srm_extension_key_suffix (str
or None
) –
srm_extension_key (str
or None
) –
STATE_CANCELED
= 'CANCELED'¶STATE_DELETING
= 'DELETING'¶STATE_DEPLOYING
= 'DEPLOYING'¶STATE_FAILED
= 'FAILED'¶STATE_PROVISIONED
= 'PROVISIONED'¶STATE_READY
= 'READY'¶TYPE_SRM
= 'SRM'¶TYPE_VRMS
= 'VRMS'¶TYPE_VRS
= 'VRS'¶com.vmware.vmc.draas.model_client.
StubFactory
(stub_config)¶Bases: vmware.vapi.bindings.stub.StubFactoryBase
Initialize StubFactoryBase
-stub_config (vmware.vapi.bindings.stub.StubConfiguration
) – Stub config instance
com.vmware.vmc.draas.model_client.
Task
(updated=None, user_id=None, created=None, updated_by_user_id=None, version=None, updated_by_user_name=None, user_name=None, id=None, status=None, resource_id=None, start_time=None, retries=None, task_type=None, task_progress_phases=None, tenant_id=None, error_message=None, parent_task_id=None, progress_percent=None, estimated_remaining_minutes=None, params=None, end_time=None, task_version=None, resource_type=None, sub_status=None)¶Bases: vmware.vapi.bindings.struct.VapiStruct
Tip
-The arguments are used to initialize data attributes with the same -names.
-updated (datetime.datetime
) –
user_id (str
) – User id that last updated this record
created (datetime.datetime
) –
updated_by_user_id (str
) – User id that last updated this record
version (long
) – Version of this entity format: int32
updated_by_user_name (str
) – User name that last updated this record
user_name (str
) – User name that last updated this record
id (str
) –
status (str
or None
) –
Possible values are:
- -resource_id (str
or None
) – UUID of resources task is acting upon
start_time (datetime.datetime
or None
) –
retries (long
or None
) –
task_type (str
or None
) –
task_progress_phases (list
of TaskProgressPhase
or None
) – Task progress phases involved in current task execution
tenant_id (str
or None
) –
error_message (str
or None
) –
parent_task_id (str
or None
) –
progress_percent (long
or None
) – Estimated progress percentage the task executed format: int32
estimated_remaining_minutes (long
or None
) – Estimated remaining time in minute of the task execution, < 0 means
-no estimation for the task. format: int32
params (vmware.vapi.struct.VapiStruct
or None
) –
end_time (datetime.datetime
or None
) –
task_version (str
or None
) –
resource_type (str
or None
) – Type of resource being acted upon
sub_status (str
or None
) –
STATUS_CANCELED
= 'CANCELED'¶STATUS_CANCELING
= 'CANCELING'¶STATUS_FAILED
= 'FAILED'¶STATUS_FINISHED
= 'FINISHED'¶STATUS_STARTED
= 'STARTED'¶com.vmware.vmc.draas.model_client.
TaskProgressPhase
(id=None, name=None, progress_percent=None)¶Bases: vmware.vapi.bindings.struct.VapiStruct
A task progress can be (but does NOT have to be) divided to more meaningful -progress phases.
-Tip
-The arguments are used to initialize data attributes with the same -names.
-id (str
) – The identifier of the task progress phase
name (str
) – The display name of the task progress phase
progress_percent (long
) – The percentage of the phase that has completed format: int32
com.vmware.vmc.draas_client.
ReplicaDiskCollections
(config)¶Bases: vmware.vapi.bindings.stub.VapiInterface
config (vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
get
(org, sddc, datastore_mo_id=None)¶Query replica disk collections
-org (str
) – Organization identifier (required)
sddc (str
) – sddc identifier (required)
datastore_mo_id (str
or None
) – Represents the datastore moref id to search. (optional)
list
of com.vmware.vmc.draas.model_client.ReplicaDiskCollection
com.vmware.vapi.std.errors_client.Unauthenticated
-Unauthorized
com.vmware.vapi.std.errors_client.Unauthorized
-Forbidden
com.vmware.vapi.std.errors_client.NotFound
-Not found
com.vmware.vmc.draas_client.
SiteRecovery
(config)¶Bases: vmware.vapi.bindings.stub.VapiInterface
config (vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
delete
(org, sddc, force=None, deactivate_hcx=None)¶Deactivate site recovery for the specified sddc
-org (str
) – Organization identifier (required)
sddc (str
) – sddc identifier (required)
force (bool
or None
) – If = ‘true’, will deactivate site recovery forcefully. (optional)
deactivate_hcx (bool
or None
) – If = ‘true’, will deactivate HCX. (optional)
com.vmware.vmc.draas.model.Task
-com.vmware.vapi.std.errors_client.Unauthenticated
-Unauthorized
com.vmware.vapi.std.errors_client.InvalidRequest
-Invalid action or bad argument
com.vmware.vapi.std.errors_client.Unauthorized
-Forbidden
com.vmware.vapi.std.errors_client.NotFound
-Cannot find site recovery configuration for sddc identifier
get
(org, sddc)¶Query site recovery configuration for the specified sddc
-org (str
) – Organization identifier (required)
sddc (str
) – sddc identifier (required)
com.vmware.vmc.draas.model.SiteRecovery
-com.vmware.vapi.std.errors_client.Unauthenticated
-Unauthorized
com.vmware.vapi.std.errors_client.InvalidRequest
-Invalid action or bad argument
com.vmware.vapi.std.errors_client.Unauthorized
-Forbidden
post
(org, sddc, activate_site_recovery_config=None)¶Activate site recovery for the specified sddc
-org (str
) – Organization identifier (required)
sddc (str
) – sddc identifier (required)
activate_site_recovery_config (com.vmware.vmc.draas.model_client.ActivateSiteRecoveryConfig
or None
) – Customization, for example can specify custom extension key suffix
-for SRM. (optional)
com.vmware.vmc.draas.model.Task
-com.vmware.vapi.std.errors_client.Unauthenticated
-Unauthorized
com.vmware.vapi.std.errors_client.InvalidRequest
-Invalid action or bad argument
com.vmware.vapi.std.errors_client.Unauthorized
-Forbidden
com.vmware.vapi.std.errors_client.NotFound
-Cannot find site recovery configuration for sddc identifier
com.vmware.vmc.draas_client.
SiteRecoverySrmNodes
(config)¶Bases: vmware.vapi.bindings.stub.VapiInterface
config (vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
delete
(org, sddc, srm_node)¶Delete a SRM server.
-org (str
) – Organization identifier (required)
sddc (str
) – sddc identifier (required)
srm_node (str
) – SRM node identifier (required)
com.vmware.vmc.draas.model.Task
-com.vmware.vapi.std.errors_client.Unauthenticated
-Unauthorized
com.vmware.vapi.std.errors_client.InvalidRequest
-Invalid action or bad argument
com.vmware.vapi.std.errors_client.Unauthorized
-Forbidden
com.vmware.vapi.std.errors_client.NotFound
-Cannot find SDDC or SRM node
post
(org, sddc, provision_srm_config=None)¶Provision an additional SRM server.
-org (str
) – Organization identifier (required)
sddc (str
) – sddc identifier (required)
provision_srm_config (com.vmware.vmc.draas.model_client.ProvisionSrmConfig
or None
) – Customization, for example can specify custom extension key suffix
-for SRM. (optional)
com.vmware.vmc.draas.model.Task
-com.vmware.vapi.std.errors_client.Unauthenticated
-Unauthorized
com.vmware.vapi.std.errors_client.InvalidRequest
-Invalid action or bad argument
com.vmware.vapi.std.errors_client.Unauthorized
-Forbidden
com.vmware.vapi.std.errors_client.NotFound
-Cannot find site recovery configuration for sddc identifier
com.vmware.vmc.draas_client.
SiteRecoveryVersions
(config)¶Bases: vmware.vapi.bindings.stub.VapiInterface
config (vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
GET_VERSION_SOURCE_LS
= 'ls'¶Possible value for versionSource
of method
-SiteRecoveryVersions.get()
.
GET_VERSION_SOURCE_VAMICLI
= 'vamicli'¶Possible value for versionSource
of method
-SiteRecoveryVersions.get()
.
get
(org, sddc, version_source=None)¶Query site recovery versions for the specified sddc
-org (str
) – Organization identifier (required)
sddc (str
) – sddc identifier (required)
version_source (str
or None
) – Represents the source for getting the version from. (optional)
com.vmware.vmc.draas.model.SiteRecoveryVersions
-com.vmware.vapi.std.errors_client.Unauthenticated
-Unauthorized
com.vmware.vapi.std.errors_client.InvalidRequest
-Invalid action or bad argument
com.vmware.vapi.std.errors_client.Unauthorized
-Forbidden
com.vmware.vapi.std.errors_client.NotFound
-Cannot find site recovery versions for sddc identifier
com.vmware.vmc.draas_client.
StubFactory
(stub_config)¶Bases: vmware.vapi.bindings.stub.StubFactoryBase
Initialize StubFactoryBase
-stub_config (vmware.vapi.bindings.stub.StubConfiguration
) – Stub config instance
com.vmware.vmc.draas_client.
Task
(config)¶Bases: vmware.vapi.bindings.stub.VapiInterface
config (vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
get
(org, task)¶Retrieve details of a task.
-org (str
) – Organization identifier (required)
task (str
) – task identifier (required)
com.vmware.vmc.draas.model.Task
-com.vmware.vapi.std.errors_client.Unauthenticated
-Unauthorized
com.vmware.vapi.std.errors_client.Unauthorized
-Forbidden
com.vmware.vapi.std.errors_client.NotFound
-Cannot find the task with given identifier
list
(org, filter=None)¶List all tasks with optional filtering.
-org (str
) – Organization identifier (required)
filter (str
or None
) – Filter expression Binary Operators: ‘eq’, ‘ne’, ‘lt’, ‘gt’, ‘le’,
-‘ge’, ‘mul’, ‘div’, ‘mod’, ‘sub’, ‘add’ Unary Operators: ‘not’, ‘-‘
-(minus) String Operators: ‘startswith’, ‘endswith’, ‘length’,
-‘contains’, ‘tolower’, ‘toupper’, Nested attributes are composed
-using ‘.’ Dates must be formatted as yyyy-MM-dd or
-yyyy-MM-ddTHH:mm:ss[.SSS]Z Strings should enclosed in single
-quotes, escape single quote with two single quotes The special
-literal ‘created’ will be mapped to the time the resource was first
-created. Examples: - $filter=(updated gt 2016-08-09T13:00:00Z) and
-(org_id eq 278710ff4e-6b6d-4d4e-aefb-ca637f38609e) -
-$filter=(created eq 2016-08-09) - $filter=(created gt 2016-08-09)
-and (sddc.status eq ‘READY’) (optional)
com.vmware.vapi.std.errors_client.Unauthenticated
-Unauthorized
com.vmware.vapi.std.errors_client.Unauthorized
-Forbidden
update
(org, task, action=None)¶Request that a running task be canceled. This is advisory only, some -tasks may not be cancelable, and some tasks might take an arbitrary -amount of time to respond to a cancelation request. The task must be -monitored to determine subsequent status.
-org (str
) – Organization identifier (required)
task (str
) – task identifier (required)
action (str
or None
) – If = ‘cancel’, task will be canceled (optional)
com.vmware.vmc.draas.model.Task
-com.vmware.vapi.std.errors_client.Unauthenticated
-Unauthorized
com.vmware.vapi.std.errors_client.InvalidRequest
-Invalid action or bad argument
com.vmware.vapi.std.errors_client.Unauthorized
-Forbidden
com.vmware.vapi.std.errors_client.NotFound
-Cannot find the task with given identifier
com.vmware.vmc.draas_client.
VrReplicationIssues
(config)¶Bases: vmware.vapi.bindings.stub.VapiInterface
config (vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
get
(org, sddc)¶Query VR replication issues
-org (str
) – Organization identifier (required)
sddc (str
) – sddc identifier (required)
list
of com.vmware.vmc.draas.model_client.HmsReplicationIssueInfo
com.vmware.vapi.std.errors_client.Unauthenticated
-Unauthorized
com.vmware.vapi.std.errors_client.Unauthorized
-Forbidden
com.vmware.vapi.std.errors_client.NotFound
-Not found
com.vmware.vmc.draas_client.
VrSiteIssues
(config)¶Bases: vmware.vapi.bindings.stub.VapiInterface
config (vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
get
(org, sddc)¶Query VR site issues
-org (str
) – Organization identifier (required)
sddc (str
) – sddc identifier (required)
com.vmware.vapi.std.errors_client.Unauthenticated
-Unauthorized
com.vmware.vapi.std.errors_client.Unauthorized
-Forbidden
com.vmware.vapi.std.errors_client.NotFound
-Not found
- | - |
|
+
|
-
|
-
- |
- |
- |
- | - |
- | - |
- | - |
- | - |
- | - |
- |
|
com.vmware.vmc.draas
com.vmware.vmc.draas.model_client
com.vmware.vmc.draas_client
vmware.vapi.vmc
vmware.vapi.vmc.csp_filter
CSP Refresh token based SecurityContextFilter
-vmware.vapi.vmc.csp_filter.
CSPSecurityContextFilter
(session, refresh_token, refresh_url)¶Bases: vmware.vapi.security.client.security_context_filter.SecurityContextFilter
CSP Security Context filter in API Provider chain adds the security -context based on a refresh token to the execution context passed in.
-Initialize SecurityContextFilter
-session (requests.Session
) – Requests Session object to use for making HTTP calls
refresh_token (str
) – Refresh token to use for obtaining an access token
refresh_url (str
) – URL that allows exchanging a refresh token for an
-access token
get_max_retries
()¶Get the max number of retries
-int
Number of retries
-get_security_context
(on_error)¶Retrieve security context. If this method is called after an error -occured, then a new access token is obtained using the refresh token and -a new security context is created.
-on_error (bool
) – Whether this method is called after getting an error
vmware.vapi.core.SecurityContext
Security context
-should_retry
(error_value)¶Returns whether the request should be retried or not based on the error -specified.
-error_value (vmware.vapi.data.value.ErrorValue
) – Method error
bool
Returns True if request should be retried in case the error is -either Unauthenticated or Unauthorized else False
-