ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getPiNetworkAddressGroups
Explore with Pulumi AI
Retrieves information about a network address groups.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const networkAddressGroups = ibm.getPiNetworkAddressGroups({
piCloudInstanceId: "<value of the cloud_instance_id>",
});
import pulumi
import pulumi_ibm as ibm
network_address_groups = ibm.get_pi_network_address_groups(pi_cloud_instance_id="<value of the cloud_instance_id>")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.GetPiNetworkAddressGroups(ctx, &ibm.GetPiNetworkAddressGroupsArgs{
PiCloudInstanceId: "<value of the cloud_instance_id>",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var networkAddressGroups = Ibm.GetPiNetworkAddressGroups.Invoke(new()
{
PiCloudInstanceId = "<value of the cloud_instance_id>",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetPiNetworkAddressGroupsArgs;
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 networkAddressGroups = IbmFunctions.getPiNetworkAddressGroups(GetPiNetworkAddressGroupsArgs.builder()
.piCloudInstanceId("<value of the cloud_instance_id>")
.build());
}
}
variables:
networkAddressGroups:
fn::invoke:
function: ibm:getPiNetworkAddressGroups
arguments:
piCloudInstanceId: <value of the cloud_instance_id>
Notes
- Please find supported Regions for endpoints.
- If a Power cloud instance is provisioned at
lon04
, The provider level attributes should be as follows:region
-lon
zone
-lon04
Example usage:
import * as pulumi from "@pulumi/pulumi";
import pulumi
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
return await Deployment.RunAsync(() =>
{
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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) {
}
}
{}
Using getPiNetworkAddressGroups
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 getPiNetworkAddressGroups(args: GetPiNetworkAddressGroupsArgs, opts?: InvokeOptions): Promise<GetPiNetworkAddressGroupsResult>
function getPiNetworkAddressGroupsOutput(args: GetPiNetworkAddressGroupsOutputArgs, opts?: InvokeOptions): Output<GetPiNetworkAddressGroupsResult>
def get_pi_network_address_groups(id: Optional[str] = None,
pi_cloud_instance_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPiNetworkAddressGroupsResult
def get_pi_network_address_groups_output(id: Optional[pulumi.Input[str]] = None,
pi_cloud_instance_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPiNetworkAddressGroupsResult]
func GetPiNetworkAddressGroups(ctx *Context, args *GetPiNetworkAddressGroupsArgs, opts ...InvokeOption) (*GetPiNetworkAddressGroupsResult, error)
func GetPiNetworkAddressGroupsOutput(ctx *Context, args *GetPiNetworkAddressGroupsOutputArgs, opts ...InvokeOption) GetPiNetworkAddressGroupsResultOutput
> Note: This function is named GetPiNetworkAddressGroups
in the Go SDK.
public static class GetPiNetworkAddressGroups
{
public static Task<GetPiNetworkAddressGroupsResult> InvokeAsync(GetPiNetworkAddressGroupsArgs args, InvokeOptions? opts = null)
public static Output<GetPiNetworkAddressGroupsResult> Invoke(GetPiNetworkAddressGroupsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPiNetworkAddressGroupsResult> getPiNetworkAddressGroups(GetPiNetworkAddressGroupsArgs args, InvokeOptions options)
public static Output<GetPiNetworkAddressGroupsResult> getPiNetworkAddressGroups(GetPiNetworkAddressGroupsArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getPiNetworkAddressGroups:getPiNetworkAddressGroups
arguments:
# arguments dictionary
The following arguments are supported:
- Pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- Id string
- (String) The id of the network address group member IP addresses.
- Pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- Id string
- (String) The id of the network address group member IP addresses.
- pi
Cloud StringInstance Id - The GUID of the service instance associated with an account.
- id String
- (String) The id of the network address group member IP addresses.
- pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- id string
- (String) The id of the network address group member IP addresses.
- pi_
cloud_ strinstance_ id - The GUID of the service instance associated with an account.
- id str
- (String) The id of the network address group member IP addresses.
- pi
Cloud StringInstance Id - The GUID of the service instance associated with an account.
- id String
- (String) The id of the network address group member IP addresses.
getPiNetworkAddressGroups Result
The following output properties are available:
- Id string
- (String) The id of the network address group member IP addresses.
- Network
Address List<GetGroups Pi Network Address Groups Network Address Group> - (List) List of network address groups.
- Pi
Cloud stringInstance Id
- Id string
- (String) The id of the network address group member IP addresses.
- Network
Address []GetGroups Pi Network Address Groups Network Address Group - (List) List of network address groups.
- Pi
Cloud stringInstance Id
- id String
- (String) The id of the network address group member IP addresses.
- network
Address List<GetGroups Pi Network Address Groups Network Address Group> - (List) List of network address groups.
- pi
Cloud StringInstance Id
- id string
- (String) The id of the network address group member IP addresses.
- network
Address GetGroups Pi Network Address Groups Network Address Group[] - (List) List of network address groups.
- pi
Cloud stringInstance Id
- id str
- (String) The id of the network address group member IP addresses.
- network_
address_ Sequence[Getgroups Pi Network Address Groups Network Address Group] - (List) List of network address groups.
- pi_
cloud_ strinstance_ id
- id String
- (String) The id of the network address group member IP addresses.
- network
Address List<Property Map>Groups - (List) List of network address groups.
- pi
Cloud StringInstance Id
Supporting Types
GetPiNetworkAddressGroupsNetworkAddressGroup
- Crn string
- (String) The network address group's crn.
- Id string
- (String) The id of the network address group member IP addresses.
- Members
List<Get
Pi Network Address Groups Network Address Group Member> - (List) The list of IP addresses in CIDR notation in the network address group.
- Name string
- (String) The name of the network address group.
- List<string>
- (List) List of user tags attached to the resource.
- Crn string
- (String) The network address group's crn.
- Id string
- (String) The id of the network address group member IP addresses.
- Members
[]Get
Pi Network Address Groups Network Address Group Member - (List) The list of IP addresses in CIDR notation in the network address group.
- Name string
- (String) The name of the network address group.
- []string
- (List) List of user tags attached to the resource.
- crn String
- (String) The network address group's crn.
- id String
- (String) The id of the network address group member IP addresses.
- members
List<Get
Pi Network Address Groups Network Address Group Member> - (List) The list of IP addresses in CIDR notation in the network address group.
- name String
- (String) The name of the network address group.
- List<String>
- (List) List of user tags attached to the resource.
- crn string
- (String) The network address group's crn.
- id string
- (String) The id of the network address group member IP addresses.
- members
Get
Pi Network Address Groups Network Address Group Member[] - (List) The list of IP addresses in CIDR notation in the network address group.
- name string
- (String) The name of the network address group.
- string[]
- (List) List of user tags attached to the resource.
- crn str
- (String) The network address group's crn.
- id str
- (String) The id of the network address group member IP addresses.
- members
Sequence[Get
Pi Network Address Groups Network Address Group Member] - (List) The list of IP addresses in CIDR notation in the network address group.
- name str
- (String) The name of the network address group.
- Sequence[str]
- (List) List of user tags attached to the resource.
- crn String
- (String) The network address group's crn.
- id String
- (String) The id of the network address group member IP addresses.
- members List<Property Map>
- (List) The list of IP addresses in CIDR notation in the network address group.
- name String
- (String) The name of the network address group.
- List<String>
- (List) List of user tags attached to the resource.
GetPiNetworkAddressGroupsNetworkAddressGroupMember
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.