List Service
curl --request GET \
--url https://api.cycls.ai/v1/deployment/list \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.cycls.ai/v1/deployment/list"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.cycls.ai/v1/deployment/list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));[
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "my-function",
"url": "https://my-function.cycls.ai",
"created_at": "2023-11-07T05:31:56Z",
"region": "me-central2",
"owner_id": "<string>"
}
]Deployments
List Service
Lists all services for the authenticated user or organization.
GET
https://api.cycls.ai
/
v1
/
deployment
/
list
List Service
curl --request GET \
--url https://api.cycls.ai/v1/deployment/list \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.cycls.ai/v1/deployment/list"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.cycls.ai/v1/deployment/list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));[
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "my-function",
"url": "https://my-function.cycls.ai",
"created_at": "2023-11-07T05:31:56Z",
"region": "me-central2",
"owner_id": "<string>"
}
]Authorizations
APIKeyHeaderHTTPBearer
Your Cycls API key, from https://cloud.cycls.com. Sent as the X-API-Key header. This is the CYCLS_API_KEY the CLI uses.
Response
Successful Response
Unique deployment ID
Example:
"550e8400-e29b-41d4-a716-446655440000"
Service name
Example:
"my-function"
Public URL for the service
Example:
"https://my-function.cycls.ai"
Deployment timestamp
Cloud region
Example:
"me-central2"
Owner ID (user or organization)