Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi
alicloud.ga.getEndpointGroupIpAddressCidrBlocks
Explore with Pulumi AI
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(accelerator_id: Optional[str] = None,
                                              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(accelerator_id: Optional[pulumi.Input[str]] = None,
                                              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)
public static Output<GetEndpointGroupIpAddressCidrBlocksResult> getEndpointGroupIpAddressCidrBlocks(GetEndpointGroupIpAddressCidrBlocksArgs args, InvokeOptions options)
fn::invoke:
  function: alicloud:ga/getEndpointGroupIpAddressCidrBlocks:getEndpointGroupIpAddressCidrBlocks
  arguments:
    # arguments dictionaryThe following arguments are supported:
- EndpointGroup stringRegion 
- The region ID of the endpoint group.
- AcceleratorId string
- The ID of the Global Accelerator (GA) instance.
- OutputFile string
- File name where to save data source results (after running pulumi preview).
- EndpointGroup stringRegion 
- The region ID of the endpoint group.
- AcceleratorId string
- The ID of the Global Accelerator (GA) instance.
- OutputFile string
- File name where to save data source results (after running pulumi preview).
- endpointGroup StringRegion 
- The region ID of the endpoint group.
- acceleratorId String
- The ID of the Global Accelerator (GA) instance.
- outputFile String
- File name where to save data source results (after running pulumi preview).
- endpointGroup stringRegion 
- The region ID of the endpoint group.
- acceleratorId string
- The ID of the Global Accelerator (GA) instance.
- outputFile string
- File name where to save data source results (after running pulumi preview).
- endpoint_group_ strregion 
- The region ID of the endpoint group.
- accelerator_id str
- The ID of the Global Accelerator (GA) instance.
- output_file str
- File name where to save data source results (after running pulumi preview).
- endpointGroup StringRegion 
- The region ID of the endpoint group.
- acceleratorId String
- The ID of the Global Accelerator (GA) instance.
- outputFile String
- File name where to save data source results (after running pulumi preview).
getEndpointGroupIpAddressCidrBlocks Result
The following output properties are available:
- EndpointGroup List<Pulumi.Ip Address Cidr Blocks Ali Cloud. Ga. Outputs. Get Endpoint Group Ip Address Cidr Blocks Endpoint Group Ip Address Cidr Block> 
- A list of Endpoint Group Ip Address Cidr Blocks. Each element contains the following attributes:
- EndpointGroup stringRegion 
- The region ID of the endpoint group.
- Id string
- The provider-assigned unique ID for this managed resource.
- AcceleratorId string
- OutputFile string
- EndpointGroup []GetIp Address Cidr Blocks Endpoint Group Ip Address Cidr Blocks Endpoint Group Ip Address Cidr Block 
- A list of Endpoint Group Ip Address Cidr Blocks. Each element contains the following attributes:
- EndpointGroup stringRegion 
- The region ID of the endpoint group.
- Id string
- The provider-assigned unique ID for this managed resource.
- AcceleratorId string
- OutputFile string
- endpointGroup List<GetIp Address Cidr Blocks Endpoint Group Ip Address Cidr Blocks Endpoint Group Ip Address Cidr Block> 
- A list of Endpoint Group Ip Address Cidr Blocks. Each element contains the following attributes:
- endpointGroup StringRegion 
- The region ID of the endpoint group.
- id String
- The provider-assigned unique ID for this managed resource.
- acceleratorId String
- outputFile String
- endpointGroup GetIp Address Cidr Blocks Endpoint Group Ip Address Cidr Blocks Endpoint Group Ip Address Cidr Block[] 
- A list of Endpoint Group Ip Address Cidr Blocks. Each element contains the following attributes:
- endpointGroup stringRegion 
- The region ID of the endpoint group.
- id string
- The provider-assigned unique ID for this managed resource.
- acceleratorId string
- outputFile string
- endpoint_group_ Sequence[Getip_ address_ cidr_ blocks Endpoint Group Ip Address Cidr Blocks Endpoint Group Ip Address Cidr Block] 
- A list of Endpoint Group Ip Address Cidr Blocks. Each element contains the following attributes:
- endpoint_group_ strregion 
- The region ID of the endpoint group.
- id str
- The provider-assigned unique ID for this managed resource.
- accelerator_id str
- output_file str
- endpointGroup List<Property Map>Ip Address Cidr Blocks 
- A list of Endpoint Group Ip Address Cidr Blocks. Each element contains the following attributes:
- endpointGroup StringRegion 
- The region ID of the endpoint group.
- id String
- The provider-assigned unique ID for this managed resource.
- acceleratorId String
- outputFile String
Supporting Types
GetEndpointGroupIpAddressCidrBlocksEndpointGroupIpAddressCidrBlock            
- EndpointGroup stringRegion 
- The region ID of the endpoint group.
- IpAddress List<string>Cidr Blocks 
- The CIDR blocks.
- Status string
- The status of the list of endpoint group ip address cidr blocks.
- EndpointGroup stringRegion 
- The region ID of the endpoint group.
- IpAddress []stringCidr Blocks 
- The CIDR blocks.
- Status string
- The status of the list of endpoint group ip address cidr blocks.
- endpointGroup StringRegion 
- The region ID of the endpoint group.
- ipAddress List<String>Cidr Blocks 
- The CIDR blocks.
- status String
- The status of the list of endpoint group ip address cidr blocks.
- endpointGroup stringRegion 
- The region ID of the endpoint group.
- ipAddress string[]Cidr Blocks 
- The CIDR blocks.
- status string
- The status of the list of endpoint group ip address cidr blocks.
- endpoint_group_ strregion 
- The region ID of the endpoint group.
- ip_address_ Sequence[str]cidr_ blocks 
- The CIDR blocks.
- status str
- The status of the list of endpoint group ip address cidr blocks.
- endpointGroup StringRegion 
- The region ID of the endpoint group.
- ipAddress List<String>Cidr Blocks 
- 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 alicloudTerraform Provider.