Create a Geo site
Creates a Geo site.
Authorizations
Section titled “ Authorizations ”Request Body required
Section titled “ Request Body required ”object
Specifying whether this site will be primary. Defaults to false.
Specifying whether this site will be enabled. Defaults to true.
The unique identifier for the Geo site. Must match geo_node_name if it is set in gitlab.rb, otherwise it must match external_url
The user-facing URL for the Geo site
The URL defined on the primary site that secondary site should use to contact it. Returns url if not set.
Control the maximum concurrency of LFS/attachment backfill for this secondary site. Defaults to 10.
Control the maximum concurrency of repository backfill for this secondary site. Defaults to 25.
Control the maximum concurrency of repository verification for this site. Defaults to 100.
Control the maximum concurrency of container repository sync for this site. Defaults to 10.
Flag indicating if the secondary Geo site will replicate blobs in Object Storage. Defaults to false.
Limit syncing to only specific groups, or shards. Valid values: "namespaces", "shards", or null
The repository storages whose projects should be synced, if selective_sync_type == shards
The IDs of groups that should be synced, if selective_sync_type == namespaces
The IDs of organizations that should be synced, if selective_sync_type == organizations
The interval (in days) in which the repository verification is valid. Once expired, it will be reverified. This has no effect when set on a secondary site.
Maximum time (in seconds) for blob downloads during Geo sync. Defaults to 28800 (8 hours). Maximum is 86400 (24 hours).
Example generated
{ "primary": true, "enabled": true, "name": "example", "url": "example", "internal_url": "example", "files_max_capacity": 1, "repos_max_capacity": 1, "verification_max_capacity": 1, "container_repositories_max_capacity": 1, "sync_object_storage": true, "selective_sync_type": "example", "selective_sync_shards": [ "example" ], "selective_sync_namespace_ids": [ 1 ], "selective_sync_organization_ids": [ 1 ], "minimum_reverification_interval": 1, "blob_download_timeout": 1}Responses
Section titled “ Responses ”OK
object
object
Example generated
{ "id": 1, "name": "example", "url": "example", "internal_url": "example", "primary": true, "enabled": true, "current": true, "files_max_capacity": 1, "repos_max_capacity": 1, "verification_max_capacity": 1, "container_repositories_max_capacity": 1, "selective_sync_type": "example", "selective_sync_shards": [ "example" ], "selective_sync_namespace_ids": [ "example" ], "selective_sync_organization_ids": [ "example" ], "minimum_reverification_interval": 1, "blob_download_timeout": 1, "sync_object_storage": true, "web_edit_url": "example", "web_geo_replication_details_url": "example", "_links": {}}Validation error
401 Unauthorized
403 Forbidden