Skip to main content

git_namespaces

Creates, updates, deletes, gets or lists a git_namespaces resource.

Overview​

Namegit_namespaces
TypeResource
Idvercel.integrations.git_namespaces

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
id
namestring
installation_idnumber (wire: installationId)
is_access_restrictedboolean (false, true) (wire: isAccessRestricted)
owner_typestring (wire: ownerType)
providerstring
require_reauthboolean (false, true) (wire: requireReauth)
slugstring
viewerobject

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselecthost, provider, viewer_metadataLists git namespaces for a supported provider. Supported providers are github, gitlab and bitbucket. If the provider is not provided, it will try to obtain it from the user that authenticated the request.

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
hoststringThe custom Git host if using a custom Git provider, like GitHub Enterprise Server
provider
viewer_metadatabooleanWhen true, includes the viewer object for each namespace. (wire: viewerMetadata)

SELECT examples​

Lists git namespaces for a supported provider. Supported providers are github, gitlab and bitbucket. If the provider is not provided, it will try to obtain it from the user that authenticated the request.

SELECT
id,
name,
installation_id,
is_access_restricted,
owner_type,
provider,
require_reauth,
slug,
viewer
FROM vercel.integrations.git_namespaces
WHERE host = '{{ host }}'
AND provider = '{{ provider }}'
AND viewer_metadata = '{{ viewer_metadata }}'
;