Skip to main content

geo_node

Gets or lists a geo_node resource.

Overview​

Namegeo_node
TypeResource
Idgitlab.admin.geo_node

Fields​

The following fields are returned by SELECT queries:

GraphQL response envelope

NameDatatypeDescription
idstringID of the GeoNode.
namestringUnique identifier for the Geo node.
container_repositories_max_capacityintegerMaximum concurrency of container repository sync for the secondary node.
enabledbooleanIndicates whether the Geo node is enabled.
files_max_capacityintegerMaximum concurrency of LFS/attachment backfill for the secondary node.
internal_urlstringURL defined on the primary node secondary nodes should use to contact it.
minimum_reverification_intervalintegerInterval (in days) in which the repository verification is valid. After expiry, it is reverted.
primary_booleanIndicates whether the Geo node is the primary.
repos_max_capacityintegerMaximum concurrency of repository backfill for the secondary node.
selective_sync_shardsarray
selective_sync_typestringIndicates if syncing is limited to only specific groups, or shards.
sync_object_storagebooleanIndicates if the secondary node will replicate blobs in Object Storage.
urlstringUser-facing URL for the Geo node.
verification_max_capacityintegerMaximum concurrency of repository verification for the secondary node.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselecthostnameFind a Geo node. Generated from the GitLab GraphQL schema field Query.geoNode (GeoNode).

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
hoststringGitLab host, with an optional port (default gitlab.com). Resolved from the GITLAB_HOST environment variable when it is set (x-stackQL-envVar); a WHERE host value always takes precedence. Self-managed instances: the provider is generated from the gitlab.com schema, so older instances may reject fields they do not serve. (default: gitlab.com, x-stackQL-envVar: GITLAB_HOST)
namestringName of the Geo node. Defaults to the current Geo node name.

SELECT examples​

Find a Geo node. Generated from the GitLab GraphQL schema field Query.geoNode (GeoNode).

SELECT
id,
name,
container_repositories_max_capacity,
enabled,
files_max_capacity,
internal_url,
minimum_reverification_interval,
primary_,
repos_max_capacity,
selective_sync_shards,
selective_sync_type,
sync_object_storage,
url,
verification_max_capacity
FROM gitlab.admin.geo_node
WHERE host = '{{ host }}' -- required (defaults to gitlab.com; or set GITLAB_HOST)
AND name = '{{ name }}'
;