Retrieve all Sites

View as Markdown

Retrieve all Sites for org.

User must have FORGE_PROVIDER_ADMIN or FORGE_TENANT_ADMIN role. infrastructureProviderId or tenantId query param 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://carbide-rest-api.carbide.svc.cluster.local/v2/org/$ORG_NAME/carbide/user/current ```

Path parameters

orgstringRequired

Query parameters

infrastructureProviderIdstringOptionalformat: "uuid"
Filter Sites by Infrastructure Provider ID
tenantIdstringOptionalformat: "uuid"
Filter Sites by Tenant ID
statusstringOptional
Filter Sites by Status. Can be specified multiple times to filter on more than one status
isNativeNetworkingEnabledbooleanOptional
Filter Sites by native networking enabled flag. Requires Provider Admin role.
isNetworkSecurityGroupEnabledbooleanOptional
Filter Sites by network security group enabled flag. Requires Provider Admin role.
isNVLinkPartitionEnabledbooleanOptional
Filter Sites by NVLink partitioning enabled flag. Requires Provider Admin role.
isRackLevelAdministrationEnabledbooleanOptional
Filter Sites by Rack Level Administration enabled flag. Requires Provider Admin role.
includeMachineStatsbooleanOptional

Include a breakdown of Machine counts by life-cycle status and health. Requires Provider Admin role.

querystringOptional
Search for matches across all Sites. Input will be matched against name, description, location, contact, and status fields
includeRelationenumOptional
Related entity to expand
Allowed values:
pageNumberintegerOptional>=1Defaults to 1
Page number for pagination query
pageSizeintegerOptional1-100
Page size for pagination query
orderByenumOptional
Ordering for pagination query

Response headers

X-Paginationstring
Pagination result in JSON format

Response

OK
idstringRead-onlyformat: "uuid"
namestring2-256 characters
Name of the Site
descriptionstring
Optional description for the Site
orgstring
infrastructureProviderIdstringformat: "uuid"
siteControllerVersionstring
Version of the Site Controller software
siteAgentVersionstring
Version of the Site Agent software
registrationTokenstring
Token that can be used to register a Site. Value only exposed to Provider
registrationTokenExpirationdatetimeRead-only

Date/time when registration token expires. Value only exposed to Provider

serialConsoleHostnamestringformat: "hostname"
isSerialConsoleEnabledboolean
Indicates if Serial Console is enabled for the Site by the Provider
serialConsoleIdleTimeoutinteger or null
Maximum idle time in seconds before Serial Console is disconnected
serialConsoleMaxSessionLengthinteger or null
Maximum length of Serial Console session in seconds
isSerialConsoleSSHKeysEnabledboolean
Only visible to Tenant retrieving the Site. Indicates if Serial Console access using SSH Keys is enabled by Tenant
isOnlineboolean
Indicates if the Site is currently reachable from Cloud
statusenum
Status values for Site objects
Allowed values:
statusHistorylist of objects
createddatetime
updateddatetime
locationobject
Location of the Site
contactobject
Contact for the Site
capabilitiesobject
Boolean flags to indicate features supported by a Site
machineStatsobject
Machine stats for a Site

Errors

403
Forbidden Error