otcextensions.sdk.sdrs.v1.task_center.FailedTask

The SDRS Task Center Class

The FailedTask class inherits from Resource.

class otcextensions.sdk.sdrs.v1.task_center.FailedTask(_synchronized=False, connection=None, **attrs)

SDRS Failed task Resource

The base resource

Parameters:
  • _synchronized (bool) – This is not intended to be used directly. See new() and existing().

  • connection (openstack.connection.Connection) – Reference to the Connection being used. Defaults to None to allow Resource objects to be used without an active Connection, such as in unit tests. Use of self._connection in Resource code should protect itself with a check for None.

resource_key: ty.Optional[str] = ''

Singular form of key for resource.

resources_key: ty.Optional[str] = 'failure_jobs'

Plural form of key for resource.

base_path: str = '/task-center/failure-jobs'

The base part of the URI for this resource.

allow_create = False

Allow create operation for this resource.

allow_list = True

Allow list operation for this resource.

allow_fetch = False

Allow get operation for this resource.

allow_delete = True

Allow delete operation for this resource.

begin_time

Properties Task operation time

error_code

Failed task error code

fail_reason

Failed task cause

failure_status

Failed task status

job_id

Task ID

job_type

Task name

job_status

Task status Only ‘fail’ status available in current version

resource_id

Resource ID

resource_name

Resource name

resource_type

Resource type

classmethod delete_all_tasks(session, endpoint)

Method to delete all tasks of all protection groups

Parameters:
  • session (Adapter) – The session to use for making this request.

  • endpoint – SDRS service endpoint

classmethod delete_protection_tasks(session, endpoint, protection_group)

Method to delete all tasks of a signle protection group

Parameters:
  • session (Adapter) – The session to use for making this request.

  • endpoint – SDRS service endpoint

  • protection_group – Protection group ID