from salad_cloud_sdk import SaladCloudSdk
sdk = SaladCloudSdk(
api_key="YOUR_API_KEY",
api_key_header="YOUR_API_KEY_HEADER",
timeout=10000
)
result = sdk.queues.list_queues(
organization_name="acme-corp",
project_name="dev-env"
)
print(result){
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"display_name": "<string>",
"container_groups": [
{
"autostart_policy": true,
"container": {
"command": [
"<string>"
],
"image": "<string>",
"resources": {
"cpu": 512,
"memory": 536871424,
"gpu_classes": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"storage_amount": 562950490292224,
"shm_size": 64
},
"environment_variables": {},
"hash": "<string>",
"image_caching": true,
"logging": {
"axiom": {
"host": "<string>",
"api_token": "<string>",
"dataset": "<string>"
},
"datadog": {
"host": "<string>",
"api_key": "<string>",
"tags": [
{
"name": "<string>",
"value": "<string>"
}
]
},
"http": {
"host": "<string>",
"port": 32768,
"format": "json",
"headers": [
{
"name": "<string>",
"value": "<string>"
}
],
"compression": "none",
"user": "<string>",
"password": "<string>",
"path": "<string>"
},
"new_relic": {
"host": "<string>",
"ingestion_key": "<string>"
},
"splunk": {
"host": "<string>",
"token": "<string>"
},
"tcp": {
"host": "<string>",
"port": 32768
}
},
"size": 4611686018427388000
},
"country_codes": [
"af"
],
"create_time": "2023-11-07T05:31:56Z",
"current_state": {
"finish_time": "2023-11-07T05:31:56Z",
"instance_status_counts": {
"allocating_count": 1073741823,
"creating_count": 1073741823,
"running_count": 1073741823,
"stopping_count": 1073741823
},
"start_time": "2023-11-07T05:31:56Z",
"status": "pending",
"description": "<string>"
},
"display_name": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"organization_name": "<string>",
"pending_change": true,
"priority": "high",
"project_name": "<string>",
"replicas": 250,
"restart_policy": "always",
"update_time": "2023-11-07T05:31:56Z",
"version": 1073741824,
"liveness_probe": {
"failure_threshold": 3,
"initial_delay_seconds": 0,
"period_seconds": 10,
"success_threshold": 1,
"timeout_seconds": 30,
"exec": {
"command": [
"<string>"
]
},
"grpc": {
"port": 32768,
"service": "<string>"
},
"http": {
"headers": [
{
"name": "<string>",
"value": "<string>"
}
],
"path": "<string>",
"port": 32768,
"scheme": "http"
},
"tcp": {
"port": 32767
}
},
"networking": {
"auth": true,
"dns": "<string>",
"load_balancer": "round_robin",
"port": 32768,
"protocol": "http",
"client_request_timeout": 100000,
"server_response_timeout": 100000,
"single_connection_limit": false
},
"queue_autoscaler": {
"desired_queue_length": 50,
"max_replicas": 250,
"min_replicas": 50,
"max_downscale_per_minute": 50,
"max_upscale_per_minute": 50,
"polling_period": 907
},
"queue_connection": {
"path": "<string>",
"port": 32768,
"queue_name": "<string>"
},
"readiness_probe": {
"failure_threshold": 3,
"initial_delay_seconds": 0,
"period_seconds": 1,
"success_threshold": 1,
"timeout_seconds": 1,
"exec": {
"command": [
"<string>"
]
},
"grpc": {
"port": 32768,
"service": "<string>"
},
"http": {
"headers": [
{
"name": "<string>",
"value": "<string>"
}
],
"path": "<string>",
"port": 32768,
"scheme": "http"
},
"tcp": {
"port": 32767
}
},
"readme": "<string>",
"startup_probe": {
"failure_threshold": 15,
"initial_delay_seconds": 0,
"period_seconds": 3,
"success_threshold": 2,
"timeout_seconds": 10,
"exec": {
"command": [
"<string>"
]
},
"grpc": {
"port": 32768,
"service": "<string>"
},
"http": {
"headers": [
{
"name": "<string>",
"value": "<string>"
}
],
"path": "<string>",
"port": 32768,
"scheme": "http"
},
"tcp": {
"port": 32767
}
}
}
],
"create_time": "2023-11-07T05:31:56Z",
"update_time": "2023-11-07T05:31:56Z",
"description": "<string>",
"current_queue_length": 1073741823
}
]
}Gets the list of queues in the given project.
from salad_cloud_sdk import SaladCloudSdk
sdk = SaladCloudSdk(
api_key="YOUR_API_KEY",
api_key_header="YOUR_API_KEY_HEADER",
timeout=10000
)
result = sdk.queues.list_queues(
organization_name="acme-corp",
project_name="dev-env"
)
print(result){
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"display_name": "<string>",
"container_groups": [
{
"autostart_policy": true,
"container": {
"command": [
"<string>"
],
"image": "<string>",
"resources": {
"cpu": 512,
"memory": 536871424,
"gpu_classes": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"storage_amount": 562950490292224,
"shm_size": 64
},
"environment_variables": {},
"hash": "<string>",
"image_caching": true,
"logging": {
"axiom": {
"host": "<string>",
"api_token": "<string>",
"dataset": "<string>"
},
"datadog": {
"host": "<string>",
"api_key": "<string>",
"tags": [
{
"name": "<string>",
"value": "<string>"
}
]
},
"http": {
"host": "<string>",
"port": 32768,
"format": "json",
"headers": [
{
"name": "<string>",
"value": "<string>"
}
],
"compression": "none",
"user": "<string>",
"password": "<string>",
"path": "<string>"
},
"new_relic": {
"host": "<string>",
"ingestion_key": "<string>"
},
"splunk": {
"host": "<string>",
"token": "<string>"
},
"tcp": {
"host": "<string>",
"port": 32768
}
},
"size": 4611686018427388000
},
"country_codes": [
"af"
],
"create_time": "2023-11-07T05:31:56Z",
"current_state": {
"finish_time": "2023-11-07T05:31:56Z",
"instance_status_counts": {
"allocating_count": 1073741823,
"creating_count": 1073741823,
"running_count": 1073741823,
"stopping_count": 1073741823
},
"start_time": "2023-11-07T05:31:56Z",
"status": "pending",
"description": "<string>"
},
"display_name": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"organization_name": "<string>",
"pending_change": true,
"priority": "high",
"project_name": "<string>",
"replicas": 250,
"restart_policy": "always",
"update_time": "2023-11-07T05:31:56Z",
"version": 1073741824,
"liveness_probe": {
"failure_threshold": 3,
"initial_delay_seconds": 0,
"period_seconds": 10,
"success_threshold": 1,
"timeout_seconds": 30,
"exec": {
"command": [
"<string>"
]
},
"grpc": {
"port": 32768,
"service": "<string>"
},
"http": {
"headers": [
{
"name": "<string>",
"value": "<string>"
}
],
"path": "<string>",
"port": 32768,
"scheme": "http"
},
"tcp": {
"port": 32767
}
},
"networking": {
"auth": true,
"dns": "<string>",
"load_balancer": "round_robin",
"port": 32768,
"protocol": "http",
"client_request_timeout": 100000,
"server_response_timeout": 100000,
"single_connection_limit": false
},
"queue_autoscaler": {
"desired_queue_length": 50,
"max_replicas": 250,
"min_replicas": 50,
"max_downscale_per_minute": 50,
"max_upscale_per_minute": 50,
"polling_period": 907
},
"queue_connection": {
"path": "<string>",
"port": 32768,
"queue_name": "<string>"
},
"readiness_probe": {
"failure_threshold": 3,
"initial_delay_seconds": 0,
"period_seconds": 1,
"success_threshold": 1,
"timeout_seconds": 1,
"exec": {
"command": [
"<string>"
]
},
"grpc": {
"port": 32768,
"service": "<string>"
},
"http": {
"headers": [
{
"name": "<string>",
"value": "<string>"
}
],
"path": "<string>",
"port": 32768,
"scheme": "http"
},
"tcp": {
"port": 32767
}
},
"readme": "<string>",
"startup_probe": {
"failure_threshold": 15,
"initial_delay_seconds": 0,
"period_seconds": 3,
"success_threshold": 2,
"timeout_seconds": 10,
"exec": {
"command": [
"<string>"
]
},
"grpc": {
"port": 32768,
"service": "<string>"
},
"http": {
"headers": [
{
"name": "<string>",
"value": "<string>"
}
],
"path": "<string>",
"port": 32768,
"scheme": "http"
},
"tcp": {
"port": 32767
}
}
}
],
"create_time": "2023-11-07T05:31:56Z",
"update_time": "2023-11-07T05:31:56Z",
"description": "<string>",
"current_queue_length": 1073741823
}
]
}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. The organization name.
2 - 63^[a-z][a-z0-9-]{0,61}[a-z0-9]$"acme-corp"
Your project name. This represents a collection of related SaladCloud resources. The project must be created before using the API. The project name.
2 - 63^[a-z][a-z0-9-]{0,61}[a-z0-9]$"dev-env"
OK
Represents a Queue Collection
The list of queues.
100Show child attributes
Was this page helpful?