aquasec logo
Aquasec v0.8.20, Jan 30 23

aquasec.getAquaLabels

The data source aquasec.getAquaLabels provides a method to query all aqua labels within the Aqua account management.The fields returned from this query are detailed in the Schema section below.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Aquasec = Pulumi.Aquasec;

return await Deployment.RunAsync(() => 
{
    var aquaLabels = Aquasec.GetAquaLabels.Invoke();

    return new Dictionary<string, object?>
    {
        ["scopes"] = aquaLabels,
    };
});
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-aquasec/sdk/go/aquasec"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		aquaLabels, err := aquasec.GetAquaLabels(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("scopes", aquaLabels)
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aquasec.AquasecFunctions;
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 aquaLabels = AquasecFunctions.getAquaLabels();

        ctx.export("scopes", aquaLabels.applyValue(getAquaLabelsResult -> getAquaLabelsResult));
    }
}
import pulumi
import pulumi_aquasec as aquasec

aqua_labels = aquasec.get_aqua_labels()
pulumi.export("scopes", aqua_labels)
import * as pulumi from "@pulumi/pulumi";
import * as aquasec from "@pulumi/aquasec";

const aquaLabels = aquasec.getAquaLabels({});
export const scopes = aquaLabels;
variables:
  aquaLabels:
    fn::invoke:
      Function: aquasec:getAquaLabels
      Arguments: {}
outputs:
  # Print all Aqua labels
  scopes: ${aquaLabels}

Using getAquaLabels

function getAquaLabels(opts?: InvokeOptions): Promise<GetAquaLabelsResult>
def get_aqua_labels(opts: Optional[InvokeOptions] = None) -> GetAquaLabelsResult
func GetAquaLabels(ctx *Context, opts ...InvokeOption) (*GetAquaLabelsResult, error)

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

public static class GetAquaLabels 
{
    public static Task<GetAquaLabelsResult> InvokeAsync(InvokeOptions? opts = null)
}
public static CompletableFuture<GetAquaLabelsResult> getAquaLabels(InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: aquasec:index/getAquaLabels:getAquaLabels
  arguments:
    # arguments dictionary

getAquaLabels Result

The following output properties are available:

AquaLabels List<Pulumiverse.Aquasec.Outputs.GetAquaLabelsAquaLabel>
Id string

The provider-assigned unique ID for this managed resource.

AquaLabels []GetAquaLabelsAquaLabel
Id string

The provider-assigned unique ID for this managed resource.

aquaLabels List<GetAquaLabelsAquaLabel>
id String

The provider-assigned unique ID for this managed resource.

aquaLabels GetAquaLabelsAquaLabel[]
id string

The provider-assigned unique ID for this managed resource.

aqua_labels Sequence[GetAquaLabelsAquaLabel]
id str

The provider-assigned unique ID for this managed resource.

aquaLabels List<Property Map>
id String

The provider-assigned unique ID for this managed resource.

Supporting Types

GetAquaLabelsAquaLabel

Author string
Created string
Description string
Name string
Author string
Created string
Description string
Name string
author String
created String
description String
name String
author string
created string
description string
name string
author String
created String
description String
name String

Package Details

Repository
aquasec pulumiverse/pulumi-aquasec
License
Apache-2.0
Notes

This Pulumi package is based on the aquasec Terraform Provider.