alicloud.cloudfirewall.getInstanceMembers
Explore with Pulumi AI
This data source provides Cloud Firewall Instance Member available to the user.What is Instance Member
NOTE: Available in 1.194.0+
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var @default = AliCloud.CloudFirewall.GetInstanceMembers.Invoke(new()
{
Ids = new[]
{
alicloud_cloud_firewall_instance_member.Default.Id,
},
});
return new Dictionary<string, object?>
{
["alicloudCloudFirewallInstanceMemberExampleId"] = @default.Apply(@default => @default.Apply(getInstanceMembersResult => getInstanceMembersResult.Members[0]?.Id)),
};
});
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cloudfirewall.CloudfirewallFunctions;
import com.pulumi.alicloud.cloudfirewall.inputs.GetInstanceMembersArgs;
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 = CloudfirewallFunctions.getInstanceMembers(GetInstanceMembersArgs.builder()
.ids(alicloud_cloud_firewall_instance_member.default().id())
.build());
ctx.export("alicloudCloudFirewallInstanceMemberExampleId", default_.members()[0].id());
}
}
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.cloudfirewall.get_instance_members(ids=[alicloud_cloud_firewall_instance_member["default"]["id"]])
pulumi.export("alicloudCloudFirewallInstanceMemberExampleId", default.members[0].id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const default = alicloud.cloudfirewall.getInstanceMembers({
ids: [alicloud_cloud_firewall_instance_member["default"].id],
});
export const alicloudCloudFirewallInstanceMemberExampleId = _default.then(_default => _default.members?.[0]?.id);
variables:
default:
fn::invoke:
Function: alicloud:cloudfirewall:getInstanceMembers
Arguments:
ids:
- ${alicloud_cloud_firewall_instance_member.default.id}
outputs:
alicloudCloudFirewallInstanceMemberExampleId: ${default.members[0].id}
Using getInstanceMembers
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 getInstanceMembers(args: GetInstanceMembersArgs, opts?: InvokeOptions): Promise<GetInstanceMembersResult>
function getInstanceMembersOutput(args: GetInstanceMembersOutputArgs, opts?: InvokeOptions): Output<GetInstanceMembersResult>
def get_instance_members(current_page: Optional[str] = None,
ids: Optional[Sequence[str]] = None,
output_file: Optional[str] = None,
page_number: Optional[int] = None,
page_size: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetInstanceMembersResult
def get_instance_members_output(current_page: Optional[pulumi.Input[str]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
output_file: Optional[pulumi.Input[str]] = None,
page_number: Optional[pulumi.Input[int]] = None,
page_size: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetInstanceMembersResult]
func GetInstanceMembers(ctx *Context, args *GetInstanceMembersArgs, opts ...InvokeOption) (*GetInstanceMembersResult, error)
func GetInstanceMembersOutput(ctx *Context, args *GetInstanceMembersOutputArgs, opts ...InvokeOption) GetInstanceMembersResultOutput
> Note: This function is named GetInstanceMembers
in the Go SDK.
public static class GetInstanceMembers
{
public static Task<GetInstanceMembersResult> InvokeAsync(GetInstanceMembersArgs args, InvokeOptions? opts = null)
public static Output<GetInstanceMembersResult> Invoke(GetInstanceMembersInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetInstanceMembersResult> getInstanceMembers(GetInstanceMembersArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:cloudfirewall/getInstanceMembers:getInstanceMembers
arguments:
# arguments dictionary
The following arguments are supported:
- Current
Page string - Ids List<string>
A list of Instance Member IDs.
- Output
File string File name where to save data source results (after running
pulumi preview
).- Page
Number int - Page
Size int
- Current
Page string - Ids []string
A list of Instance Member IDs.
- Output
File string File name where to save data source results (after running
pulumi preview
).- Page
Number int - Page
Size int
- current
Page String - ids List<String>
A list of Instance Member IDs.
- output
File String File name where to save data source results (after running
pulumi preview
).- page
Number Integer - page
Size Integer
- current
Page string - ids string[]
A list of Instance Member IDs.
- output
File string File name where to save data source results (after running
pulumi preview
).- page
Number number - page
Size number
- current_
page str - ids Sequence[str]
A list of Instance Member IDs.
- output_
file str File name where to save data source results (after running
pulumi preview
).- page_
number int - page_
size int
- current
Page String - ids List<String>
A list of Instance Member IDs.
- output
File String File name where to save data source results (after running
pulumi preview
).- page
Number Number - page
Size Number
getInstanceMembers Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Ids List<string>
A list of Instance Member IDs.
- Members
List<Pulumi.
Ali Cloud. Cloud Firewall. Outputs. Get Instance Members Member> A list of Instance Member Entries. Each element contains the following attributes:
- Current
Page string - Output
File string - Page
Number int - Page
Size int
- Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
A list of Instance Member IDs.
- Members
[]Get
Instance Members Member A list of Instance Member Entries. Each element contains the following attributes:
- Current
Page string - Output
File string - Page
Number int - Page
Size int
- id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
A list of Instance Member IDs.
- members
List<Get
Instance Members Member> A list of Instance Member Entries. Each element contains the following attributes:
- current
Page String - output
File String - page
Number Integer - page
Size Integer
- id string
The provider-assigned unique ID for this managed resource.
- ids string[]
A list of Instance Member IDs.
- members
Get
Instance Members Member[] A list of Instance Member Entries. Each element contains the following attributes:
- current
Page string - output
File string - page
Number number - page
Size number
- id str
The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
A list of Instance Member IDs.
- members
Sequence[Get
Instance Members Member] A list of Instance Member Entries. Each element contains the following attributes:
- current_
page str - output_
file str - page_
number int - page_
size int
- id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
A list of Instance Member IDs.
- members List<Property Map>
A list of Instance Member Entries. Each element contains the following attributes:
- current
Page String - output
File String - page
Number Number - page
Size Number
Supporting Types
GetInstanceMembersMember
- Create
Time int When the cloud firewall member account was added.> use second-level timestamp format.
- Id string
- Member
Desc string Remarks of cloud firewall member accounts.
- Member
Display stringName The name of the cloud firewall member account.
- Member
Uid string The UID of the cloud firewall member account.
- Modify
Time int The last modification time of the cloud firewall member account.> use second-level timestamp format.
- Status string
The resource attribute field that represents the resource status.
- Create
Time int When the cloud firewall member account was added.> use second-level timestamp format.
- Id string
- Member
Desc string Remarks of cloud firewall member accounts.
- Member
Display stringName The name of the cloud firewall member account.
- Member
Uid string The UID of the cloud firewall member account.
- Modify
Time int The last modification time of the cloud firewall member account.> use second-level timestamp format.
- Status string
The resource attribute field that represents the resource status.
- create
Time Integer When the cloud firewall member account was added.> use second-level timestamp format.
- id String
- member
Desc String Remarks of cloud firewall member accounts.
- member
Display StringName The name of the cloud firewall member account.
- member
Uid String The UID of the cloud firewall member account.
- modify
Time Integer The last modification time of the cloud firewall member account.> use second-level timestamp format.
- status String
The resource attribute field that represents the resource status.
- create
Time number When the cloud firewall member account was added.> use second-level timestamp format.
- id string
- member
Desc string Remarks of cloud firewall member accounts.
- member
Display stringName The name of the cloud firewall member account.
- member
Uid string The UID of the cloud firewall member account.
- modify
Time number The last modification time of the cloud firewall member account.> use second-level timestamp format.
- status string
The resource attribute field that represents the resource status.
- create_
time int When the cloud firewall member account was added.> use second-level timestamp format.
- id str
- member_
desc str Remarks of cloud firewall member accounts.
- member_
display_ strname The name of the cloud firewall member account.
- member_
uid str The UID of the cloud firewall member account.
- modify_
time int The last modification time of the cloud firewall member account.> use second-level timestamp format.
- status str
The resource attribute field that represents the resource status.
- create
Time Number When the cloud firewall member account was added.> use second-level timestamp format.
- id String
- member
Desc String Remarks of cloud firewall member accounts.
- member
Display StringName The name of the cloud firewall member account.
- member
Uid String The UID of the cloud firewall member account.
- modify
Time Number The last modification time of the cloud firewall member account.> use second-level timestamp format.
- status String
The resource attribute field that represents the resource status.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.