dbt Cloud v0.1.25 published on Friday, Nov 8, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: dbtcloud:index/getServiceToken:getServiceToken
arguments:
# arguments dictionary
The following arguments are supported:
- Service
Token intId - The ID of the service token
- Service
Token List<Pulumi.Permissions Dbt Cloud. Inputs. Get Service Token Service Token Permission> - Permissions set for the service token
- Service
Token intId - The ID of the service token
- Service
Token []GetPermissions Service Token Service Token Permission - Permissions set for the service token
- service
Token IntegerId - The ID of the service token
- service
Token List<GetPermissions Service Token Service Token Permission> - Permissions set for the service token
- service
Token numberId - The ID of the service token
- service
Token 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
- service
Token NumberId - The ID of the service token
- service
Token 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
- Service
Token intId - The ID of the service token
- Uid string
- Service token UID (part of the token)
- Service
Token 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
- Service
Token intId - The ID of the service token
- Uid string
- Service token UID (part of the token)
- Service
Token []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
- service
Token IntegerId - The ID of the service token
- uid String
- Service token UID (part of the token)
- service
Token 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
- service
Token numberId - The ID of the service token
- uid string
- Service token UID (part of the token)
- service
Token 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
- service
Token NumberId - The ID of the service token
- uid String
- Service token UID (part of the token)
- service
Token List<Property Map>Permissions - Permissions set for the service token
Supporting Types
GetServiceTokenServiceTokenPermission
- All
Projects bool - Whether or not to apply this permission to all projects for this service token
- Permission
Set string - Set of permissions to apply
- Project
Id int - Project ID to apply this permission to for this service token
- Writable
Environment 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
,production
andother
. Not setting a value is the same as selectingall
. Not all permission sets support environment level write settings, onlyanalyst
,database_admin
,developer
,git_admin
andteam_admin
.
- All
Projects bool - Whether or not to apply this permission to all projects for this service token
- Permission
Set string - Set of permissions to apply
- Project
Id int - Project ID to apply this permission to for this service token
- Writable
Environment []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
,production
andother
. Not setting a value is the same as selectingall
. Not all permission sets support environment level write settings, onlyanalyst
,database_admin
,developer
,git_admin
andteam_admin
.
- all
Projects Boolean - Whether or not to apply this permission to all projects for this service token
- permission
Set String - Set of permissions to apply
- project
Id Integer - Project ID to apply this permission to for this service token
- writable
Environment 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
,production
andother
. Not setting a value is the same as selectingall
. Not all permission sets support environment level write settings, onlyanalyst
,database_admin
,developer
,git_admin
andteam_admin
.
- all
Projects boolean - Whether or not to apply this permission to all projects for this service token
- permission
Set string - Set of permissions to apply
- project
Id number - Project ID to apply this permission to for this service token
- writable
Environment 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
,production
andother
. Not setting a value is the same as selectingall
. Not all permission sets support environment level write settings, onlyanalyst
,database_admin
,developer
,git_admin
andteam_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
,production
andother
. Not setting a value is the same as selectingall
. Not all permission sets support environment level write settings, onlyanalyst
,database_admin
,developer
,git_admin
andteam_admin
.
- all
Projects Boolean - Whether or not to apply this permission to all projects for this service token
- permission
Set String - Set of permissions to apply
- project
Id Number - Project ID to apply this permission to for this service token
- writable
Environment 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
,production
andother
. Not setting a value is the same as selectingall
. Not all permission sets support environment level write settings, onlyanalyst
,database_admin
,developer
,git_admin
andteam_admin
.
Package Details
- Repository
- dbtcloud pulumi/pulumi-dbtcloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dbtcloud
Terraform Provider.