Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.cyberwave.com/llms.txt

Use this file to discover all available pages before exploring further.

cyberwave.rest.CloudNodeWorkloadsApi

All URIs are relative to http://localhost
MethodHTTP requestDescription
src_app_api_cloud_node_workloads_assign_workload_to_instancePOST /api/v1/cloud-node-workloads/{uuid}/assignAssign Workload To Instance
src_app_api_cloud_node_workloads_create_workloadPOST /api/v1/cloud-node-workloadsCreate Workload
src_app_api_cloud_node_workloads_delete_workloadDELETE /api/v1/cloud-node-workloads/{uuid}Delete Workload
src_app_api_cloud_node_workloads_get_signed_url_for_attachment_uploadPOST /api/v1/cloud-node-workloads/{uuid}/attachmentsGet Signed Url For Attachment Upload
src_app_api_cloud_node_workloads_get_workloadGET /api/v1/cloud-node-workloads/{uuid}Get Workload
src_app_api_cloud_node_workloads_get_workload_executionPOST /api/v1/cloud-node-workloads/{uuid}/executionGet Workload Execution
src_app_api_cloud_node_workloads_list_pending_workloadsGET /api/v1/cloud-node-workloads/pendingList Pending Workloads
src_app_api_cloud_node_workloads_list_task_executionsGET /api/v1/cloud-node-workloads/executionsList Task Executions
src_app_api_cloud_node_workloads_list_workloadsGET /api/v1/cloud-node-workloadsList Workloads
src_app_api_cloud_node_workloads_mark_workload_completedPOST /api/v1/cloud-node-workloads/{uuid}/completeMark Workload Completed
src_app_api_cloud_node_workloads_mark_workload_failedPOST /api/v1/cloud-node-workloads/{uuid}/failMark Workload Failed
src_app_api_cloud_node_workloads_update_workloadPUT /api/v1/cloud-node-workloads/{uuid}Update Workload
src_app_api_cloud_node_workloads_workload_upload_resultsPOST /api/v1/cloud-node-workloads/{uuid}/upload-resultsWorkload Upload Results

src_app_api_cloud_node_workloads_assign_workload_to_instance

CloudNodeWorkloadSchema src_app_api_cloud_node_workloads_assign_workload_to_instance(uuid, cloud_node_workload_assign_schema)
Assign Workload To Instance Assign a workload to a Cloud Node instance. This also updates the workload status to ASSIGNED.

Example

  • Api Key Authentication (CustomTokenAuthentication):
