1. Packages
  2. Aquasec
  3. API Docs
  4. getAquaLabels
Aquasec v0.8.29 published on Monday, Jul 22, 2024 by Pulumiverse

aquasec.getAquaLabels

Explore with Pulumi AI

aquasec logo
Aquasec v0.8.29 published on Monday, Jul 22, 2024 by Pulumiverse

    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

    import * as pulumi from "@pulumi/pulumi";
    import * as aquasec from "@pulumi/aquasec";
    
    const aquaLabels = aquasec.getAquaLabels({});
    export const scopes = aquaLabels;
    
    import pulumi
    import pulumi_aquasec as aquasec
    
    aqua_labels = aquasec.get_aqua_labels()
    pulumi.export("scopes", aqua_labels)
    
    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
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aquasec = Pulumi.Aquasec;
    
    return await Deployment.RunAsync(() => 
    {
        var aquaLabels = Aquasec.GetAquaLabels.Invoke();
    
        return new Dictionary<string, object?>
        {
            ["scopes"] = aquaLabels,
        };
    });
    
    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));
        }
    }
    
    variables:
      aquaLabels:
        fn::invoke:
          Function: aquasec:getAquaLabels
          Arguments: {}
    outputs:
      # Print all Aqua labels
      scopes: ${aquaLabels}
    

    Using getAquaLabels

    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 getAquaLabels(opts?: InvokeOptions): Promise<GetAquaLabelsResult>
    function getAquaLabelsOutput(opts?: InvokeOptions): Output<GetAquaLabelsResult>
    def get_aqua_labels(opts: Optional[InvokeOptions] = None) -> GetAquaLabelsResult
    def get_aqua_labels_output(opts: Optional[InvokeOptions] = None) -> Output[GetAquaLabelsResult]
    func GetAquaLabels(ctx *Context, opts ...InvokeOption) (*GetAquaLabelsResult, error)
    func GetAquaLabelsOutput(ctx *Context, opts ...InvokeOption) GetAquaLabelsResultOutput

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

    public static class GetAquaLabels 
    {
        public static Task<GetAquaLabelsResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetAquaLabelsResult> Invoke(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
    The name of the user who created the Aqua label.
    Created string
    The creation date of the Aqua label.
    Description string
    Aqua label description.
    Name string
    Aqua label name.
    Author string
    The name of the user who created the Aqua label.
    Created string
    The creation date of the Aqua label.
    Description string
    Aqua label description.
    Name string
    Aqua label name.
    author String
    The name of the user who created the Aqua label.
    created String
    The creation date of the Aqua label.
    description String
    Aqua label description.
    name String
    Aqua label name.
    author string
    The name of the user who created the Aqua label.
    created string
    The creation date of the Aqua label.
    description string
    Aqua label description.
    name string
    Aqua label name.
    author str
    The name of the user who created the Aqua label.
    created str
    The creation date of the Aqua label.
    description str
    Aqua label description.
    name str
    Aqua label name.
    author String
    The name of the user who created the Aqua label.
    created String
    The creation date of the Aqua label.
    description String
    Aqua label description.
    name String
    Aqua label name.

    Package Details

    Repository
    aquasec pulumiverse/pulumi-aquasec
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aquasec Terraform Provider.
    aquasec logo
    Aquasec v0.8.29 published on Monday, Jul 22, 2024 by Pulumiverse