1. Packages
  2. Vcd Provider
  3. API Docs
  4. getVgpuProfile
vcd 3.14.1 published on Monday, Apr 14, 2025 by vmware

vcd.getVgpuProfile

Explore with Pulumi AI

vcd logo
vcd 3.14.1 published on Monday, Apr 14, 2025 by vmware

    Supported in provider 3.11 and VCD 10.4.0+.

    Note: This data source requires system administrator privileges.

    Provides a datasource to read vGPU profiles in VMware Cloud Director.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as vcd from "@pulumi/vcd";
    
    const profile_name = vcd.getVgpuProfile({
        name: "my-profile",
    });
    export const profileId = profile_name.then(profile_name => profile_name.id);
    
    import pulumi
    import pulumi_vcd as vcd
    
    profile_name = vcd.get_vgpu_profile(name="my-profile")
    pulumi.export("profileId", profile_name.id)
    
    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 {
    		profile_name, err := vcd.GetVgpuProfile(ctx, &vcd.GetVgpuProfileArgs{
    			Name: "my-profile",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("profileId", profile_name.Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Vcd = Pulumi.Vcd;
    
    return await Deployment.RunAsync(() => 
    {
        var profile_name = Vcd.GetVgpuProfile.Invoke(new()
        {
            Name = "my-profile",
        });
    
        return new Dictionary<string, object?>
        {
            ["profileId"] = profile_name.Apply(profile_name => profile_name.Apply(getVgpuProfileResult => getVgpuProfileResult.Id)),
        };
    });
    
    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.GetVgpuProfileArgs;
    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 profile-name = VcdFunctions.getVgpuProfile(GetVgpuProfileArgs.builder()
                .name("my-profile")
                .build());
    
            ctx.export("profileId", profile_name.id());
        }
    }
    
    variables:
      profile-name:
        fn::invoke:
          function: vcd:getVgpuProfile
          arguments:
            name: my-profile
    outputs:
      profileId: ${["profile-name"].id}
    

    Using getVgpuProfile

    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 getVgpuProfile(args: GetVgpuProfileArgs, opts?: InvokeOptions): Promise<GetVgpuProfileResult>
    function getVgpuProfileOutput(args: GetVgpuProfileOutputArgs, opts?: InvokeOptions): Output<GetVgpuProfileResult>
    def get_vgpu_profile(name: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetVgpuProfileResult
    def get_vgpu_profile_output(name: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetVgpuProfileResult]
    func GetVgpuProfile(ctx *Context, args *GetVgpuProfileArgs, opts ...InvokeOption) (*GetVgpuProfileResult, error)
    func GetVgpuProfileOutput(ctx *Context, args *GetVgpuProfileOutputArgs, opts ...InvokeOption) GetVgpuProfileResultOutput

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

    public static class GetVgpuProfile 
    {
        public static Task<GetVgpuProfileResult> InvokeAsync(GetVgpuProfileArgs args, InvokeOptions? opts = null)
        public static Output<GetVgpuProfileResult> Invoke(GetVgpuProfileInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVgpuProfileResult> getVgpuProfile(GetVgpuProfileArgs args, InvokeOptions options)
    public static Output<GetVgpuProfileResult> getVgpuProfile(GetVgpuProfileArgs args, InvokeOptions options)
    
    fn::invoke:
      function: vcd:index/getVgpuProfile:getVgpuProfile
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the vGPU profile.
    Name string
    The name of the vGPU profile.
    name String
    The name of the vGPU profile.
    name string
    The name of the vGPU profile.
    name str
    The name of the vGPU profile.
    name String
    The name of the vGPU profile.

    getVgpuProfile Result

    The following output properties are available:

    Id string
    ID of the vGPU profile.
    Instructions string
    Instructions for the vGPU profile.
    Name string
    TenantFacingName string
    Tenant facing name of the vGPU profile.
    Id string
    ID of the vGPU profile.
    Instructions string
    Instructions for the vGPU profile.
    Name string
    TenantFacingName string
    Tenant facing name of the vGPU profile.
    id String
    ID of the vGPU profile.
    instructions String
    Instructions for the vGPU profile.
    name String
    tenantFacingName String
    Tenant facing name of the vGPU profile.
    id string
    ID of the vGPU profile.
    instructions string
    Instructions for the vGPU profile.
    name string
    tenantFacingName string
    Tenant facing name of the vGPU profile.
    id str
    ID of the vGPU profile.
    instructions str
    Instructions for the vGPU profile.
    name str
    tenant_facing_name str
    Tenant facing name of the vGPU profile.
    id String
    ID of the vGPU profile.
    instructions String
    Instructions for the vGPU profile.
    name String
    tenantFacingName String
    Tenant facing name of the vGPU profile.

    Package Details

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