1. Packages
  2. Dome9 Provider
  3. API Docs
  4. getServiceAccount
dome9 1.40.3 published on Monday, Apr 14, 2025 by dome9

dome9.getServiceAccount

Explore with Pulumi AI

dome9 logo
dome9 1.40.3 published on Monday, Apr 14, 2025 by dome9

    Use this data source to get information about a service account in Dome9.

    Example Usage

    Basic usage:

    import * as pulumi from "@pulumi/pulumi";
    import * as dome9 from "@pulumi/dome9";
    
    const serviceAccount = dome9.getServiceAccount({
        id: "ID",
    });
    
    import pulumi
    import pulumi_dome9 as dome9
    
    service_account = dome9.get_service_account(id="ID")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/dome9/dome9"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := dome9.LookupServiceAccount(ctx, &dome9.LookupServiceAccountArgs{
    			Id: "ID",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Dome9 = Pulumi.Dome9;
    
    return await Deployment.RunAsync(() => 
    {
        var serviceAccount = Dome9.GetServiceAccount.Invoke(new()
        {
            Id = "ID",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.dome9.Dome9Functions;
    import com.pulumi.dome9.inputs.GetServiceAccountArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var serviceAccount = Dome9Functions.getServiceAccount(GetServiceAccountArgs.builder()
                .id("ID")
                .build());
    
        }
    }
    
    variables:
      serviceAccount:
        fn::invoke:
          function: dome9:getServiceAccount
          arguments:
            id: ID
    

    Using getServiceAccount

    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 getServiceAccount(args: GetServiceAccountArgs, opts?: InvokeOptions): Promise<GetServiceAccountResult>
    function getServiceAccountOutput(args: GetServiceAccountOutputArgs, opts?: InvokeOptions): Output<GetServiceAccountResult>
    def get_service_account(id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetServiceAccountResult
    def get_service_account_output(id: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetServiceAccountResult]
    func LookupServiceAccount(ctx *Context, args *LookupServiceAccountArgs, opts ...InvokeOption) (*LookupServiceAccountResult, error)
    func LookupServiceAccountOutput(ctx *Context, args *LookupServiceAccountOutputArgs, opts ...InvokeOption) LookupServiceAccountResultOutput

    > Note: This function is named LookupServiceAccount in the Go SDK.

    public static class GetServiceAccount 
    {
        public static Task<GetServiceAccountResult> InvokeAsync(GetServiceAccountArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceAccountResult> Invoke(GetServiceAccountInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetServiceAccountResult> getServiceAccount(GetServiceAccountArgs args, InvokeOptions options)
    public static Output<GetServiceAccountResult> getServiceAccount(GetServiceAccountArgs args, InvokeOptions options)
    
    fn::invoke:
      function: dome9:index/getServiceAccount:getServiceAccount
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The id of the service account in Dome9.
    Id string
    The id of the service account in Dome9.
    id String
    The id of the service account in Dome9.
    id string
    The id of the service account in Dome9.
    id str
    The id of the service account in Dome9.
    id String
    The id of the service account in Dome9.

    getServiceAccount Result

    The following output properties are available:

    ApiKeyId string
    api key.
    DateCreated string
    service account creation time.
    Id string
    service account id.
    LastUsed string
    service account last used.
    Name string
    service account name.
    RoleIds List<double>
    service account role ids.
    ApiKeyId string
    api key.
    DateCreated string
    service account creation time.
    Id string
    service account id.
    LastUsed string
    service account last used.
    Name string
    service account name.
    RoleIds []float64
    service account role ids.
    apiKeyId String
    api key.
    dateCreated String
    service account creation time.
    id String
    service account id.
    lastUsed String
    service account last used.
    name String
    service account name.
    roleIds List<Double>
    service account role ids.
    apiKeyId string
    api key.
    dateCreated string
    service account creation time.
    id string
    service account id.
    lastUsed string
    service account last used.
    name string
    service account name.
    roleIds number[]
    service account role ids.
    api_key_id str
    api key.
    date_created str
    service account creation time.
    id str
    service account id.
    last_used str
    service account last used.
    name str
    service account name.
    role_ids Sequence[float]
    service account role ids.
    apiKeyId String
    api key.
    dateCreated String
    service account creation time.
    id String
    service account id.
    lastUsed String
    service account last used.
    name String
    service account name.
    roleIds List<Number>
    service account role ids.

    Package Details

    Repository
    dome9 dome9/terraform-provider-dome9
    License
    Notes
    This Pulumi package is based on the dome9 Terraform Provider.
    dome9 logo
    dome9 1.40.3 published on Monday, Apr 14, 2025 by dome9