Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:ga/getEndpointGroupIpAddressCidrBlocks:getEndpointGroupIpAddressCidrBlocks
arguments:
# arguments dictionary
The following arguments are supported:
- Endpoint
Group stringRegion - The region ID of the endpoint group.
- Accelerator
Id string - The ID of the Global Accelerator (GA) instance.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- Endpoint
Group stringRegion - The region ID of the endpoint group.
- Accelerator
Id string - The ID of the Global Accelerator (GA) instance.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- endpoint
Group StringRegion - The region ID of the endpoint group.
- accelerator
Id String - The ID of the Global Accelerator (GA) instance.
- output
File String - File name where to save data source results (after running
pulumi preview
).
- endpoint
Group stringRegion - The region ID of the endpoint group.
- accelerator
Id string - The ID of the Global Accelerator (GA) instance.
- output
File 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
).
- endpoint
Group StringRegion - The region ID of the endpoint group.
- accelerator
Id String - The ID of the Global Accelerator (GA) instance.
- output
File String - File name where to save data source results (after running
pulumi preview
).
getEndpointGroupIpAddressCidrBlocks Result
The following output properties are available:
- Endpoint
Group 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:
- Endpoint
Group stringRegion - The region ID of the endpoint group.
- Id string
- The provider-assigned unique ID for this managed resource.
- Accelerator
Id string - Output
File string
- Endpoint
Group []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 stringRegion - The region ID of the endpoint group.
- Id string
- The provider-assigned unique ID for this managed resource.
- Accelerator
Id string - Output
File string
- endpoint
Group 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:
- endpoint
Group StringRegion - The region ID of the endpoint group.
- id String
- The provider-assigned unique ID for this managed resource.
- accelerator
Id String - output
File String
- endpoint
Group 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 stringRegion - The region ID of the endpoint group.
- id string
- The provider-assigned unique ID for this managed resource.
- accelerator
Id string - output
File 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
- endpoint
Group List<Property Map>Ip Address Cidr Blocks - A list of Endpoint Group Ip Address Cidr Blocks. Each element contains the following attributes:
- endpoint
Group StringRegion - The region ID of the endpoint group.
- id String
- The provider-assigned unique ID for this managed resource.
- accelerator
Id String - output
File String
Supporting Types
GetEndpointGroupIpAddressCidrBlocksEndpointGroupIpAddressCidrBlock
- Endpoint
Group stringRegion - The region ID of the endpoint group.
- Ip
Address List<string>Cidr Blocks - The CIDR blocks.
- Status string
- The status of the list of endpoint group ip address cidr blocks.
- Endpoint
Group stringRegion - The region ID of the endpoint group.
- Ip
Address []stringCidr Blocks - The CIDR blocks.
- Status string
- The status of the list of endpoint group ip address cidr blocks.
- endpoint
Group StringRegion - The region ID of the endpoint group.
- ip
Address List<String>Cidr Blocks - The CIDR blocks.
- status String
- The status of the list of endpoint group ip address cidr blocks.
- endpoint
Group stringRegion - The region ID of the endpoint group.
- ip
Address 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.
- endpoint
Group StringRegion - The region ID of the endpoint group.
- ip
Address 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
alicloud
Terraform Provider.