Skip to content

Latest commit

 

History

History
56 lines (39 loc) · 2.82 KB

WorkloadErrorsService.md

File metadata and controls

56 lines (39 loc) · 2.82 KB

WorkloadErrorsService

A list of all methods in the WorkloadErrorsService service. Click on the method name to view detailed information about that method.

Methods Description
getWorkloadErrors Gets the workload errors

getWorkloadErrors

Gets the workload errors

  • HTTP Method: GET
  • Endpoint: /organizations/{organization_name}/projects/{project_name}/containers/{container_group_name}/errors

Parameters

Name Type Required Description
organizationName String Your organization name. This identifies the billing context for the API operation and represents a security boundary for SaladCloud resources. The organization must be created before using the API, and you must be a member of the organization.
projectName String Your project name. This represents a collection of related SaladCloud resources. The project must be created before using the API.
containerGroupName String The unique container group name

Return Type

WorkloadErrorList

Example Usage Code Snippet

import com.salad.cloud.sdk.SaladCloudSdk;
import com.salad.cloud.sdk.config.ApiKeyAuthConfig;
import com.salad.cloud.sdk.config.SaladCloudSdkConfig;
import com.salad.cloud.sdk.models.WorkloadErrorList;

public class Main {

  public static void main(String[] args) {
    SaladCloudSdkConfig config = SaladCloudSdkConfig
      .builder()
      .apiKeyAuthConfig(ApiKeyAuthConfig.builder().apiKey("YOUR_API_KEY").build())
      .build();

    SaladCloudSdk saladCloudSdk = new SaladCloudSdk(config);

    WorkloadErrorList response = saladCloudSdk.workloadErrorsService.getWorkloadErrors(
      "x4hd7xmy53wgq8mpuy5k2wfbbzlhws5edt3sje",
      "hug6abtk-ewjq1594j27m6u1whmqikj9f18pd",
      "lq52i317o2r8pje-v4-ccp8q-329szw31h4fee236"
    );

    System.out.println(response);
  }
}