git_namespaces
Creates, updates, deletes, gets or lists a git_namespaces resource.
Overview
| Name | git_namespaces |
| Type | Resource |
| Id | vercel.integrations.git_namespaces |
Fields
The following fields are returned by SELECT queries:
- git_namespaces
| Name | Datatype | Description |
|---|---|---|
id | | |
name | string | |
installationId | number | |
isAccessRestricted | boolean | |
ownerType | string | |
provider | string | |
requireReauth | boolean | |
slug | string |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
git_namespaces | select | teamId | host, provider | 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. |
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.
| Name | Datatype | Description |
|---|---|---|
teamId | string | The Team identifier or slug to perform the request on behalf of. |
host | string | The custom Git host if using a custom Git provider, like GitHub Enterprise Server |
provider | string |
SELECT examples
- git_namespaces
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 }}'
;