import cyberwave.rest
from cyberwave.rest.models.cloud_node_workload_assign_schema import CloudNodeWorkloadAssignSchema
from cyberwave.rest.models.cloud_node_workload_schema import CloudNodeWorkloadSchema
from cyberwave.rest.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = cyberwave.rest.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: CustomTokenAuthentication
configuration.api_key['CustomTokenAuthentication'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['CustomTokenAuthentication'] = 'Bearer'

# Enter a context with an instance of the API client
with cyberwave.rest.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = cyberwave.rest.CloudNodeWorkloadsApi(api_client)
    uuid = 'uuid_example' # str | 
    cloud_node_workload_assign_schema = cyberwave.rest.CloudNodeWorkloadAssignSchema() # CloudNodeWorkloadAssignSchema | 

    try:
        # Assign Workload To Instance
        api_response = api_instance.src_app_api_cloud_node_workloads_assign_workload_to_instance(uuid, cloud_node_workload_assign_schema)
        print("The response of CloudNodeWorkloadsApi->src_app_api_cloud_node_workloads_assign_workload_to_instance:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling CloudNodeWorkloadsApi->src_app_api_cloud_node_workloads_assign_workload_to_instance: %s\n" % e)

Parameters

NameTypeDescriptionNotes
uuidstr
cloud_node_workload_assign_schemaCloudNodeWorkloadAssignSchema

Return type

CloudNodeWorkloadSchema

Authorization

CustomTokenAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-

src_app_api_cloud_node_workloads_create_workload

CloudNodeWorkloadSchema src_app_api_cloud_node_workloads_create_workload(cloud_node_workload_create_schema)
Create Workload Create a new Cloud Node workload. The workload will be created in PENDING status and can later be assigned to an available Cloud Node instance.

Example

  • Api Key Authentication (CustomTokenAuthentication):
import cyberwave.rest
from cyberwave.rest.models.cloud_node_workload_create_schema import CloudNodeWorkloadCreateSchema
from cyberwave.rest.models.cloud_node_workload_schema import CloudNodeWorkloadSchema
from cyberwave.rest.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = cyberwave.rest.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: CustomTokenAuthentication
configuration.api_key['CustomTokenAuthentication'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['CustomTokenAuthentication'] = 'Bearer'

# Enter a context with an instance of the API client
with cyberwave.rest.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = cyberwave.rest.CloudNodeWorkloadsApi(api_client)
    cloud_node_workload_create_schema = cyberwave.rest.CloudNodeWorkloadCreateSchema() # CloudNodeWorkloadCreateSchema | 

    try:
        # Create Workload
        api_response = api_instance.src_app_api_cloud_node_workloads_create_workload(cloud_node_workload_create_schema)
        print("The response of CloudNodeWorkloadsApi->src_app_api_cloud_node_workloads_create_workload:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling CloudNodeWorkloadsApi->src_app_api_cloud_node_workloads_create_workload: %s\n" % e)

Parameters

NameTypeDescriptionNotes
cloud_node_workload_create_schemaCloudNodeWorkloadCreateSchema

Return type

CloudNodeWorkloadSchema

Authorization

CustomTokenAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-

src_app_api_cloud_node_workloads_delete_workload

src_app_api_cloud_node_workloads_delete_workload(uuid)
Delete Workload Delete a Cloud Node workload. Only pending or completed workloads can be deleted.

Example

  • Api Key Authentication (CustomTokenAuthentication):
import cyberwave.rest
from cyberwave.rest.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = cyberwave.rest.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: CustomTokenAuthentication
configuration.api_key['CustomTokenAuthentication'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['CustomTokenAuthentication'] = 'Bearer'

# Enter a context with an instance of the API client
with cyberwave.rest.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = cyberwave.rest.CloudNodeWorkloadsApi(api_client)
    uuid = 'uuid_example' # str | 

    try:
        # Delete Workload
        api_instance.src_app_api_cloud_node_workloads_delete_workload(uuid)
    except Exception as e:
        print("Exception when calling CloudNodeWorkloadsApi->src_app_api_cloud_node_workloads_delete_workload: %s\n" % e)

Parameters

NameTypeDescriptionNotes
uuidstr

Return type

void (empty response body)

Authorization

CustomTokenAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status codeDescriptionResponse headers
200OK-

src_app_api_cloud_node_workloads_get_signed_url_for_attachment_upload

CloudNodeWorkloadAttachmentResponseSchema src_app_api_cloud_node_workloads_get_signed_url_for_attachment_upload(uuid, cloud_node_workload_attachment_schema)
Get Signed Url For Attachment Upload Generate a signed URL for uploading an attachment to a Cloud Node workload. Returns a signed URL that can be used to upload a file directly to Google Cloud Storage.

Example

  • Api Key Authentication (CustomTokenAuthentication):
import cyberwave.rest
from cyberwave.rest.models.cloud_node_workload_attachment_response_schema import CloudNodeWorkloadAttachmentResponseSchema
from cyberwave.rest.models.cloud_node_workload_attachment_schema import CloudNodeWorkloadAttachmentSchema
from cyberwave.rest.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = cyberwave.rest.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: CustomTokenAuthentication
configuration.api_key['CustomTokenAuthentication'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['CustomTokenAuthentication'] = 'Bearer'

# Enter a context with an instance of the API client
with cyberwave.rest.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = cyberwave.rest.CloudNodeWorkloadsApi(api_client)
    uuid = 'uuid_example' # str | 
    cloud_node_workload_attachment_schema = cyberwave.rest.CloudNodeWorkloadAttachmentSchema() # CloudNodeWorkloadAttachmentSchema | 

    try:
        # Get Signed Url For Attachment Upload
        api_response = api_instance.src_app_api_cloud_node_workloads_get_signed_url_for_attachment_upload(uuid, cloud_node_workload_attachment_schema)
        print("The response of CloudNodeWorkloadsApi->src_app_api_cloud_node_workloads_get_signed_url_for_attachment_upload:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling CloudNodeWorkloadsApi->src_app_api_cloud_node_workloads_get_signed_url_for_attachment_upload: %s\n" % e)

Parameters

NameTypeDescriptionNotes
uuidstr
cloud_node_workload_attachment_schemaCloudNodeWorkloadAttachmentSchema

Return type

CloudNodeWorkloadAttachmentResponseSchema

Authorization

CustomTokenAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-

src_app_api_cloud_node_workloads_get_workload

CloudNodeWorkloadSchema src_app_api_cloud_node_workloads_get_workload(uuid)
Get Workload Get a specific Cloud Node workload by UUID.

Example

  • Api Key Authentication (CustomTokenAuthentication):
import cyberwave.rest
from cyberwave.rest.models.cloud_node_workload_schema import CloudNodeWorkloadSchema
from cyberwave.rest.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = cyberwave.rest.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: CustomTokenAuthentication
configuration.api_key['CustomTokenAuthentication'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['CustomTokenAuthentication'] = 'Bearer'

# Enter a context with an instance of the API client
with cyberwave.rest.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = cyberwave.rest.CloudNodeWorkloadsApi(api_client)
    uuid = 'uuid_example' # str | 

    try:
        # Get Workload
        api_response = api_instance.src_app_api_cloud_node_workloads_get_workload(uuid)
        print("The response of CloudNodeWorkloadsApi->src_app_api_cloud_node_workloads_get_workload:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling CloudNodeWorkloadsApi->src_app_api_cloud_node_workloads_get_workload: %s\n" % e)

Parameters

NameTypeDescriptionNotes
uuidstr

Return type

CloudNodeWorkloadSchema

Authorization

CustomTokenAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-

src_app_api_cloud_node_workloads_get_workload_execution

DeferredTaskExecutionResponseSchema src_app_api_cloud_node_workloads_get_workload_execution(uuid)
Get Workload Execution Get the execution information of a Cloud Node workload.

Example

  • Api Key Authentication (CustomTokenAuthentication):
import cyberwave.rest
from cyberwave.rest.models.deferred_task_execution_response_schema import DeferredTaskExecutionResponseSchema
from cyberwave.rest.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = cyberwave.rest.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: CustomTokenAuthentication
configuration.api_key['CustomTokenAuthentication'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['CustomTokenAuthentication'] = 'Bearer'

# Enter a context with an instance of the API client
with cyberwave.rest.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = cyberwave.rest.CloudNodeWorkloadsApi(api_client)
    uuid = 'uuid_example' # str | 

    try:
        # Get Workload Execution
        api_response = api_instance.src_app_api_cloud_node_workloads_get_workload_execution(uuid)
        print("The response of CloudNodeWorkloadsApi->src_app_api_cloud_node_workloads_get_workload_execution:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling CloudNodeWorkloadsApi->src_app_api_cloud_node_workloads_get_workload_execution: %s\n" % e)

Parameters

NameTypeDescriptionNotes
uuidstr

Return type

DeferredTaskExecutionResponseSchema

Authorization

CustomTokenAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-

src_app_api_cloud_node_workloads_list_pending_workloads

List[CloudNodeWorkloadSchema] src_app_api_cloud_node_workloads_list_pending_workloads()
List Pending Workloads List all pending Cloud Node workloads visible to the authenticated user. Useful for finding workloads that need to be assigned to instances.

Example

  • Api Key Authentication (CustomTokenAuthentication):
import cyberwave.rest
from cyberwave.rest.models.cloud_node_workload_schema import CloudNodeWorkloadSchema
from cyberwave.rest.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = cyberwave.rest.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: CustomTokenAuthentication
configuration.api_key['CustomTokenAuthentication'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['CustomTokenAuthentication'] = 'Bearer'

# Enter a context with an instance of the API client
with cyberwave.rest.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = cyberwave.rest.CloudNodeWorkloadsApi(api_client)

    try:
        # List Pending Workloads
        api_response = api_instance.src_app_api_cloud_node_workloads_list_pending_workloads()
        print("The response of CloudNodeWorkloadsApi->src_app_api_cloud_node_workloads_list_pending_workloads:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling CloudNodeWorkloadsApi->src_app_api_cloud_node_workloads_list_pending_workloads: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

List[CloudNodeWorkloadSchema]

Authorization

CustomTokenAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-

src_app_api_cloud_node_workloads_list_task_executions

List[DeferredTaskExecutionResponseSchema] src_app_api_cloud_node_workloads_list_task_executions(workspace_uuid)
List Task Executions List all executions for a workspace.

Example

  • Api Key Authentication (CustomTokenAuthentication):
import cyberwave.rest
from cyberwave.rest.models.deferred_task_execution_response_schema import DeferredTaskExecutionResponseSchema
from cyberwave.rest.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = cyberwave.rest.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: CustomTokenAuthentication
configuration.api_key['CustomTokenAuthentication'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['CustomTokenAuthentication'] = 'Bearer'

# Enter a context with an instance of the API client
with cyberwave.rest.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = cyberwave.rest.CloudNodeWorkloadsApi(api_client)
    workspace_uuid = 'workspace_uuid_example' # str | 

    try:
        # List Task Executions
        api_response = api_instance.src_app_api_cloud_node_workloads_list_task_executions(workspace_uuid)
        print("The response of CloudNodeWorkloadsApi->src_app_api_cloud_node_workloads_list_task_executions:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling CloudNodeWorkloadsApi->src_app_api_cloud_node_workloads_list_task_executions: %s\n" % e)

Parameters

NameTypeDescriptionNotes
workspace_uuidstr

Return type

List[DeferredTaskExecutionResponseSchema]

Authorization

CustomTokenAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-

src_app_api_cloud_node_workloads_list_workloads

List[CloudNodeWorkloadSchema] src_app_api_cloud_node_workloads_list_workloads(status=status, profile_slug=profile_slug, workspace_uuid=workspace_uuid)
List Workloads List all Cloud Node workloads visible to the authenticated user. Optionally filter by status, profile_slug, or workspace_uuid.

Example

  • Api Key Authentication (CustomTokenAuthentication):
import cyberwave.rest
from cyberwave.rest.models.cloud_node_workload_schema import CloudNodeWorkloadSchema
from cyberwave.rest.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = cyberwave.rest.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: CustomTokenAuthentication
configuration.api_key['CustomTokenAuthentication'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['CustomTokenAuthentication'] = 'Bearer'

# Enter a context with an instance of the API client
with cyberwave.rest.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = cyberwave.rest.CloudNodeWorkloadsApi(api_client)
    status = 'status_example' # str |  (optional)
    profile_slug = 'profile_slug_example' # str |  (optional)
    workspace_uuid = 'workspace_uuid_example' # str |  (optional)

    try:
        # List Workloads
        api_response = api_instance.src_app_api_cloud_node_workloads_list_workloads(status=status, profile_slug=profile_slug, workspace_uuid=workspace_uuid)
        print("The response of CloudNodeWorkloadsApi->src_app_api_cloud_node_workloads_list_workloads:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling CloudNodeWorkloadsApi->src_app_api_cloud_node_workloads_list_workloads: %s\n" % e)

Parameters

NameTypeDescriptionNotes
statusstr[optional]
profile_slugstr[optional]
workspace_uuidstr[optional]

Return type

List[CloudNodeWorkloadSchema]

Authorization

CustomTokenAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-

src_app_api_cloud_node_workloads_mark_workload_completed

CloudNodeWorkloadSchema src_app_api_cloud_node_workloads_mark_workload_completed(uuid)
Mark Workload Completed Mark a workload as completed.

Example

  • Api Key Authentication (CustomTokenAuthentication):
import cyberwave.rest
from cyberwave.rest.models.cloud_node_workload_schema import CloudNodeWorkloadSchema
from cyberwave.rest.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = cyberwave.rest.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: CustomTokenAuthentication
configuration.api_key['CustomTokenAuthentication'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['CustomTokenAuthentication'] = 'Bearer'

# Enter a context with an instance of the API client
with cyberwave.rest.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = cyberwave.rest.CloudNodeWorkloadsApi(api_client)
    uuid = 'uuid_example' # str | 

    try:
        # Mark Workload Completed
        api_response = api_instance.src_app_api_cloud_node_workloads_mark_workload_completed(uuid)
        print("The response of CloudNodeWorkloadsApi->src_app_api_cloud_node_workloads_mark_workload_completed:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling CloudNodeWorkloadsApi->src_app_api_cloud_node_workloads_mark_workload_completed: %s\n" % e)

Parameters

NameTypeDescriptionNotes
uuidstr

Return type

CloudNodeWorkloadSchema

Authorization

CustomTokenAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-

src_app_api_cloud_node_workloads_mark_workload_failed

CloudNodeWorkloadSchema src_app_api_cloud_node_workloads_mark_workload_failed(uuid)
Mark Workload Failed Mark a workload as failed. This can be used when a workload encounters an error during execution.

Example

  • Api Key Authentication (CustomTokenAuthentication):
import cyberwave.rest
from cyberwave.rest.models.cloud_node_workload_schema import CloudNodeWorkloadSchema
from cyberwave.rest.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = cyberwave.rest.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: CustomTokenAuthentication
configuration.api_key['CustomTokenAuthentication'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['CustomTokenAuthentication'] = 'Bearer'

# Enter a context with an instance of the API client
with cyberwave.rest.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = cyberwave.rest.CloudNodeWorkloadsApi(api_client)
    uuid = 'uuid_example' # str | 

    try:
        # Mark Workload Failed
        api_response = api_instance.src_app_api_cloud_node_workloads_mark_workload_failed(uuid)
        print("The response of CloudNodeWorkloadsApi->src_app_api_cloud_node_workloads_mark_workload_failed:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling CloudNodeWorkloadsApi->src_app_api_cloud_node_workloads_mark_workload_failed: %s\n" % e)

Parameters

NameTypeDescriptionNotes
uuidstr

Return type

CloudNodeWorkloadSchema

Authorization

CustomTokenAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-

src_app_api_cloud_node_workloads_update_workload

CloudNodeWorkloadSchema src_app_api_cloud_node_workloads_update_workload(uuid, cloud_node_workload_update_schema)
Update Workload Update a Cloud Node workload. Can be used to update status or assign/unassign an instance.

Example

  • Api Key Authentication (CustomTokenAuthentication):
import cyberwave.rest
from cyberwave.rest.models.cloud_node_workload_schema import CloudNodeWorkloadSchema
from cyberwave.rest.models.cloud_node_workload_update_schema import CloudNodeWorkloadUpdateSchema
from cyberwave.rest.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = cyberwave.rest.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: CustomTokenAuthentication
configuration.api_key['CustomTokenAuthentication'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['CustomTokenAuthentication'] = 'Bearer'

# Enter a context with an instance of the API client
with cyberwave.rest.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = cyberwave.rest.CloudNodeWorkloadsApi(api_client)
    uuid = 'uuid_example' # str | 
    cloud_node_workload_update_schema = cyberwave.rest.CloudNodeWorkloadUpdateSchema() # CloudNodeWorkloadUpdateSchema | 

    try:
        # Update Workload
        api_response = api_instance.src_app_api_cloud_node_workloads_update_workload(uuid, cloud_node_workload_update_schema)
        print("The response of CloudNodeWorkloadsApi->src_app_api_cloud_node_workloads_update_workload:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling CloudNodeWorkloadsApi->src_app_api_cloud_node_workloads_update_workload: %s\n" % e)

Parameters

NameTypeDescriptionNotes
uuidstr
cloud_node_workload_update_schemaCloudNodeWorkloadUpdateSchema

Return type

CloudNodeWorkloadSchema

Authorization

CustomTokenAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-

src_app_api_cloud_node_workloads_workload_upload_results

src_app_api_cloud_node_workloads_workload_upload_results(uuid, cloud_node_workload_result_schema)
Workload Upload Results Handle the result of uploaded files for a Cloud Node workload. This endpoint is called by the Cloud Node after files have been uploaded to signed URLs.

Example

  • Api Key Authentication (CustomTokenAuthentication):
import cyberwave.rest
from cyberwave.rest.models.cloud_node_workload_result_schema import CloudNodeWorkloadResultSchema
from cyberwave.rest.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = cyberwave.rest.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: CustomTokenAuthentication
configuration.api_key['CustomTokenAuthentication'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['CustomTokenAuthentication'] = 'Bearer'

# Enter a context with an instance of the API client
with cyberwave.rest.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = cyberwave.rest.CloudNodeWorkloadsApi(api_client)
    uuid = 'uuid_example' # str | 
    cloud_node_workload_result_schema = cyberwave.rest.CloudNodeWorkloadResultSchema() # CloudNodeWorkloadResultSchema | 

    try:
        # Workload Upload Results
        api_instance.src_app_api_cloud_node_workloads_workload_upload_results(uuid, cloud_node_workload_result_schema)
    except Exception as e:
        print("Exception when calling CloudNodeWorkloadsApi->src_app_api_cloud_node_workloads_workload_upload_results: %s\n" % e)

Parameters

NameTypeDescriptionNotes
uuidstr
cloud_node_workload_result_schemaCloudNodeWorkloadResultSchema

Return type

void (empty response body)

Authorization

CustomTokenAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

HTTP response details

Status codeDescriptionResponse headers
200OK-