dbt Cloud v0.1.30 published on Thursday, Mar 20, 2025 by Pulumi
dbtcloud.getServiceToken
Explore with Pulumi AI
Using getServiceToken
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getServiceToken(args: GetServiceTokenArgs, opts?: InvokeOptions): Promise<GetServiceTokenResult>
function getServiceTokenOutput(args: GetServiceTokenOutputArgs, opts?: InvokeOptions): Output<GetServiceTokenResult>def get_service_token(service_token_id: Optional[int] = None,
                      service_token_permissions: Optional[Sequence[GetServiceTokenServiceTokenPermission]] = None,
                      opts: Optional[InvokeOptions] = None) -> GetServiceTokenResult
def get_service_token_output(service_token_id: Optional[pulumi.Input[int]] = None,
                      service_token_permissions: Optional[pulumi.Input[Sequence[pulumi.Input[GetServiceTokenServiceTokenPermissionArgs]]]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetServiceTokenResult]func LookupServiceToken(ctx *Context, args *LookupServiceTokenArgs, opts ...InvokeOption) (*LookupServiceTokenResult, error)
func LookupServiceTokenOutput(ctx *Context, args *LookupServiceTokenOutputArgs, opts ...InvokeOption) LookupServiceTokenResultOutput> Note: This function is named LookupServiceToken in the Go SDK.
public static class GetServiceToken 
{
    public static Task<GetServiceTokenResult> InvokeAsync(GetServiceTokenArgs args, InvokeOptions? opts = null)
    public static Output<GetServiceTokenResult> Invoke(GetServiceTokenInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetServiceTokenResult> getServiceToken(GetServiceTokenArgs args, InvokeOptions options)
public static Output<GetServiceTokenResult> getServiceToken(GetServiceTokenArgs args, InvokeOptions options)
fn::invoke:
  function: dbtcloud:index/getServiceToken:getServiceToken
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ServiceToken intId 
- The ID of the service token
- ServiceToken List<Pulumi.Permissions Dbt Cloud. Inputs. Get Service Token Service Token Permission> 
- Permissions set for the service token
- ServiceToken intId 
- The ID of the service token
- ServiceToken []GetPermissions Service Token Service Token Permission 
- Permissions set for the service token
- serviceToken IntegerId 
- The ID of the service token
- serviceToken List<GetPermissions Service Token Service Token Permission> 
- Permissions set for the service token
- serviceToken numberId 
- The ID of the service token
- serviceToken GetPermissions Service Token Service Token Permission[] 
- Permissions set for the service token
- service_token_ intid 
- The ID of the service token
- service_token_ Sequence[Getpermissions Service Token Service Token Permission] 
- Permissions set for the service token
- serviceToken NumberId 
- The ID of the service token
- serviceToken List<Property Map>Permissions 
- Permissions set for the service token
getServiceToken Result
The following output properties are available:
- Id string
- The ID of the service token
- Name string
- Service token name
- ServiceToken intId 
- The ID of the service token
- Uid string
- Service token UID (part of the token)
- ServiceToken List<Pulumi.Permissions Dbt Cloud. Outputs. Get Service Token Service Token Permission> 
- Permissions set for the service token
- Id string
- The ID of the service token
- Name string
- Service token name
- ServiceToken intId 
- The ID of the service token
- Uid string
- Service token UID (part of the token)
- ServiceToken []GetPermissions Service Token Service Token Permission 
- Permissions set for the service token
- id String
- The ID of the service token
- name String
- Service token name
- serviceToken IntegerId 
- The ID of the service token
- uid String
- Service token UID (part of the token)
- serviceToken List<GetPermissions Service Token Service Token Permission> 
- Permissions set for the service token
- id string
- The ID of the service token
- name string
- Service token name
- serviceToken numberId 
- The ID of the service token
- uid string
- Service token UID (part of the token)
- serviceToken GetPermissions Service Token Service Token Permission[] 
- Permissions set for the service token
- id str
- The ID of the service token
- name str
- Service token name
- service_token_ intid 
- The ID of the service token
- uid str
- Service token UID (part of the token)
- service_token_ Sequence[Getpermissions Service Token Service Token Permission] 
- Permissions set for the service token
- id String
- The ID of the service token
- name String
- Service token name
- serviceToken NumberId 
- The ID of the service token
- uid String
- Service token UID (part of the token)
- serviceToken List<Property Map>Permissions 
- Permissions set for the service token
Supporting Types
GetServiceTokenServiceTokenPermission     
- AllProjects bool
- Whether or not to apply this permission to all projects for this service token
- PermissionSet string
- Set of permissions to apply
- ProjectId int
- Project ID to apply this permission to for this service token
- WritableEnvironment List<string>Categories 
- What types of environments to apply Write permissions to.
Even if Write access is restricted to some environment types, the permission set will have Read access to all environments.
The values allowed are all,development,staging,productionandother. Not setting a value is the same as selectingall. Not all permission sets support environment level write settings, onlyanalyst,database_admin,developer,git_adminandteam_admin.
- AllProjects bool
- Whether or not to apply this permission to all projects for this service token
- PermissionSet string
- Set of permissions to apply
- ProjectId int
- Project ID to apply this permission to for this service token
- WritableEnvironment []stringCategories 
- What types of environments to apply Write permissions to.
Even if Write access is restricted to some environment types, the permission set will have Read access to all environments.
The values allowed are all,development,staging,productionandother. Not setting a value is the same as selectingall. Not all permission sets support environment level write settings, onlyanalyst,database_admin,developer,git_adminandteam_admin.
- allProjects Boolean
- Whether or not to apply this permission to all projects for this service token
- permissionSet String
- Set of permissions to apply
- projectId Integer
- Project ID to apply this permission to for this service token
- writableEnvironment List<String>Categories 
- What types of environments to apply Write permissions to.
Even if Write access is restricted to some environment types, the permission set will have Read access to all environments.
The values allowed are all,development,staging,productionandother. Not setting a value is the same as selectingall. Not all permission sets support environment level write settings, onlyanalyst,database_admin,developer,git_adminandteam_admin.
- allProjects boolean
- Whether or not to apply this permission to all projects for this service token
- permissionSet string
- Set of permissions to apply
- projectId number
- Project ID to apply this permission to for this service token
- writableEnvironment string[]Categories 
- What types of environments to apply Write permissions to.
Even if Write access is restricted to some environment types, the permission set will have Read access to all environments.
The values allowed are all,development,staging,productionandother. Not setting a value is the same as selectingall. Not all permission sets support environment level write settings, onlyanalyst,database_admin,developer,git_adminandteam_admin.
- all_projects bool
- Whether or not to apply this permission to all projects for this service token
- permission_set str
- Set of permissions to apply
- project_id int
- Project ID to apply this permission to for this service token
- writable_environment_ Sequence[str]categories 
- What types of environments to apply Write permissions to.
Even if Write access is restricted to some environment types, the permission set will have Read access to all environments.
The values allowed are all,development,staging,productionandother. Not setting a value is the same as selectingall. Not all permission sets support environment level write settings, onlyanalyst,database_admin,developer,git_adminandteam_admin.
- allProjects Boolean
- Whether or not to apply this permission to all projects for this service token
- permissionSet String
- Set of permissions to apply
- projectId Number
- Project ID to apply this permission to for this service token
- writableEnvironment List<String>Categories 
- What types of environments to apply Write permissions to.
Even if Write access is restricted to some environment types, the permission set will have Read access to all environments.
The values allowed are all,development,staging,productionandother. Not setting a value is the same as selectingall. Not all permission sets support environment level write settings, onlyanalyst,database_admin,developer,git_adminandteam_admin.
Package Details
- Repository
- dbtcloud pulumi/pulumi-dbtcloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the dbtcloudTerraform Provider.
