1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. ga
  5. getEndpointGroupIpAddressCidrBlocks
Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 by Pulumi

alicloud.ga.getEndpointGroupIpAddressCidrBlocks

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 by Pulumi

    This data source provides the Global Accelerator (GA) Endpoint Group Ip Address Cidr Blocks of the current Alibaba Cloud user.

    NOTE: Available since v1.213.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const default = alicloud.ga.getEndpointGroupIpAddressCidrBlocks({
        endpointGroupRegion: "cn-hangzhou",
    });
    export const gaEndpointGroupIpAddressCidrBlocksEndpointGroupRegion = _default.then(_default => _default.endpointGroupIpAddressCidrBlocks?.[0]?.endpointGroupRegion);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default = alicloud.ga.get_endpoint_group_ip_address_cidr_blocks(endpoint_group_region="cn-hangzhou")
    pulumi.export("gaEndpointGroupIpAddressCidrBlocksEndpointGroupRegion", default.endpoint_group_ip_address_cidr_blocks[0].endpoint_group_region)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ga"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_default, err := ga.GetEndpointGroupIpAddressCidrBlocks(ctx, &ga.GetEndpointGroupIpAddressCidrBlocksArgs{
    			EndpointGroupRegion: "cn-hangzhou",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("gaEndpointGroupIpAddressCidrBlocksEndpointGroupRegion", _default.EndpointGroupIpAddressCidrBlocks[0].EndpointGroupRegion)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = AliCloud.Ga.GetEndpointGroupIpAddressCidrBlocks.Invoke(new()
        {
            EndpointGroupRegion = "cn-hangzhou",
        });
    
        return new Dictionary<string, object?>
        {
            ["gaEndpointGroupIpAddressCidrBlocksEndpointGroupRegion"] = @default.Apply(@default => @default.Apply(getEndpointGroupIpAddressCidrBlocksResult => getEndpointGroupIpAddressCidrBlocksResult.EndpointGroupIpAddressCidrBlocks[0]?.EndpointGroupRegion)),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.ga.GaFunctions;
    import com.pulumi.alicloud.ga.inputs.GetEndpointGroupIpAddressCidrBlocksArgs;
    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 = GaFunctions.getEndpointGroupIpAddressCidrBlocks(GetEndpointGroupIpAddressCidrBlocksArgs.builder()
                .endpointGroupRegion("cn-hangzhou")
                .build());
    
            ctx.export("gaEndpointGroupIpAddressCidrBlocksEndpointGroupRegion", default_.endpointGroupIpAddressCidrBlocks()[0].endpointGroupRegion());
        }
    }
    
    variables:
      default:
        fn::invoke:
          Function: alicloud:ga:getEndpointGroupIpAddressCidrBlocks
          Arguments:
            endpointGroupRegion: cn-hangzhou
    outputs:
      gaEndpointGroupIpAddressCidrBlocksEndpointGroupRegion: ${default.endpointGroupIpAddressCidrBlocks[0].endpointGroupRegion}
    

    Using getEndpointGroupIpAddressCidrBlocks

    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 getEndpointGroupIpAddressCidrBlocks(args: GetEndpointGroupIpAddressCidrBlocksArgs, opts?: InvokeOptions): Promise<GetEndpointGroupIpAddressCidrBlocksResult>
    function getEndpointGroupIpAddressCidrBlocksOutput(args: GetEndpointGroupIpAddressCidrBlocksOutputArgs, opts?: InvokeOptions): Output<GetEndpointGroupIpAddressCidrBlocksResult>
    def get_endpoint_group_ip_address_cidr_blocks(endpoint_group_region: Optional[str] = None,
                                                  output_file: Optional[str] = None,
                                                  opts: Optional[InvokeOptions] = None) -> GetEndpointGroupIpAddressCidrBlocksResult
    def get_endpoint_group_ip_address_cidr_blocks_output(endpoint_group_region: Optional[pulumi.Input[str]] = None,
                                                  output_file: Optional[pulumi.Input[str]] = None,
                                                  opts: Optional[InvokeOptions] = None) -> Output[GetEndpointGroupIpAddressCidrBlocksResult]
    func GetEndpointGroupIpAddressCidrBlocks(ctx *Context, args *GetEndpointGroupIpAddressCidrBlocksArgs, opts ...InvokeOption) (*GetEndpointGroupIpAddressCidrBlocksResult, error)
    func GetEndpointGroupIpAddressCidrBlocksOutput(ctx *Context, args *GetEndpointGroupIpAddressCidrBlocksOutputArgs, opts ...InvokeOption) GetEndpointGroupIpAddressCidrBlocksResultOutput

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

    public static class GetEndpointGroupIpAddressCidrBlocks 
    {
        public static Task<GetEndpointGroupIpAddressCidrBlocksResult> InvokeAsync(GetEndpointGroupIpAddressCidrBlocksArgs args, InvokeOptions? opts = null)
        public static Output<GetEndpointGroupIpAddressCidrBlocksResult> Invoke(GetEndpointGroupIpAddressCidrBlocksInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEndpointGroupIpAddressCidrBlocksResult> getEndpointGroupIpAddressCidrBlocks(GetEndpointGroupIpAddressCidrBlocksArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:ga/getEndpointGroupIpAddressCidrBlocks:getEndpointGroupIpAddressCidrBlocks
      arguments:
        # arguments dictionary

    The following arguments are supported:

    EndpointGroupRegion string
    The region ID of the endpoint group.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    EndpointGroupRegion string
    The region ID of the endpoint group.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    endpointGroupRegion String
    The region ID of the endpoint group.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    endpointGroupRegion string
    The region ID of the endpoint group.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    endpoint_group_region str
    The region ID of the endpoint group.
    output_file str
    File name where to save data source results (after running pulumi preview).
    endpointGroupRegion String
    The region ID of the endpoint group.
    outputFile String
    File name where to save data source results (after running pulumi preview).

    getEndpointGroupIpAddressCidrBlocks Result

    The following output properties are available:

    EndpointGroupIpAddressCidrBlocks List<Pulumi.AliCloud.Ga.Outputs.GetEndpointGroupIpAddressCidrBlocksEndpointGroupIpAddressCidrBlock>
    A list of Endpoint Group Ip Address Cidr Blocks. Each element contains the following attributes:
    EndpointGroupRegion string
    The region ID of the endpoint group.
    Id string
    The provider-assigned unique ID for this managed resource.
    OutputFile string
    EndpointGroupIpAddressCidrBlocks []GetEndpointGroupIpAddressCidrBlocksEndpointGroupIpAddressCidrBlock
    A list of Endpoint Group Ip Address Cidr Blocks. Each element contains the following attributes:
    EndpointGroupRegion string
    The region ID of the endpoint group.
    Id string
    The provider-assigned unique ID for this managed resource.
    OutputFile string
    endpointGroupIpAddressCidrBlocks List<GetEndpointGroupIpAddressCidrBlocksEndpointGroupIpAddressCidrBlock>
    A list of Endpoint Group Ip Address Cidr Blocks. Each element contains the following attributes:
    endpointGroupRegion String
    The region ID of the endpoint group.
    id String
    The provider-assigned unique ID for this managed resource.
    outputFile String
    endpointGroupIpAddressCidrBlocks GetEndpointGroupIpAddressCidrBlocksEndpointGroupIpAddressCidrBlock[]
    A list of Endpoint Group Ip Address Cidr Blocks. Each element contains the following attributes:
    endpointGroupRegion string
    The region ID of the endpoint group.
    id string
    The provider-assigned unique ID for this managed resource.
    outputFile string
    endpoint_group_ip_address_cidr_blocks Sequence[GetEndpointGroupIpAddressCidrBlocksEndpointGroupIpAddressCidrBlock]
    A list of Endpoint Group Ip Address Cidr Blocks. Each element contains the following attributes:
    endpoint_group_region str
    The region ID of the endpoint group.
    id str
    The provider-assigned unique ID for this managed resource.
    output_file str
    endpointGroupIpAddressCidrBlocks List<Property Map>
    A list of Endpoint Group Ip Address Cidr Blocks. Each element contains the following attributes:
    endpointGroupRegion String
    The region ID of the endpoint group.
    id String
    The provider-assigned unique ID for this managed resource.
    outputFile String

    Supporting Types

    GetEndpointGroupIpAddressCidrBlocksEndpointGroupIpAddressCidrBlock

    EndpointGroupRegion string
    The region ID of the endpoint group.
    IpAddressCidrBlocks List<string>
    The CIDR blocks.
    Status string
    The status of the list of endpoint group ip address cidr blocks.
    EndpointGroupRegion string
    The region ID of the endpoint group.
    IpAddressCidrBlocks []string
    The CIDR blocks.
    Status string
    The status of the list of endpoint group ip address cidr blocks.
    endpointGroupRegion String
    The region ID of the endpoint group.
    ipAddressCidrBlocks List<String>
    The CIDR blocks.
    status String
    The status of the list of endpoint group ip address cidr blocks.
    endpointGroupRegion string
    The region ID of the endpoint group.
    ipAddressCidrBlocks string[]
    The CIDR blocks.
    status string
    The status of the list of endpoint group ip address cidr blocks.
    endpoint_group_region str
    The region ID of the endpoint group.
    ip_address_cidr_blocks Sequence[str]
    The CIDR blocks.
    status str
    The status of the list of endpoint group ip address cidr blocks.
    endpointGroupRegion String
    The region ID of the endpoint group.
    ipAddressCidrBlocks List<String>
    The CIDR blocks.
    status String
    The status of the list of endpoint group ip address cidr blocks.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 by Pulumi