Aquasec

v0.2.2 published on Monday, Nov 14, 2022 by Pulumiverse

getApplicationScope

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var @default = Aquasec.GetApplicationScope.Invoke(new()
    {
        Name = "Global",
    });

    return new Dictionary<string, object?>
    {
        ["scopes"] = @default.Apply(getApplicationScopeResult => getApplicationScopeResult),
    };
});
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 {
		_default, err := aquasec.LookupApplicationScope(ctx, &GetApplicationScopeArgs{
			Name: "Global",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("scopes", _default)
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aquasec.AquasecFunctions;
import com.pulumi.aquasec.inputs.GetApplicationScopeArgs;
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 default = AquasecFunctions.getApplicationScope(GetApplicationScopeArgs.builder()
            .name("Global")
            .build());

        ctx.export("scopes", default_);
    }
}
import pulumi
import pulumi_aquasec as aquasec

default = aquasec.get_application_scope(name="Global")
pulumi.export("scopes", default)
import * as pulumi from "@pulumi/pulumi";
import * as aquasec from "@pulumi/aquasec";

const default = aquasec.getApplicationScope({
    name: "Global",
});
export const scopes = _default;
variables:
  default:
    fn::invoke:
      Function: aquasec:getApplicationScope
      Arguments:
        name: Global
outputs:
  scopes: ${default}

Using getApplicationScope

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 getApplicationScope(args: GetApplicationScopeArgs, opts?: InvokeOptions): Promise<GetApplicationScopeResult>
function getApplicationScopeOutput(args: GetApplicationScopeOutputArgs, opts?: InvokeOptions): Output<GetApplicationScopeResult>
def get_application_scope(categories: Optional[Sequence[GetApplicationScopeCategory]] = None,
                          name: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetApplicationScopeResult
def get_application_scope_output(categories: Optional[pulumi.Input[Sequence[pulumi.Input[GetApplicationScopeCategoryArgs]]]] = None,
                          name: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetApplicationScopeResult]
func LookupApplicationScope(ctx *Context, args *LookupApplicationScopeArgs, opts ...InvokeOption) (*LookupApplicationScopeResult, error)
func LookupApplicationScopeOutput(ctx *Context, args *LookupApplicationScopeOutputArgs, opts ...InvokeOption) LookupApplicationScopeResultOutput

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

public static class GetApplicationScope 
{
    public static Task<GetApplicationScopeResult> InvokeAsync(GetApplicationScopeArgs args, InvokeOptions? opts = null)
    public static Output<GetApplicationScopeResult> Invoke(GetApplicationScopeInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetApplicationScopeResult> getApplicationScope(GetApplicationScopeArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: aquasec:index/getApplicationScope:getApplicationScope
  arguments:
    # arguments dictionary

The following arguments are supported:

Name string

Name of an application scope.

Categories List<Pulumiverse.Aquasec.Inputs.GetApplicationScopeCategory>

Artifacts (of applications) / Workloads (containers) / Infrastructure (elements).

Name string

Name of an application scope.

Categories []GetApplicationScopeCategory

Artifacts (of applications) / Workloads (containers) / Infrastructure (elements).

name String

Name of an application scope.

categories List<GetApplicationScopeCategory>

Artifacts (of applications) / Workloads (containers) / Infrastructure (elements).

name string

Name of an application scope.

categories GetApplicationScopeCategory[]

Artifacts (of applications) / Workloads (containers) / Infrastructure (elements).

name str

Name of an application scope.

categories Sequence[GetApplicationScopeCategory]

Artifacts (of applications) / Workloads (containers) / Infrastructure (elements).

name String

Name of an application scope.

categories List<Property Map>

Artifacts (of applications) / Workloads (containers) / Infrastructure (elements).

getApplicationScope Result

The following output properties are available:

Author string

Username of the account that created the service.

Description string

Description of the application scope.

Id string

The provider-assigned unique ID for this managed resource.

Name string

Name of an application scope.

OwnerEmail string

Name of an application scope.

Categories List<Pulumiverse.Aquasec.Outputs.GetApplicationScopeCategory>

Artifacts (of applications) / Workloads (containers) / Infrastructure (elements).

Author string

Username of the account that created the service.

Description string

Description of the application scope.

Id string

The provider-assigned unique ID for this managed resource.

Name string

Name of an application scope.

OwnerEmail string

Name of an application scope.

Categories []GetApplicationScopeCategory

Artifacts (of applications) / Workloads (containers) / Infrastructure (elements).

author String

Username of the account that created the service.

description String

Description of the application scope.

id String

The provider-assigned unique ID for this managed resource.

name String

Name of an application scope.

ownerEmail String

Name of an application scope.

categories List<GetApplicationScopeCategory>

Artifacts (of applications) / Workloads (containers) / Infrastructure (elements).

author string

Username of the account that created the service.

description string

Description of the application scope.

id string

The provider-assigned unique ID for this managed resource.

name string

Name of an application scope.

ownerEmail string

Name of an application scope.

categories GetApplicationScopeCategory[]

Artifacts (of applications) / Workloads (containers) / Infrastructure (elements).

author str

Username of the account that created the service.

description str

Description of the application scope.

id str

The provider-assigned unique ID for this managed resource.

name str

Name of an application scope.

owner_email str

Name of an application scope.

categories Sequence[GetApplicationScopeCategory]

Artifacts (of applications) / Workloads (containers) / Infrastructure (elements).

author String

Username of the account that created the service.

description String

Description of the application scope.

id String

The provider-assigned unique ID for this managed resource.

name String

Name of an application scope.

ownerEmail String

Name of an application scope.

categories List<Property Map>

Artifacts (of applications) / Workloads (containers) / Infrastructure (elements).

Supporting Types

GetApplicationScopeCategory

GetApplicationScopeCategoryArtifact

GetApplicationScopeCategoryArtifactCf

GetApplicationScopeCategoryArtifactCfVariable

Attribute string
Value string
Attribute string
Value string
attribute String
value String
attribute string
value string
attribute String
value String

GetApplicationScopeCategoryArtifactFunction

GetApplicationScopeCategoryArtifactFunctionVariable

Attribute string
Value string
Attribute string
Value string
attribute String
value String
attribute string
value string
attribute String
value String

GetApplicationScopeCategoryArtifactImage

GetApplicationScopeCategoryArtifactImageVariable

Attribute string
Value string
Attribute string
Value string
attribute String
value String
attribute string
value string
attribute String
value String

GetApplicationScopeCategoryEntityScope

GetApplicationScopeCategoryEntityScopeVariable

Attribute string
Value string
Attribute string
Value string
attribute String
value String
attribute string
value string
attribute String
value String

GetApplicationScopeCategoryInfrastructure

GetApplicationScopeCategoryInfrastructureKubernete

GetApplicationScopeCategoryInfrastructureKuberneteVariable

Attribute string
Value string
Attribute string
Value string
attribute String
value String
attribute string
value string
attribute String
value String

GetApplicationScopeCategoryInfrastructureO

GetApplicationScopeCategoryInfrastructureOVariable

Attribute string
Value string
Attribute string
Value string
attribute String
value String
attribute string
value string
attribute String
value String

GetApplicationScopeCategoryWorkload

GetApplicationScopeCategoryWorkloadCf

GetApplicationScopeCategoryWorkloadCfVariable

Attribute string
Value string
Attribute string
Value string
attribute String
value String
attribute string
value string
attribute String
value String

GetApplicationScopeCategoryWorkloadKubernete

GetApplicationScopeCategoryWorkloadKuberneteVariable

Attribute string
Value string
Attribute string
Value string
attribute String
value String
attribute string
value string
attribute String
value String

GetApplicationScopeCategoryWorkloadO

GetApplicationScopeCategoryWorkloadOVariable

Attribute string
Value string
Attribute string
Value string
attribute String
value String
attribute string
value string
attribute String
value String

Package Details

Repository
https://github.com/pulumiverse/pulumi-aquasec
License
Apache-2.0
Notes

This Pulumi package is based on the aquasec Terraform Provider.