1. Packages
  2. dbt Cloud
  3. API Docs
  4. getServiceToken
dbt Cloud v0.1.8 published on Tuesday, Jun 11, 2024 by Pulumi

dbtcloud.getServiceToken

Explore with Pulumi AI

dbtcloud logo
dbt Cloud v0.1.8 published on Tuesday, Jun 11, 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,
                          opts: Optional[InvokeOptions] = None) -> GetServiceTokenResult
    def get_service_token_output(service_token_id: Optional[pulumi.Input[int]] = 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
    ID of the service token
    ServiceTokenId int
    ID of the service token
    serviceTokenId Integer
    ID of the service token
    serviceTokenId number
    ID of the service token
    service_token_id int
    ID of the service token
    serviceTokenId Number
    ID of the service token

    getServiceToken Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Service token name
    ServiceTokenId int
    ID of the service token
    ServiceTokenPermissions List<Pulumi.DbtCloud.Outputs.GetServiceTokenServiceTokenPermission>
    Permissions set for the service token
    Uid string
    The UID of the service token (part of the token secret)
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Service token name
    ServiceTokenId int
    ID of the service token
    ServiceTokenPermissions []GetServiceTokenServiceTokenPermission
    Permissions set for the service token
    Uid string
    The UID of the service token (part of the token secret)
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Service token name
    serviceTokenId Integer
    ID of the service token
    serviceTokenPermissions List<GetServiceTokenServiceTokenPermission>
    Permissions set for the service token
    uid String
    The UID of the service token (part of the token secret)
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Service token name
    serviceTokenId number
    ID of the service token
    serviceTokenPermissions GetServiceTokenServiceTokenPermission[]
    Permissions set for the service token
    uid string
    The UID of the service token (part of the token secret)
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Service token name
    service_token_id int
    ID of the service token
    service_token_permissions Sequence[GetServiceTokenServiceTokenPermission]
    Permissions set for the service token
    uid str
    The UID of the service token (part of the token secret)
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Service token name
    serviceTokenId Number
    ID of the service token
    serviceTokenPermissions List<Property Map>
    Permissions set for the service token
    uid String
    The UID of the service token (part of the token secret)

    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
    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
    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
    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
    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
    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

    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.8 published on Tuesday, Jun 11, 2024 by Pulumi