Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 1.74 KB

OrganizationDataService.md

File metadata and controls

41 lines (27 loc) · 1.74 KB

OrganizationDataService

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

Methods Description
list_gpu_classes List the GPU Classes

list_gpu_classes

List the GPU Classes

  • HTTP Method: GET
  • Endpoint: /organizations/{organization_name}/gpu-classes

Parameters

Name Type Required Description
organization_name str 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.

Return Type

GpuClassesList

Example Usage Code Snippet

from salad_cloud_sdk import SaladCloudSdk, Environment

sdk = SaladCloudSdk(
    api_key="YOUR_API_KEY",
    api_key_header="YOUR_API_KEY_HEADER",
    base_url=Environment.DEFAULT.value,
    timeout=10000
)

result = sdk.organization_data.list_gpu_classes(organization_name="vsg-okxas9m7y892q4m5rifzmevenpg1vot8xgbal")

print(result)