1. Packages
  2. Hpegl Provider
  3. API Docs
  4. getVmaasCloudFolder
hpegl 0.4.18 published on Friday, Apr 18, 2025 by hpe

hpegl.getVmaasCloudFolder

Explore with Pulumi AI

hpegl logo
hpegl 0.4.18 published on Friday, Apr 18, 2025 by hpe

    The hpegl.getVmaasCloudFolder data source can be used to discover the ID for a folder. hpegl.getVmaasCloudFolder can be used along with hpegl_vmaas_instance, If it is used, all instances/VMs spawned will be stored in the specified folder.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as hpegl from "@pulumi/hpegl";
    
    const computeFolder = hpegl.getVmaasCloudFolder({
        cloudId: data.hpegl_vmaas_cloud.cloud.id,
        name: "ComputeFolder",
    });
    
    import pulumi
    import pulumi_hpegl as hpegl
    
    compute_folder = hpegl.get_vmaas_cloud_folder(cloud_id=data["hpegl_vmaas_cloud"]["cloud"]["id"],
        name="ComputeFolder")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/hpegl/hpegl"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := hpegl.GetVmaasCloudFolder(ctx, &hpegl.GetVmaasCloudFolderArgs{
    			CloudId: data.Hpegl_vmaas_cloud.Cloud.Id,
    			Name:    "ComputeFolder",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Hpegl = Pulumi.Hpegl;
    
    return await Deployment.RunAsync(() => 
    {
        var computeFolder = Hpegl.GetVmaasCloudFolder.Invoke(new()
        {
            CloudId = data.Hpegl_vmaas_cloud.Cloud.Id,
            Name = "ComputeFolder",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.hpegl.HpeglFunctions;
    import com.pulumi.hpegl.inputs.GetVmaasCloudFolderArgs;
    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 computeFolder = HpeglFunctions.getVmaasCloudFolder(GetVmaasCloudFolderArgs.builder()
                .cloudId(data.hpegl_vmaas_cloud().cloud().id())
                .name("ComputeFolder")
                .build());
    
        }
    }
    
    variables:
      computeFolder:
        fn::invoke:
          function: hpegl:getVmaasCloudFolder
          arguments:
            cloudId: ${data.hpegl_vmaas_cloud.cloud.id}
            name: ComputeFolder
    

    Using getVmaasCloudFolder

    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 getVmaasCloudFolder(args: GetVmaasCloudFolderArgs, opts?: InvokeOptions): Promise<GetVmaasCloudFolderResult>
    function getVmaasCloudFolderOutput(args: GetVmaasCloudFolderOutputArgs, opts?: InvokeOptions): Output<GetVmaasCloudFolderResult>
    def get_vmaas_cloud_folder(cloud_id: Optional[str] = None,
                               id: Optional[str] = None,
                               name: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetVmaasCloudFolderResult
    def get_vmaas_cloud_folder_output(cloud_id: Optional[pulumi.Input[str]] = None,
                               id: Optional[pulumi.Input[str]] = None,
                               name: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetVmaasCloudFolderResult]
    func GetVmaasCloudFolder(ctx *Context, args *GetVmaasCloudFolderArgs, opts ...InvokeOption) (*GetVmaasCloudFolderResult, error)
    func GetVmaasCloudFolderOutput(ctx *Context, args *GetVmaasCloudFolderOutputArgs, opts ...InvokeOption) GetVmaasCloudFolderResultOutput

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

    public static class GetVmaasCloudFolder 
    {
        public static Task<GetVmaasCloudFolderResult> InvokeAsync(GetVmaasCloudFolderArgs args, InvokeOptions? opts = null)
        public static Output<GetVmaasCloudFolderResult> Invoke(GetVmaasCloudFolderInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVmaasCloudFolderResult> getVmaasCloudFolder(GetVmaasCloudFolderArgs args, InvokeOptions options)
    public static Output<GetVmaasCloudFolderResult> getVmaasCloudFolder(GetVmaasCloudFolderArgs args, InvokeOptions options)
    
    fn::invoke:
      function: hpegl:index/getVmaasCloudFolder:getVmaasCloudFolder
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CloudId string
    Unique ID to identify a cloud.
    Name string
    Name of the cloud folder as it appears on HPE GreenLake for private cloud dashboard. If there is no cloud folder with this name, a 'NOT FOUND' error will returned.
    Id string
    The ID of this resource.
    CloudId string
    Unique ID to identify a cloud.
    Name string
    Name of the cloud folder as it appears on HPE GreenLake for private cloud dashboard. If there is no cloud folder with this name, a 'NOT FOUND' error will returned.
    Id string
    The ID of this resource.
    cloudId String
    Unique ID to identify a cloud.
    name String
    Name of the cloud folder as it appears on HPE GreenLake for private cloud dashboard. If there is no cloud folder with this name, a 'NOT FOUND' error will returned.
    id String
    The ID of this resource.
    cloudId string
    Unique ID to identify a cloud.
    name string
    Name of the cloud folder as it appears on HPE GreenLake for private cloud dashboard. If there is no cloud folder with this name, a 'NOT FOUND' error will returned.
    id string
    The ID of this resource.
    cloud_id str
    Unique ID to identify a cloud.
    name str
    Name of the cloud folder as it appears on HPE GreenLake for private cloud dashboard. If there is no cloud folder with this name, a 'NOT FOUND' error will returned.
    id str
    The ID of this resource.
    cloudId String
    Unique ID to identify a cloud.
    name String
    Name of the cloud folder as it appears on HPE GreenLake for private cloud dashboard. If there is no cloud folder with this name, a 'NOT FOUND' error will returned.
    id String
    The ID of this resource.

    getVmaasCloudFolder Result

    The following output properties are available:

    CloudId string
    Unique ID to identify a cloud.
    Code string
    External ID or code for the folder.
    Id string
    The ID of this resource.
    Name string
    Name of the cloud folder as it appears on HPE GreenLake for private cloud dashboard. If there is no cloud folder with this name, a 'NOT FOUND' error will returned.
    CloudId string
    Unique ID to identify a cloud.
    Code string
    External ID or code for the folder.
    Id string
    The ID of this resource.
    Name string
    Name of the cloud folder as it appears on HPE GreenLake for private cloud dashboard. If there is no cloud folder with this name, a 'NOT FOUND' error will returned.
    cloudId String
    Unique ID to identify a cloud.
    code String
    External ID or code for the folder.
    id String
    The ID of this resource.
    name String
    Name of the cloud folder as it appears on HPE GreenLake for private cloud dashboard. If there is no cloud folder with this name, a 'NOT FOUND' error will returned.
    cloudId string
    Unique ID to identify a cloud.
    code string
    External ID or code for the folder.
    id string
    The ID of this resource.
    name string
    Name of the cloud folder as it appears on HPE GreenLake for private cloud dashboard. If there is no cloud folder with this name, a 'NOT FOUND' error will returned.
    cloud_id str
    Unique ID to identify a cloud.
    code str
    External ID or code for the folder.
    id str
    The ID of this resource.
    name str
    Name of the cloud folder as it appears on HPE GreenLake for private cloud dashboard. If there is no cloud folder with this name, a 'NOT FOUND' error will returned.
    cloudId String
    Unique ID to identify a cloud.
    code String
    External ID or code for the folder.
    id String
    The ID of this resource.
    name String
    Name of the cloud folder as it appears on HPE GreenLake for private cloud dashboard. If there is no cloud folder with this name, a 'NOT FOUND' error will returned.

    Package Details

    Repository
    hpegl hpe/terraform-provider-hpegl
    License
    Notes
    This Pulumi package is based on the hpegl Terraform Provider.
    hpegl logo
    hpegl 0.4.18 published on Friday, Apr 18, 2025 by hpe