1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. cloudfirewall
  5. getInstanceMembers
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

alicloud.cloudfirewall.getInstanceMembers

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

    This data source provides Cloud Firewall Instance Member available to the user.What is Instance Member

    NOTE: Available in 1.194.0+

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const default = alicloud.cloudfirewall.getInstanceMembers({
        ids: [defaultAlicloudCloudFirewallInstanceMember.id],
    });
    export const alicloudCloudFirewallInstanceMemberExampleId = _default.then(_default => _default.members?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default = alicloud.cloudfirewall.get_instance_members(ids=[default_alicloud_cloud_firewall_instance_member["id"]])
    pulumi.export("alicloudCloudFirewallInstanceMemberExampleId", default.members[0].id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cloudfirewall"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
    _default, err := cloudfirewall.GetInstanceMembers(ctx, &cloudfirewall.GetInstanceMembersArgs{
    Ids: interface{}{
    defaultAlicloudCloudFirewallInstanceMember.Id,
    },
    }, nil);
    if err != nil {
    return err
    }
    ctx.Export("alicloudCloudFirewallInstanceMemberExampleId", _default.Members[0].Id)
    return nil
    })
    }
    
    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[]
            {
                defaultAlicloudCloudFirewallInstanceMember.Id,
            },
        });
    
        return new Dictionary<string, object?>
        {
            ["alicloudCloudFirewallInstanceMemberExampleId"] = @default.Apply(@default => @default.Apply(getInstanceMembersResult => getInstanceMembersResult.Members[0]?.Id)),
        };
    });
    
    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(defaultAlicloudCloudFirewallInstanceMember.id())
                .build());
    
            ctx.export("alicloudCloudFirewallInstanceMemberExampleId", default_.members()[0].id());
        }
    }
    
    variables:
      default:
        fn::invoke:
          Function: alicloud:cloudfirewall:getInstanceMembers
          Arguments:
            ids:
              - ${defaultAlicloudCloudFirewallInstanceMember.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:

    CurrentPage string
    Ids List<string>
    A list of Instance Member IDs.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    PageNumber int
    PageSize int
    CurrentPage string
    Ids []string
    A list of Instance Member IDs.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    PageNumber int
    PageSize int
    currentPage String
    ids List<String>
    A list of Instance Member IDs.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    pageNumber Integer
    pageSize Integer
    currentPage string
    ids string[]
    A list of Instance Member IDs.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    pageNumber number
    pageSize 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
    currentPage String
    ids List<String>
    A list of Instance Member IDs.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    pageNumber Number
    pageSize 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.AliCloud.CloudFirewall.Outputs.GetInstanceMembersMember>
    A list of Instance Member Entries. Each element contains the following attributes:
    CurrentPage string
    OutputFile string
    PageNumber int
    PageSize int
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    A list of Instance Member IDs.
    Members []GetInstanceMembersMember
    A list of Instance Member Entries. Each element contains the following attributes:
    CurrentPage string
    OutputFile string
    PageNumber int
    PageSize int
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    A list of Instance Member IDs.
    members List<GetInstanceMembersMember>
    A list of Instance Member Entries. Each element contains the following attributes:
    currentPage String
    outputFile String
    pageNumber Integer
    pageSize Integer
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    A list of Instance Member IDs.
    members GetInstanceMembersMember[]
    A list of Instance Member Entries. Each element contains the following attributes:
    currentPage string
    outputFile string
    pageNumber number
    pageSize number
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    A list of Instance Member IDs.
    members Sequence[GetInstanceMembersMember]
    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:
    currentPage String
    outputFile String
    pageNumber Number
    pageSize Number

    Supporting Types

    GetInstanceMembersMember

    CreateTime int
    When the cloud firewall member account was added.> use second-level timestamp format.
    Id string
    MemberDesc string
    Remarks of cloud firewall member accounts.
    MemberDisplayName string
    The name of the cloud firewall member account.
    MemberUid string
    The UID of the cloud firewall member account.
    ModifyTime 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.
    CreateTime int
    When the cloud firewall member account was added.> use second-level timestamp format.
    Id string
    MemberDesc string
    Remarks of cloud firewall member accounts.
    MemberDisplayName string
    The name of the cloud firewall member account.
    MemberUid string
    The UID of the cloud firewall member account.
    ModifyTime 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.
    createTime Integer
    When the cloud firewall member account was added.> use second-level timestamp format.
    id String
    memberDesc String
    Remarks of cloud firewall member accounts.
    memberDisplayName String
    The name of the cloud firewall member account.
    memberUid String
    The UID of the cloud firewall member account.
    modifyTime 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.
    createTime number
    When the cloud firewall member account was added.> use second-level timestamp format.
    id string
    memberDesc string
    Remarks of cloud firewall member accounts.
    memberDisplayName string
    The name of the cloud firewall member account.
    memberUid string
    The UID of the cloud firewall member account.
    modifyTime 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_name str
    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.
    createTime Number
    When the cloud firewall member account was added.> use second-level timestamp format.
    id String
    memberDesc String
    Remarks of cloud firewall member accounts.
    memberDisplayName String
    The name of the cloud firewall member account.
    memberUid String
    The UID of the cloud firewall member account.
    modifyTime 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.
    alicloud logo
    Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi