Viewing docs for hpegl 0.4.20
published on Monday, Mar 2, 2026 by hpe
published on Monday, Mar 2, 2026 by hpe
Viewing docs for hpegl 0.4.20
published on Monday, Mar 2, 2026 by hpe
published on Monday, Mar 2, 2026 by hpe
Provides a list of available Image Services for a project.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as hpegl from "@pulumi/hpegl";
// (C) Copyright 2020-2022 Hewlett Packard Enterprise Development LP
const centos = hpegl.getMetalAvailableImages({
filters: [
{
name: "flavor",
values: ["(?i)centos"],
},
{
name: "version",
values: ["7.6.*"],
},
],
});
export const images = ubuntu.images;
import pulumi
import pulumi_hpegl as hpegl
# (C) Copyright 2020-2022 Hewlett Packard Enterprise Development LP
centos = hpegl.get_metal_available_images(filters=[
{
"name": "flavor",
"values": ["(?i)centos"],
},
{
"name": "version",
"values": ["7.6.*"],
},
])
pulumi.export("images", ubuntu["images"])
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 {
// (C) Copyright 2020-2022 Hewlett Packard Enterprise Development LP
_, err := hpegl.GetMetalAvailableImages(ctx, &hpegl.GetMetalAvailableImagesArgs{
Filters: []hpegl.GetMetalAvailableImagesFilter{
{
Name: "flavor",
Values: []string{
"(?i)centos",
},
},
{
Name: "version",
Values: []string{
"7.6.*",
},
},
},
}, nil)
if err != nil {
return err
}
ctx.Export("images", ubuntu.Images)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Hpegl = Pulumi.Hpegl;
return await Deployment.RunAsync(() =>
{
// (C) Copyright 2020-2022 Hewlett Packard Enterprise Development LP
var centos = Hpegl.GetMetalAvailableImages.Invoke(new()
{
Filters = new[]
{
new Hpegl.Inputs.GetMetalAvailableImagesFilterInputArgs
{
Name = "flavor",
Values = new[]
{
"(?i)centos",
},
},
new Hpegl.Inputs.GetMetalAvailableImagesFilterInputArgs
{
Name = "version",
Values = new[]
{
"7.6.*",
},
},
},
});
return new Dictionary<string, object?>
{
["images"] = ubuntu.Images,
};
});
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.GetMetalAvailableImagesArgs;
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) {
// (C) Copyright 2020-2022 Hewlett Packard Enterprise Development LP
final var centos = HpeglFunctions.getMetalAvailableImages(GetMetalAvailableImagesArgs.builder()
.filters(
GetMetalAvailableImagesFilterArgs.builder()
.name("flavor")
.values("(?i)centos")
.build(),
GetMetalAvailableImagesFilterArgs.builder()
.name("version")
.values("7.6.*")
.build())
.build());
ctx.export("images", ubuntu.images());
}
}
variables:
# (C) Copyright 2020-2022 Hewlett Packard Enterprise Development LP
centos:
fn::invoke:
function: hpegl:getMetalAvailableImages
arguments:
filters:
- name: flavor
values:
- (?i)centos
- name: version
values:
- 7.6.*
outputs:
images: ${ubuntu.images}
Using getMetalAvailableImages
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 getMetalAvailableImages(args: GetMetalAvailableImagesArgs, opts?: InvokeOptions): Promise<GetMetalAvailableImagesResult>
function getMetalAvailableImagesOutput(args: GetMetalAvailableImagesOutputArgs, opts?: InvokeOptions): Output<GetMetalAvailableImagesResult>def get_metal_available_images(filters: Optional[Sequence[GetMetalAvailableImagesFilter]] = None,
id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMetalAvailableImagesResult
def get_metal_available_images_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetMetalAvailableImagesFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMetalAvailableImagesResult]func GetMetalAvailableImages(ctx *Context, args *GetMetalAvailableImagesArgs, opts ...InvokeOption) (*GetMetalAvailableImagesResult, error)
func GetMetalAvailableImagesOutput(ctx *Context, args *GetMetalAvailableImagesOutputArgs, opts ...InvokeOption) GetMetalAvailableImagesResultOutput> Note: This function is named GetMetalAvailableImages in the Go SDK.
public static class GetMetalAvailableImages
{
public static Task<GetMetalAvailableImagesResult> InvokeAsync(GetMetalAvailableImagesArgs args, InvokeOptions? opts = null)
public static Output<GetMetalAvailableImagesResult> Invoke(GetMetalAvailableImagesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetMetalAvailableImagesResult> getMetalAvailableImages(GetMetalAvailableImagesArgs args, InvokeOptions options)
public static Output<GetMetalAvailableImagesResult> getMetalAvailableImages(GetMetalAvailableImagesArgs args, InvokeOptions options)
fn::invoke:
function: hpegl:index/getMetalAvailableImages:getMetalAvailableImages
arguments:
# arguments dictionaryThe following arguments are supported:
- Filters
List<Get
Metal Available Images Filter> - Id string
- The ID of this resource.
- Filters
[]Get
Metal Available Images Filter - Id string
- The ID of this resource.
- filters
List<Get
Metal Available Images Filter> - id String
- The ID of this resource.
- filters
Get
Metal Available Images Filter[] - id string
- The ID of this resource.
- filters
Sequence[Get
Metal Available Images Filter] - id str
- The ID of this resource.
- filters List<Property Map>
- id String
- The ID of this resource.
getMetalAvailableImages Result
The following output properties are available:
- Id string
- The ID of this resource.
- Images
List<Get
Metal Available Images Image> - Filters
List<Get
Metal Available Images Filter>
- Id string
- The ID of this resource.
- Images
[]Get
Metal Available Images Image - Filters
[]Get
Metal Available Images Filter
- id String
- The ID of this resource.
- images
List<Get
Metal Available Images Image> - filters
List<Get
Metal Available Images Filter>
- id string
- The ID of this resource.
- images
Get
Metal Available Images Image[] - filters
Get
Metal Available Images Filter[]
- id str
- The ID of this resource.
- images
Sequence[Get
Metal Available Images Image] - filters
Sequence[Get
Metal Available Images Filter]
- id String
- The ID of this resource.
- images List<Property Map>
- filters List<Property Map>
Supporting Types
GetMetalAvailableImagesFilter
GetMetalAvailableImagesImage
Package Details
- Repository
- hpegl hpe/terraform-provider-hpegl
- License
- Notes
- This Pulumi package is based on the
hpeglTerraform Provider.
Viewing docs for hpegl 0.4.20
published on Monday, Mar 2, 2026 by hpe
published on Monday, Mar 2, 2026 by hpe
