import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This data source provides the list of Network Security Groups in Oracle Cloud Infrastructure Core service. * * Lists either the network security groups in the specified compartment, or those associated with the specified VLAN. * You must specify either a `vlanId` or a `compartmentId`, but not both. If you specify a `vlanId`, all other parameters are ignored. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testNetworkSecurityGroups = oci.core.getNetworkSecurityGroups({ * compartmentId: compartmentId, * displayName: networkSecurityGroupDisplayName, * state: networkSecurityGroupState, * vcnId: testVcn.id, * vlanId: testVlan.id, * }); * ``` */ export declare function getNetworkSecurityGroups(args?: GetNetworkSecurityGroupsArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getNetworkSecurityGroups. */ export interface GetNetworkSecurityGroupsArgs { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ compartmentId?: string; /** * A filter to return only resources that match the given display name exactly. */ displayName?: string; filters?: inputs.Core.GetNetworkSecurityGroupsFilter[]; /** * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. */ state?: string; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. */ vcnId?: string; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VLAN. */ vlanId?: string; } /** * A collection of values returned by getNetworkSecurityGroups. */ export interface GetNetworkSecurityGroupsResult { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment the network security group is in. */ readonly compartmentId?: string; /** * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. */ readonly displayName?: string; readonly filters?: outputs.Core.GetNetworkSecurityGroupsFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The list of network_security_groups. */ readonly networkSecurityGroups: outputs.Core.GetNetworkSecurityGroupsNetworkSecurityGroup[]; /** * The network security group's current state. */ readonly state?: string; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network security group's VCN. */ readonly vcnId?: string; readonly vlanId?: string; } /** * This data source provides the list of Network Security Groups in Oracle Cloud Infrastructure Core service. * * Lists either the network security groups in the specified compartment, or those associated with the specified VLAN. * You must specify either a `vlanId` or a `compartmentId`, but not both. If you specify a `vlanId`, all other parameters are ignored. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testNetworkSecurityGroups = oci.core.getNetworkSecurityGroups({ * compartmentId: compartmentId, * displayName: networkSecurityGroupDisplayName, * state: networkSecurityGroupState, * vcnId: testVcn.id, * vlanId: testVlan.id, * }); * ``` */ export declare function getNetworkSecurityGroupsOutput(args?: GetNetworkSecurityGroupsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getNetworkSecurityGroups. */ export interface GetNetworkSecurityGroupsOutputArgs { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ compartmentId?: pulumi.Input; /** * A filter to return only resources that match the given display name exactly. */ displayName?: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. */ state?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. */ vcnId?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VLAN. */ vlanId?: pulumi.Input; } //# sourceMappingURL=getNetworkSecurityGroups.d.ts.map