SparkAgentSite
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
GET |
/api/v1/organizations/{organization_id}/agents/{id}/spark/sites |
list |
Agent sidebar response |
Examples
One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.
Golang
Construct client as shown in the Golang setup, then call the operations:
spark_agent_sites, err := client.SparkAgentSite(nil).List(map[string]any{"agent_id": "example", "organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(spark_agent_sites)
Lua
Construct client as shown in the Lua setup, then call the operations:
local spark_agent_sites, err = client:SparkAgentSite():list({ agent_id = "example", organization_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$spark_agent_sites = $client->SparkAgentSite()->list(["agent_id" => "example", "organization_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
spark_agent_sites = client.SparkAgentSite().list({"agent_id": "example", "organization_id": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
spark_agent_sites = client.SparkAgentSite.list({ "agent_id" => "example", "organization_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const spark_agent_sites = await client.SparkAgentSite().list({ agent_id: "example", organization_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
deployed_at |
string |
Yes | Deployed At |
deployments_count |
integer |
Yes | Deployments Count |
hostname |
string |
Yes | Hostname |
https |
string |
Yes | Whether the organization's certificate serves this site over HTTPS |
id |
string |
Yes | Id |
name |
string |
Yes | Name |
url |
string |
Yes | Url |
visibility |
string |
Yes | Visibility |
list
GET /api/v1/organizations/{organization_id}/agents/{id}/spark/sites
Operation ID: spark_sites_api_v1_organization_persistent_agent.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
path |
string |
Yes | |
cursor |
query |
string |
No | |
limit |
query |
integer |
No |
Responses
200: Agent sidebar response
application/json
| Property | Type | Required | Description |
|---|---|---|---|
items |
array of object |
Yes | |
items[].deployed_at |
string |
Yes | |
items[].deployments_count |
integer |
Yes | |
items[].hostname |
string |
Yes | |
items[].https |
enum: active, pending, failed |
Yes | Whether the organization's certificate serves this site over HTTPS |
items[].id |
string |
Yes | |
items[].name |
string |
Yes | |
items[].url |
string |
Yes | |
items[].visibility |
enum: public, org, private |
Yes | |
pagination |
object |
Yes | |
pagination.limit |
integer |
Yes | |
pagination.next |
string |
No |