1. Packages
  2. Dbtcloud Provider
  3. API Docs
  4. getServiceToken
dbt Cloud v0.1.25 published on Friday, Nov 8, 2024 by Pulumi

dbtcloud.getServiceToken

Explore with Pulumi AI

dbtcloud logo
dbt Cloud v0.1.25 published on Friday, Nov 8, 2024 by Pulumi

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: dbtcloud:index/getServiceToken:getServiceToken
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ServiceTokenId int
    The ID of the service token
    ServiceTokenPermissions List<Pulumi.DbtCloud.Inputs.GetServiceTokenServiceTokenPermission>
    Permissions set for the service token
    ServiceTokenId int
    The ID of the service token
    ServiceTokenPermissions []GetServiceTokenServiceTokenPermission
    Permissions set for the service token
    serviceTokenId Integer
    The ID of the service token
    serviceTokenPermissions List<GetServiceTokenServiceTokenPermission>
    Permissions set for the service token
    serviceTokenId number
    The ID of the service token
    serviceTokenPermissions GetServiceTokenServiceTokenPermission[]
    Permissions set for the service token
    service_token_id int
    The ID of the service token
    service_token_permissions Sequence[GetServiceTokenServiceTokenPermission]
    Permissions set for the service token
    serviceTokenId Number
    The ID of the service token
    serviceTokenPermissions List<Property Map>
    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
    ServiceTokenId int
    The ID of the service token
    Uid string
    Service token UID (part of the token)
    ServiceTokenPermissions List<Pulumi.DbtCloud.Outputs.GetServiceTokenServiceTokenPermission>
    Permissions set for the service token
    Id string
    The ID of the service token
    Name string
    Service token name
    ServiceTokenId int
    The ID of the service token
    Uid string
    Service token UID (part of the token)
    ServiceTokenPermissions []GetServiceTokenServiceTokenPermission
    Permissions set for the service token
    id String
    The ID of the service token
    name String
    Service token name
    serviceTokenId Integer
    The ID of the service token
    uid String
    Service token UID (part of the token)
    serviceTokenPermissions List<GetServiceTokenServiceTokenPermission>
    Permissions set for the service token
    id string
    The ID of the service token
    name string
    Service token name
    serviceTokenId number
    The ID of the service token
    uid string
    Service token UID (part of the token)
    serviceTokenPermissions GetServiceTokenServiceTokenPermission[]
    Permissions set for the service token
    id str
    The ID of the service token
    name str
    Service token name
    service_token_id int
    The ID of the service token
    uid str
    Service token UID (part of the token)
    service_token_permissions Sequence[GetServiceTokenServiceTokenPermission]
    Permissions set for the service token
    id String
    The ID of the service token
    name String
    Service token name
    serviceTokenId Number
    The ID of the service token
    uid String
    Service token UID (part of the token)
    serviceTokenPermissions List<Property Map>
    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
    WritableEnvironmentCategories List<string>
    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, production and other. Not setting a value is the same as selecting all. Not all permission sets support environment level write settings, only analyst, database_admin, developer, git_admin and team_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
    WritableEnvironmentCategories []string
    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, production and other. Not setting a value is the same as selecting all. Not all permission sets support environment level write settings, only analyst, database_admin, developer, git_admin and team_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
    writableEnvironmentCategories List<String>
    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, production and other. Not setting a value is the same as selecting all. Not all permission sets support environment level write settings, only analyst, database_admin, developer, git_admin and team_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
    writableEnvironmentCategories string[]
    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, production and other. Not setting a value is the same as selecting all. Not all permission sets support environment level write settings, only analyst, database_admin, developer, git_admin and team_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_categories Sequence[str]
    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, production and other. Not setting a value is the same as selecting all. Not all permission sets support environment level write settings, only analyst, database_admin, developer, git_admin and team_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
    writableEnvironmentCategories List<String>
    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, production and other. Not setting a value is the same as selecting all. Not all permission sets support environment level write settings, only analyst, database_admin, developer, git_admin and team_admin.

    Package Details

    Repository
    dbtcloud pulumi/pulumi-dbtcloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dbtcloud Terraform Provider.
    dbtcloud logo
    dbt Cloud v0.1.25 published on Friday, Nov 8, 2024 by Pulumi