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
installationIdnumber
isAccessRestrictedboolean
ownerTypestring
providerstring
requireReauthboolean
slugstring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
git_namespacesselectteamIdhost, providerLists 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
teamIdstringThe Team identifier or slug to perform the request on behalf of.
hoststringThe custom Git host if using a custom Git provider, like GitHub Enterprise Server
providerstring

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,
installationId,
isAccessRestricted,
ownerType,
provider,
requireReauth,
slug
FROM vercel.integrations.git_namespaces
WHERE teamId = '{{ teamId }}' -- required
AND host = '{{ host }}'
AND provider = '{{ provider }}'
;