vcd 3.14.1 published on Monday, Apr 14, 2025 by vmware
vcd.getServiceAccount
Explore with Pulumi AI
Provides a data source to read VCD Service Accounts.
Supported in provider v3.10+ and VCD 10.4+.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vcd from "@pulumi/vcd";
const example = vcd.getServiceAccount({
    name: "my-parent-network",
    org: "my-org",
});
import pulumi
import pulumi_vcd as vcd
example = vcd.get_service_account(name="my-parent-network",
    org="my-org")
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/vcd/v3/vcd"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := vcd.LookupServiceAccount(ctx, &vcd.LookupServiceAccountArgs{
			Name: "my-parent-network",
			Org:  pulumi.StringRef("my-org"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vcd = Pulumi.Vcd;
return await Deployment.RunAsync(() => 
{
    var example = Vcd.GetServiceAccount.Invoke(new()
    {
        Name = "my-parent-network",
        Org = "my-org",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vcd.VcdFunctions;
import com.pulumi.vcd.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 example = VcdFunctions.getServiceAccount(GetServiceAccountArgs.builder()
            .name("my-parent-network")
            .org("my-org")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: vcd:getServiceAccount
      arguments:
        name: my-parent-network
        org: my-org
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,
                        name: Optional[str] = None,
                        org: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetServiceAccountResult
def get_service_account_output(id: Optional[pulumi.Input[str]] = None,
                        name: Optional[pulumi.Input[str]] = None,
                        org: 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: vcd:index/getServiceAccount:getServiceAccount
  arguments:
    # arguments dictionaryThe following arguments are supported:
getServiceAccount Result
The following output properties are available:
- Active bool
 - Id string
 - Name string
 - Role
Id string - Software
Id string - Software
Version string - Uri string
 - Org string
 
- Active bool
 - Id string
 - Name string
 - Role
Id string - Software
Id string - Software
Version string - Uri string
 - Org string
 
- active Boolean
 - id String
 - name String
 - role
Id String - software
Id String - software
Version String - uri String
 - org String
 
- active boolean
 - id string
 - name string
 - role
Id string - software
Id string - software
Version string - uri string
 - org string
 
- active bool
 - id str
 - name str
 - role_
id str - software_
id str - software_
version str - uri str
 - org str
 
- active Boolean
 - id String
 - name String
 - role
Id String - software
Id String - software
Version String - uri String
 - org String
 
Package Details
- Repository
 - vcd vmware/terraform-provider-vcd
 - License
 - Notes
 - This Pulumi package is based on the 
vcdTerraform Provider.