1. Packages
  2. Cloudfoundry Provider
  3. API Docs
  4. getAsg
cloudfoundry 0.54.0 published on Monday, Apr 14, 2025 by cloudfoundry-community

cloudfoundry.getAsg

Explore with Pulumi AI

cloudfoundry logo
cloudfoundry 0.54.0 published on Monday, Apr 14, 2025 by cloudfoundry-community

    Gets information on a Cloud Foundry application security group.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudfoundry from "@pulumi/cloudfoundry";
    
    const _public = cloudfoundry.getAsg({
        name: "public_networks",
    });
    
    import pulumi
    import pulumi_cloudfoundry as cloudfoundry
    
    public = cloudfoundry.get_asg(name="public_networks")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/cloudfoundry/cloudfoundry"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudfoundry.LookupAsg(ctx, &cloudfoundry.LookupAsgArgs{
    			Name: "public_networks",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudfoundry = Pulumi.Cloudfoundry;
    
    return await Deployment.RunAsync(() => 
    {
        var @public = Cloudfoundry.GetAsg.Invoke(new()
        {
            Name = "public_networks",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudfoundry.CloudfoundryFunctions;
    import com.pulumi.cloudfoundry.inputs.GetAsgArgs;
    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 public = CloudfoundryFunctions.getAsg(GetAsgArgs.builder()
                .name("public_networks")
                .build());
    
        }
    }
    
    variables:
      public:
        fn::invoke:
          function: cloudfoundry:getAsg
          arguments:
            name: public_networks
    

    Using getAsg

    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 getAsg(args: GetAsgArgs, opts?: InvokeOptions): Promise<GetAsgResult>
    function getAsgOutput(args: GetAsgOutputArgs, opts?: InvokeOptions): Output<GetAsgResult>
    def get_asg(id: Optional[str] = None,
                name: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetAsgResult
    def get_asg_output(id: Optional[pulumi.Input[str]] = None,
                name: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetAsgResult]
    func LookupAsg(ctx *Context, args *LookupAsgArgs, opts ...InvokeOption) (*LookupAsgResult, error)
    func LookupAsgOutput(ctx *Context, args *LookupAsgOutputArgs, opts ...InvokeOption) LookupAsgResultOutput

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

    public static class GetAsg 
    {
        public static Task<GetAsgResult> InvokeAsync(GetAsgArgs args, InvokeOptions? opts = null)
        public static Output<GetAsgResult> Invoke(GetAsgInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAsgResult> getAsg(GetAsgArgs args, InvokeOptions options)
    public static Output<GetAsgResult> getAsg(GetAsgArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudfoundry:index/getAsg:getAsg
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the application security group to lookup
    Id string
    The GUID of the application security group
    Name string
    The name of the application security group to lookup
    Id string
    The GUID of the application security group
    name String
    The name of the application security group to lookup
    id String
    The GUID of the application security group
    name string
    The name of the application security group to lookup
    id string
    The GUID of the application security group
    name str
    The name of the application security group to lookup
    id str
    The GUID of the application security group
    name String
    The name of the application security group to lookup
    id String
    The GUID of the application security group

    getAsg Result

    The following output properties are available:

    Id string
    The GUID of the application security group
    Name string
    Id string
    The GUID of the application security group
    Name string
    id String
    The GUID of the application security group
    name String
    id string
    The GUID of the application security group
    name string
    id str
    The GUID of the application security group
    name str
    id String
    The GUID of the application security group
    name String

    Package Details

    Repository
    cloudfoundry cloudfoundry-community/terraform-provider-cloudfoundry
    License
    Notes
    This Pulumi package is based on the cloudfoundry Terraform Provider.
    cloudfoundry logo
    cloudfoundry 0.54.0 published on Monday, Apr 14, 2025 by cloudfoundry-community