Retrieve all Sites
Retrieve all Sites for org.
User must have authorization role with PROVIDER_ADMIN or TENANT_ADMIN suffix. infrastructureProviderId or tenantId query parameter may be required for older API versions.
Authentication
AuthorizationBearer
```
export JWT_BEARER_TOKEN="<jwt-bearer-token>"
# Example org name: "acme-inc
export ORG_NAME=<org-name>
# Use the JWT bearer token in your API request auth header:
curl -v -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $JWT_BEARER_TOKEN" https://nico-rest-api.nico.svc.cluster.local/v2/org/$ORG_NAME/nico/user/current
```
Path parameters
org
Name of the Org
Query parameters
infrastructureProviderId
Filter Sites by Infrastructure Provider ID
tenantId
Filter Sites by Tenant ID
status
Filter Sites by Status. Can be specified multiple times to filter on more than one status
isNativeNetworkingEnabled
Filter Sites by native networking enabled flag. Requires Provider Admin role.
isNetworkSecurityGroupEnabled
Filter Sites by network security group enabled flag. Requires Provider Admin role.
isNVLinkPartitionEnabled
Filter Sites by NVLink partitioning enabled flag. Requires Provider Admin role.
isFlowEnabled
Filter Sites by NICo Flow enabled flag. Requires Provider Admin role.
includeMachineStats
Include a breakdown of Machine counts by lifecycle status and health. Requires Provider Admin role.
query
Search for matches across all Sites. Input will be matched against name, description, location, contact, and status fields
includeRelation
Related entity to expand
Allowed values:
pageNumber
Page number for pagination query
pageSize
Page size for pagination query
orderBy
Ordering for pagination query
Response headers
X-Pagination
Pagination result in JSON format
Response
OK
id
Unique UUID v4 identifier for the Site in NICo Cloud
name
Name of the Site
description
Optional description for the Site
org
NGC organization ID of the Infrastructure Provider that owns the Site
infrastructureProviderId
ID of the Infrastructure Provider that owns the Site
siteControllerVersion
Version of the Site Controller software
siteAgentVersion
Version of the Site Agent software
registrationToken
Token that can be used to register a Site. Value only exposed to Provider
registrationTokenExpiration
Date/time when registration token expires. Value only exposed to Provider
serialConsoleHostname
Serial console hostname of the site controller
isSerialConsoleEnabled
Indicates if Serial Console is enabled for the Site by the Provider
serialConsoleIdleTimeout
Maximum idle time in seconds before Serial Console is disconnected
serialConsoleMaxSessionLength
Maximum length of Serial Console session in seconds
isSerialConsoleSSHKeysEnabled
Only visible to Tenant retrieving the Site. Indicates if Serial Console access using SSH Keys is enabled by Tenant
isOnline
Indicates if the Site is currently reachable from Cloud
status
Status of the Site
statusHistory
Chronological status history for the Site
created
Date/time when the Site was created
updated
Date/time when the Site was last updated
location
Site location information
contact
Site contact information
capabilities
Site capabilities used for feature availability and configuration
machineStats
Machine counts by status for the Site
Errors
403
Forbidden Error