gcp.networksecurity.MirroringEndpointGroupAssociation
Explore with Pulumi AI
Example Usage
Network Security Mirroring Endpoint Group Association Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const producerNetwork = new gcp.compute.Network("producer_network", {
    name: "example-prod-network",
    autoCreateSubnetworks: false,
});
const consumerNetwork = new gcp.compute.Network("consumer_network", {
    name: "example-cons-network",
    autoCreateSubnetworks: false,
});
const deploymentGroup = new gcp.networksecurity.MirroringDeploymentGroup("deployment_group", {
    mirroringDeploymentGroupId: "example-dg",
    location: "global",
    network: producerNetwork.id,
});
const endpointGroup = new gcp.networksecurity.MirroringEndpointGroup("endpoint_group", {
    mirroringEndpointGroupId: "example-eg",
    location: "global",
    mirroringDeploymentGroup: deploymentGroup.id,
});
const _default = new gcp.networksecurity.MirroringEndpointGroupAssociation("default", {
    mirroringEndpointGroupAssociationId: "example-ega",
    location: "global",
    network: consumerNetwork.id,
    mirroringEndpointGroup: endpointGroup.id,
    labels: {
        foo: "bar",
    },
});
import pulumi
import pulumi_gcp as gcp
producer_network = gcp.compute.Network("producer_network",
    name="example-prod-network",
    auto_create_subnetworks=False)
consumer_network = gcp.compute.Network("consumer_network",
    name="example-cons-network",
    auto_create_subnetworks=False)
deployment_group = gcp.networksecurity.MirroringDeploymentGroup("deployment_group",
    mirroring_deployment_group_id="example-dg",
    location="global",
    network=producer_network.id)
endpoint_group = gcp.networksecurity.MirroringEndpointGroup("endpoint_group",
    mirroring_endpoint_group_id="example-eg",
    location="global",
    mirroring_deployment_group=deployment_group.id)
default = gcp.networksecurity.MirroringEndpointGroupAssociation("default",
    mirroring_endpoint_group_association_id="example-ega",
    location="global",
    network=consumer_network.id,
    mirroring_endpoint_group=endpoint_group.id,
    labels={
        "foo": "bar",
    })
package main
import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/compute"
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/networksecurity"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		producerNetwork, err := compute.NewNetwork(ctx, "producer_network", &compute.NetworkArgs{
			Name:                  pulumi.String("example-prod-network"),
			AutoCreateSubnetworks: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		consumerNetwork, err := compute.NewNetwork(ctx, "consumer_network", &compute.NetworkArgs{
			Name:                  pulumi.String("example-cons-network"),
			AutoCreateSubnetworks: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		deploymentGroup, err := networksecurity.NewMirroringDeploymentGroup(ctx, "deployment_group", &networksecurity.MirroringDeploymentGroupArgs{
			MirroringDeploymentGroupId: pulumi.String("example-dg"),
			Location:                   pulumi.String("global"),
			Network:                    producerNetwork.ID(),
		})
		if err != nil {
			return err
		}
		endpointGroup, err := networksecurity.NewMirroringEndpointGroup(ctx, "endpoint_group", &networksecurity.MirroringEndpointGroupArgs{
			MirroringEndpointGroupId: pulumi.String("example-eg"),
			Location:                 pulumi.String("global"),
			MirroringDeploymentGroup: deploymentGroup.ID(),
		})
		if err != nil {
			return err
		}
		_, err = networksecurity.NewMirroringEndpointGroupAssociation(ctx, "default", &networksecurity.MirroringEndpointGroupAssociationArgs{
			MirroringEndpointGroupAssociationId: pulumi.String("example-ega"),
			Location:                            pulumi.String("global"),
			Network:                             consumerNetwork.ID(),
			MirroringEndpointGroup:              endpointGroup.ID(),
			Labels: pulumi.StringMap{
				"foo": pulumi.String("bar"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() => 
{
    var producerNetwork = new Gcp.Compute.Network("producer_network", new()
    {
        Name = "example-prod-network",
        AutoCreateSubnetworks = false,
    });
    var consumerNetwork = new Gcp.Compute.Network("consumer_network", new()
    {
        Name = "example-cons-network",
        AutoCreateSubnetworks = false,
    });
    var deploymentGroup = new Gcp.NetworkSecurity.MirroringDeploymentGroup("deployment_group", new()
    {
        MirroringDeploymentGroupId = "example-dg",
        Location = "global",
        Network = producerNetwork.Id,
    });
    var endpointGroup = new Gcp.NetworkSecurity.MirroringEndpointGroup("endpoint_group", new()
    {
        MirroringEndpointGroupId = "example-eg",
        Location = "global",
        MirroringDeploymentGroup = deploymentGroup.Id,
    });
    var @default = new Gcp.NetworkSecurity.MirroringEndpointGroupAssociation("default", new()
    {
        MirroringEndpointGroupAssociationId = "example-ega",
        Location = "global",
        Network = consumerNetwork.Id,
        MirroringEndpointGroup = endpointGroup.Id,
        Labels = 
        {
            { "foo", "bar" },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.Network;
import com.pulumi.gcp.compute.NetworkArgs;
import com.pulumi.gcp.networksecurity.MirroringDeploymentGroup;
import com.pulumi.gcp.networksecurity.MirroringDeploymentGroupArgs;
import com.pulumi.gcp.networksecurity.MirroringEndpointGroup;
import com.pulumi.gcp.networksecurity.MirroringEndpointGroupArgs;
import com.pulumi.gcp.networksecurity.MirroringEndpointGroupAssociation;
import com.pulumi.gcp.networksecurity.MirroringEndpointGroupAssociationArgs;
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) {
        var producerNetwork = new Network("producerNetwork", NetworkArgs.builder()
            .name("example-prod-network")
            .autoCreateSubnetworks(false)
            .build());
        var consumerNetwork = new Network("consumerNetwork", NetworkArgs.builder()
            .name("example-cons-network")
            .autoCreateSubnetworks(false)
            .build());
        var deploymentGroup = new MirroringDeploymentGroup("deploymentGroup", MirroringDeploymentGroupArgs.builder()
            .mirroringDeploymentGroupId("example-dg")
            .location("global")
            .network(producerNetwork.id())
            .build());
        var endpointGroup = new MirroringEndpointGroup("endpointGroup", MirroringEndpointGroupArgs.builder()
            .mirroringEndpointGroupId("example-eg")
            .location("global")
            .mirroringDeploymentGroup(deploymentGroup.id())
            .build());
        var default_ = new MirroringEndpointGroupAssociation("default", MirroringEndpointGroupAssociationArgs.builder()
            .mirroringEndpointGroupAssociationId("example-ega")
            .location("global")
            .network(consumerNetwork.id())
            .mirroringEndpointGroup(endpointGroup.id())
            .labels(Map.of("foo", "bar"))
            .build());
    }
}
resources:
  producerNetwork:
    type: gcp:compute:Network
    name: producer_network
    properties:
      name: example-prod-network
      autoCreateSubnetworks: false
  consumerNetwork:
    type: gcp:compute:Network
    name: consumer_network
    properties:
      name: example-cons-network
      autoCreateSubnetworks: false
  deploymentGroup:
    type: gcp:networksecurity:MirroringDeploymentGroup
    name: deployment_group
    properties:
      mirroringDeploymentGroupId: example-dg
      location: global
      network: ${producerNetwork.id}
  endpointGroup:
    type: gcp:networksecurity:MirroringEndpointGroup
    name: endpoint_group
    properties:
      mirroringEndpointGroupId: example-eg
      location: global
      mirroringDeploymentGroup: ${deploymentGroup.id}
  default:
    type: gcp:networksecurity:MirroringEndpointGroupAssociation
    properties:
      mirroringEndpointGroupAssociationId: example-ega
      location: global
      network: ${consumerNetwork.id}
      mirroringEndpointGroup: ${endpointGroup.id}
      labels:
        foo: bar
Create MirroringEndpointGroupAssociation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MirroringEndpointGroupAssociation(name: string, args: MirroringEndpointGroupAssociationArgs, opts?: CustomResourceOptions);@overload
def MirroringEndpointGroupAssociation(resource_name: str,
                                      args: MirroringEndpointGroupAssociationArgs,
                                      opts: Optional[ResourceOptions] = None)
@overload
def MirroringEndpointGroupAssociation(resource_name: str,
                                      opts: Optional[ResourceOptions] = None,
                                      location: Optional[str] = None,
                                      mirroring_endpoint_group: Optional[str] = None,
                                      network: Optional[str] = None,
                                      labels: Optional[Mapping[str, str]] = None,
                                      mirroring_endpoint_group_association_id: Optional[str] = None,
                                      project: Optional[str] = None)func NewMirroringEndpointGroupAssociation(ctx *Context, name string, args MirroringEndpointGroupAssociationArgs, opts ...ResourceOption) (*MirroringEndpointGroupAssociation, error)public MirroringEndpointGroupAssociation(string name, MirroringEndpointGroupAssociationArgs args, CustomResourceOptions? opts = null)
public MirroringEndpointGroupAssociation(String name, MirroringEndpointGroupAssociationArgs args)
public MirroringEndpointGroupAssociation(String name, MirroringEndpointGroupAssociationArgs args, CustomResourceOptions options)
type: gcp:networksecurity:MirroringEndpointGroupAssociation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args MirroringEndpointGroupAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args MirroringEndpointGroupAssociationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args MirroringEndpointGroupAssociationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MirroringEndpointGroupAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MirroringEndpointGroupAssociationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var mirroringEndpointGroupAssociationResource = new Gcp.NetworkSecurity.MirroringEndpointGroupAssociation("mirroringEndpointGroupAssociationResource", new()
{
    Location = "string",
    MirroringEndpointGroup = "string",
    Network = "string",
    Labels = 
    {
        { "string", "string" },
    },
    MirroringEndpointGroupAssociationId = "string",
    Project = "string",
});
example, err := networksecurity.NewMirroringEndpointGroupAssociation(ctx, "mirroringEndpointGroupAssociationResource", &networksecurity.MirroringEndpointGroupAssociationArgs{
	Location:               pulumi.String("string"),
	MirroringEndpointGroup: pulumi.String("string"),
	Network:                pulumi.String("string"),
	Labels: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	MirroringEndpointGroupAssociationId: pulumi.String("string"),
	Project:                             pulumi.String("string"),
})
var mirroringEndpointGroupAssociationResource = new MirroringEndpointGroupAssociation("mirroringEndpointGroupAssociationResource", MirroringEndpointGroupAssociationArgs.builder()
    .location("string")
    .mirroringEndpointGroup("string")
    .network("string")
    .labels(Map.of("string", "string"))
    .mirroringEndpointGroupAssociationId("string")
    .project("string")
    .build());
mirroring_endpoint_group_association_resource = gcp.networksecurity.MirroringEndpointGroupAssociation("mirroringEndpointGroupAssociationResource",
    location="string",
    mirroring_endpoint_group="string",
    network="string",
    labels={
        "string": "string",
    },
    mirroring_endpoint_group_association_id="string",
    project="string")
const mirroringEndpointGroupAssociationResource = new gcp.networksecurity.MirroringEndpointGroupAssociation("mirroringEndpointGroupAssociationResource", {
    location: "string",
    mirroringEndpointGroup: "string",
    network: "string",
    labels: {
        string: "string",
    },
    mirroringEndpointGroupAssociationId: "string",
    project: "string",
});
type: gcp:networksecurity:MirroringEndpointGroupAssociation
properties:
    labels:
        string: string
    location: string
    mirroringEndpointGroup: string
    mirroringEndpointGroupAssociationId: string
    network: string
    project: string
MirroringEndpointGroupAssociation Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The MirroringEndpointGroupAssociation resource accepts the following input properties:
- Location string
- Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typenetworksecurity.googleapis.com/MirroringEndpointGroupAssociation.
- MirroringEndpoint stringGroup 
- Required. Immutable. The Mirroring Endpoint Group that this resource is connected to. Format
is:
projects/{project}/locations/global/mirroringEndpointGroups/{mirroringEndpointGroup}
- Network string
- Required. Immutable. The VPC network associated. Format: projects/{project}/global/networks/{network}.
- Labels Dictionary<string, string>
- Optional. Labels as key value pairs
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field effective_labelsfor all of the labels present on the resource.
- MirroringEndpoint stringGroup Association Id 
- Optional. Id of the requesting object If auto-generating Id server-side, remove this field and mirroring_endpoint_group_association_id from the method_signature of Create RPC
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Location string
- Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typenetworksecurity.googleapis.com/MirroringEndpointGroupAssociation.
- MirroringEndpoint stringGroup 
- Required. Immutable. The Mirroring Endpoint Group that this resource is connected to. Format
is:
projects/{project}/locations/global/mirroringEndpointGroups/{mirroringEndpointGroup}
- Network string
- Required. Immutable. The VPC network associated. Format: projects/{project}/global/networks/{network}.
- Labels map[string]string
- Optional. Labels as key value pairs
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field effective_labelsfor all of the labels present on the resource.
- MirroringEndpoint stringGroup Association Id 
- Optional. Id of the requesting object If auto-generating Id server-side, remove this field and mirroring_endpoint_group_association_id from the method_signature of Create RPC
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location String
- Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typenetworksecurity.googleapis.com/MirroringEndpointGroupAssociation.
- mirroringEndpoint StringGroup 
- Required. Immutable. The Mirroring Endpoint Group that this resource is connected to. Format
is:
projects/{project}/locations/global/mirroringEndpointGroups/{mirroringEndpointGroup}
- network String
- Required. Immutable. The VPC network associated. Format: projects/{project}/global/networks/{network}.
- labels Map<String,String>
- Optional. Labels as key value pairs
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field effective_labelsfor all of the labels present on the resource.
- mirroringEndpoint StringGroup Association Id 
- Optional. Id of the requesting object If auto-generating Id server-side, remove this field and mirroring_endpoint_group_association_id from the method_signature of Create RPC
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location string
- Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typenetworksecurity.googleapis.com/MirroringEndpointGroupAssociation.
- mirroringEndpoint stringGroup 
- Required. Immutable. The Mirroring Endpoint Group that this resource is connected to. Format
is:
projects/{project}/locations/global/mirroringEndpointGroups/{mirroringEndpointGroup}
- network string
- Required. Immutable. The VPC network associated. Format: projects/{project}/global/networks/{network}.
- labels {[key: string]: string}
- Optional. Labels as key value pairs
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field effective_labelsfor all of the labels present on the resource.
- mirroringEndpoint stringGroup Association Id 
- Optional. Id of the requesting object If auto-generating Id server-side, remove this field and mirroring_endpoint_group_association_id from the method_signature of Create RPC
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location str
- Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typenetworksecurity.googleapis.com/MirroringEndpointGroupAssociation.
- mirroring_endpoint_ strgroup 
- Required. Immutable. The Mirroring Endpoint Group that this resource is connected to. Format
is:
projects/{project}/locations/global/mirroringEndpointGroups/{mirroringEndpointGroup}
- network str
- Required. Immutable. The VPC network associated. Format: projects/{project}/global/networks/{network}.
- labels Mapping[str, str]
- Optional. Labels as key value pairs
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field effective_labelsfor all of the labels present on the resource.
- mirroring_endpoint_ strgroup_ association_ id 
- Optional. Id of the requesting object If auto-generating Id server-side, remove this field and mirroring_endpoint_group_association_id from the method_signature of Create RPC
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location String
- Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typenetworksecurity.googleapis.com/MirroringEndpointGroupAssociation.
- mirroringEndpoint StringGroup 
- Required. Immutable. The Mirroring Endpoint Group that this resource is connected to. Format
is:
projects/{project}/locations/global/mirroringEndpointGroups/{mirroringEndpointGroup}
- network String
- Required. Immutable. The VPC network associated. Format: projects/{project}/global/networks/{network}.
- labels Map<String>
- Optional. Labels as key value pairs
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field effective_labelsfor all of the labels present on the resource.
- mirroringEndpoint StringGroup Association Id 
- Optional. Id of the requesting object If auto-generating Id server-side, remove this field and mirroring_endpoint_group_association_id from the method_signature of Create RPC
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Outputs
All input properties are implicitly available as output properties. Additionally, the MirroringEndpointGroupAssociation resource produces the following output properties:
- CreateTime string
- Output only. [Output only] Create time stamp
- EffectiveLabels Dictionary<string, string>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Id string
- The provider-assigned unique ID for this managed resource.
- LocationsDetails List<MirroringEndpoint Group Association Locations Detail> 
- Output only. The list of locations that this association is in and its details. Structure is documented below.
- Name string
- Immutable. Identifier. The name of the MirroringEndpointGroupAssociation.
- PulumiLabels Dictionary<string, string>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- Reconciling bool
- Output only. Whether reconciling is in progress, recommended per https://google.aip.dev/128.
- State string
- (Output) Output only. The association state in this location. Possible values: STATE_UNSPECIFIED ACTIVE OUT_OF_SYNC
- UpdateTime string
- Output only. [Output only] Update time stamp
- CreateTime string
- Output only. [Output only] Create time stamp
- EffectiveLabels map[string]string
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Id string
- The provider-assigned unique ID for this managed resource.
- LocationsDetails []MirroringEndpoint Group Association Locations Detail 
- Output only. The list of locations that this association is in and its details. Structure is documented below.
- Name string
- Immutable. Identifier. The name of the MirroringEndpointGroupAssociation.
- PulumiLabels map[string]string
- The combination of labels configured directly on the resource and default labels configured on the provider.
- Reconciling bool
- Output only. Whether reconciling is in progress, recommended per https://google.aip.dev/128.
- State string
- (Output) Output only. The association state in this location. Possible values: STATE_UNSPECIFIED ACTIVE OUT_OF_SYNC
- UpdateTime string
- Output only. [Output only] Update time stamp
- createTime String
- Output only. [Output only] Create time stamp
- effectiveLabels Map<String,String>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id String
- The provider-assigned unique ID for this managed resource.
- locationsDetails List<MirroringEndpoint Group Association Locations Detail> 
- Output only. The list of locations that this association is in and its details. Structure is documented below.
- name String
- Immutable. Identifier. The name of the MirroringEndpointGroupAssociation.
- pulumiLabels Map<String,String>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- reconciling Boolean
- Output only. Whether reconciling is in progress, recommended per https://google.aip.dev/128.
- state String
- (Output) Output only. The association state in this location. Possible values: STATE_UNSPECIFIED ACTIVE OUT_OF_SYNC
- updateTime String
- Output only. [Output only] Update time stamp
- createTime string
- Output only. [Output only] Create time stamp
- effectiveLabels {[key: string]: string}
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id string
- The provider-assigned unique ID for this managed resource.
- locationsDetails MirroringEndpoint Group Association Locations Detail[] 
- Output only. The list of locations that this association is in and its details. Structure is documented below.
- name string
- Immutable. Identifier. The name of the MirroringEndpointGroupAssociation.
- pulumiLabels {[key: string]: string}
- The combination of labels configured directly on the resource and default labels configured on the provider.
- reconciling boolean
- Output only. Whether reconciling is in progress, recommended per https://google.aip.dev/128.
- state string
- (Output) Output only. The association state in this location. Possible values: STATE_UNSPECIFIED ACTIVE OUT_OF_SYNC
- updateTime string
- Output only. [Output only] Update time stamp
- create_time str
- Output only. [Output only] Create time stamp
- effective_labels Mapping[str, str]
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id str
- The provider-assigned unique ID for this managed resource.
- locations_details Sequence[MirroringEndpoint Group Association Locations Detail] 
- Output only. The list of locations that this association is in and its details. Structure is documented below.
- name str
- Immutable. Identifier. The name of the MirroringEndpointGroupAssociation.
- pulumi_labels Mapping[str, str]
- The combination of labels configured directly on the resource and default labels configured on the provider.
- reconciling bool
- Output only. Whether reconciling is in progress, recommended per https://google.aip.dev/128.
- state str
- (Output) Output only. The association state in this location. Possible values: STATE_UNSPECIFIED ACTIVE OUT_OF_SYNC
- update_time str
- Output only. [Output only] Update time stamp
- createTime String
- Output only. [Output only] Create time stamp
- effectiveLabels Map<String>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id String
- The provider-assigned unique ID for this managed resource.
- locationsDetails List<Property Map>
- Output only. The list of locations that this association is in and its details. Structure is documented below.
- name String
- Immutable. Identifier. The name of the MirroringEndpointGroupAssociation.
- pulumiLabels Map<String>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- reconciling Boolean
- Output only. Whether reconciling is in progress, recommended per https://google.aip.dev/128.
- state String
- (Output) Output only. The association state in this location. Possible values: STATE_UNSPECIFIED ACTIVE OUT_OF_SYNC
- updateTime String
- Output only. [Output only] Update time stamp
Look up Existing MirroringEndpointGroupAssociation Resource
Get an existing MirroringEndpointGroupAssociation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: MirroringEndpointGroupAssociationState, opts?: CustomResourceOptions): MirroringEndpointGroupAssociation@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        create_time: Optional[str] = None,
        effective_labels: Optional[Mapping[str, str]] = None,
        labels: Optional[Mapping[str, str]] = None,
        location: Optional[str] = None,
        locations_details: Optional[Sequence[MirroringEndpointGroupAssociationLocationsDetailArgs]] = None,
        mirroring_endpoint_group: Optional[str] = None,
        mirroring_endpoint_group_association_id: Optional[str] = None,
        name: Optional[str] = None,
        network: Optional[str] = None,
        project: Optional[str] = None,
        pulumi_labels: Optional[Mapping[str, str]] = None,
        reconciling: Optional[bool] = None,
        state: Optional[str] = None,
        update_time: Optional[str] = None) -> MirroringEndpointGroupAssociationfunc GetMirroringEndpointGroupAssociation(ctx *Context, name string, id IDInput, state *MirroringEndpointGroupAssociationState, opts ...ResourceOption) (*MirroringEndpointGroupAssociation, error)public static MirroringEndpointGroupAssociation Get(string name, Input<string> id, MirroringEndpointGroupAssociationState? state, CustomResourceOptions? opts = null)public static MirroringEndpointGroupAssociation get(String name, Output<String> id, MirroringEndpointGroupAssociationState state, CustomResourceOptions options)resources:  _:    type: gcp:networksecurity:MirroringEndpointGroupAssociation    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- CreateTime string
- Output only. [Output only] Create time stamp
- EffectiveLabels Dictionary<string, string>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Labels Dictionary<string, string>
- Optional. Labels as key value pairs
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field effective_labelsfor all of the labels present on the resource.
- Location string
- Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typenetworksecurity.googleapis.com/MirroringEndpointGroupAssociation.
- LocationsDetails List<MirroringEndpoint Group Association Locations Detail> 
- Output only. The list of locations that this association is in and its details. Structure is documented below.
- MirroringEndpoint stringGroup 
- Required. Immutable. The Mirroring Endpoint Group that this resource is connected to. Format
is:
projects/{project}/locations/global/mirroringEndpointGroups/{mirroringEndpointGroup}
- MirroringEndpoint stringGroup Association Id 
- Optional. Id of the requesting object If auto-generating Id server-side, remove this field and mirroring_endpoint_group_association_id from the method_signature of Create RPC
- Name string
- Immutable. Identifier. The name of the MirroringEndpointGroupAssociation.
- Network string
- Required. Immutable. The VPC network associated. Format: projects/{project}/global/networks/{network}.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- PulumiLabels Dictionary<string, string>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- Reconciling bool
- Output only. Whether reconciling is in progress, recommended per https://google.aip.dev/128.
- State string
- (Output) Output only. The association state in this location. Possible values: STATE_UNSPECIFIED ACTIVE OUT_OF_SYNC
- UpdateTime string
- Output only. [Output only] Update time stamp
- CreateTime string
- Output only. [Output only] Create time stamp
- EffectiveLabels map[string]string
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Labels map[string]string
- Optional. Labels as key value pairs
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field effective_labelsfor all of the labels present on the resource.
- Location string
- Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typenetworksecurity.googleapis.com/MirroringEndpointGroupAssociation.
- LocationsDetails []MirroringEndpoint Group Association Locations Detail Args 
- Output only. The list of locations that this association is in and its details. Structure is documented below.
- MirroringEndpoint stringGroup 
- Required. Immutable. The Mirroring Endpoint Group that this resource is connected to. Format
is:
projects/{project}/locations/global/mirroringEndpointGroups/{mirroringEndpointGroup}
- MirroringEndpoint stringGroup Association Id 
- Optional. Id of the requesting object If auto-generating Id server-side, remove this field and mirroring_endpoint_group_association_id from the method_signature of Create RPC
- Name string
- Immutable. Identifier. The name of the MirroringEndpointGroupAssociation.
- Network string
- Required. Immutable. The VPC network associated. Format: projects/{project}/global/networks/{network}.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- PulumiLabels map[string]string
- The combination of labels configured directly on the resource and default labels configured on the provider.
- Reconciling bool
- Output only. Whether reconciling is in progress, recommended per https://google.aip.dev/128.
- State string
- (Output) Output only. The association state in this location. Possible values: STATE_UNSPECIFIED ACTIVE OUT_OF_SYNC
- UpdateTime string
- Output only. [Output only] Update time stamp
- createTime String
- Output only. [Output only] Create time stamp
- effectiveLabels Map<String,String>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- labels Map<String,String>
- Optional. Labels as key value pairs
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field effective_labelsfor all of the labels present on the resource.
- location String
- Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typenetworksecurity.googleapis.com/MirroringEndpointGroupAssociation.
- locationsDetails List<MirroringEndpoint Group Association Locations Detail> 
- Output only. The list of locations that this association is in and its details. Structure is documented below.
- mirroringEndpoint StringGroup 
- Required. Immutable. The Mirroring Endpoint Group that this resource is connected to. Format
is:
projects/{project}/locations/global/mirroringEndpointGroups/{mirroringEndpointGroup}
- mirroringEndpoint StringGroup Association Id 
- Optional. Id of the requesting object If auto-generating Id server-side, remove this field and mirroring_endpoint_group_association_id from the method_signature of Create RPC
- name String
- Immutable. Identifier. The name of the MirroringEndpointGroupAssociation.
- network String
- Required. Immutable. The VPC network associated. Format: projects/{project}/global/networks/{network}.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumiLabels Map<String,String>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- reconciling Boolean
- Output only. Whether reconciling is in progress, recommended per https://google.aip.dev/128.
- state String
- (Output) Output only. The association state in this location. Possible values: STATE_UNSPECIFIED ACTIVE OUT_OF_SYNC
- updateTime String
- Output only. [Output only] Update time stamp
- createTime string
- Output only. [Output only] Create time stamp
- effectiveLabels {[key: string]: string}
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- labels {[key: string]: string}
- Optional. Labels as key value pairs
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field effective_labelsfor all of the labels present on the resource.
- location string
- Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typenetworksecurity.googleapis.com/MirroringEndpointGroupAssociation.
- locationsDetails MirroringEndpoint Group Association Locations Detail[] 
- Output only. The list of locations that this association is in and its details. Structure is documented below.
- mirroringEndpoint stringGroup 
- Required. Immutable. The Mirroring Endpoint Group that this resource is connected to. Format
is:
projects/{project}/locations/global/mirroringEndpointGroups/{mirroringEndpointGroup}
- mirroringEndpoint stringGroup Association Id 
- Optional. Id of the requesting object If auto-generating Id server-side, remove this field and mirroring_endpoint_group_association_id from the method_signature of Create RPC
- name string
- Immutable. Identifier. The name of the MirroringEndpointGroupAssociation.
- network string
- Required. Immutable. The VPC network associated. Format: projects/{project}/global/networks/{network}.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumiLabels {[key: string]: string}
- The combination of labels configured directly on the resource and default labels configured on the provider.
- reconciling boolean
- Output only. Whether reconciling is in progress, recommended per https://google.aip.dev/128.
- state string
- (Output) Output only. The association state in this location. Possible values: STATE_UNSPECIFIED ACTIVE OUT_OF_SYNC
- updateTime string
- Output only. [Output only] Update time stamp
- create_time str
- Output only. [Output only] Create time stamp
- effective_labels Mapping[str, str]
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- labels Mapping[str, str]
- Optional. Labels as key value pairs
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field effective_labelsfor all of the labels present on the resource.
- location str
- Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typenetworksecurity.googleapis.com/MirroringEndpointGroupAssociation.
- locations_details Sequence[MirroringEndpoint Group Association Locations Detail Args] 
- Output only. The list of locations that this association is in and its details. Structure is documented below.
- mirroring_endpoint_ strgroup 
- Required. Immutable. The Mirroring Endpoint Group that this resource is connected to. Format
is:
projects/{project}/locations/global/mirroringEndpointGroups/{mirroringEndpointGroup}
- mirroring_endpoint_ strgroup_ association_ id 
- Optional. Id of the requesting object If auto-generating Id server-side, remove this field and mirroring_endpoint_group_association_id from the method_signature of Create RPC
- name str
- Immutable. Identifier. The name of the MirroringEndpointGroupAssociation.
- network str
- Required. Immutable. The VPC network associated. Format: projects/{project}/global/networks/{network}.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi_labels Mapping[str, str]
- The combination of labels configured directly on the resource and default labels configured on the provider.
- reconciling bool
- Output only. Whether reconciling is in progress, recommended per https://google.aip.dev/128.
- state str
- (Output) Output only. The association state in this location. Possible values: STATE_UNSPECIFIED ACTIVE OUT_OF_SYNC
- update_time str
- Output only. [Output only] Update time stamp
- createTime String
- Output only. [Output only] Create time stamp
- effectiveLabels Map<String>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- labels Map<String>
- Optional. Labels as key value pairs
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field effective_labelsfor all of the labels present on the resource.
- location String
- Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typenetworksecurity.googleapis.com/MirroringEndpointGroupAssociation.
- locationsDetails List<Property Map>
- Output only. The list of locations that this association is in and its details. Structure is documented below.
- mirroringEndpoint StringGroup 
- Required. Immutable. The Mirroring Endpoint Group that this resource is connected to. Format
is:
projects/{project}/locations/global/mirroringEndpointGroups/{mirroringEndpointGroup}
- mirroringEndpoint StringGroup Association Id 
- Optional. Id of the requesting object If auto-generating Id server-side, remove this field and mirroring_endpoint_group_association_id from the method_signature of Create RPC
- name String
- Immutable. Identifier. The name of the MirroringEndpointGroupAssociation.
- network String
- Required. Immutable. The VPC network associated. Format: projects/{project}/global/networks/{network}.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumiLabels Map<String>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- reconciling Boolean
- Output only. Whether reconciling is in progress, recommended per https://google.aip.dev/128.
- state String
- (Output) Output only. The association state in this location. Possible values: STATE_UNSPECIFIED ACTIVE OUT_OF_SYNC
- updateTime String
- Output only. [Output only] Update time stamp
Supporting Types
MirroringEndpointGroupAssociationLocationsDetail, MirroringEndpointGroupAssociationLocationsDetailArgs            
- Location string
- Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typenetworksecurity.googleapis.com/MirroringEndpointGroupAssociation.
- State string
- (Output) Output only. The association state in this location. Possible values: STATE_UNSPECIFIED ACTIVE OUT_OF_SYNC
- Location string
- Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typenetworksecurity.googleapis.com/MirroringEndpointGroupAssociation.
- State string
- (Output) Output only. The association state in this location. Possible values: STATE_UNSPECIFIED ACTIVE OUT_OF_SYNC
- location String
- Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typenetworksecurity.googleapis.com/MirroringEndpointGroupAssociation.
- state String
- (Output) Output only. The association state in this location. Possible values: STATE_UNSPECIFIED ACTIVE OUT_OF_SYNC
- location string
- Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typenetworksecurity.googleapis.com/MirroringEndpointGroupAssociation.
- state string
- (Output) Output only. The association state in this location. Possible values: STATE_UNSPECIFIED ACTIVE OUT_OF_SYNC
- location str
- Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typenetworksecurity.googleapis.com/MirroringEndpointGroupAssociation.
- state str
- (Output) Output only. The association state in this location. Possible values: STATE_UNSPECIFIED ACTIVE OUT_OF_SYNC
- location String
- Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typenetworksecurity.googleapis.com/MirroringEndpointGroupAssociation.
- state String
- (Output) Output only. The association state in this location. Possible values: STATE_UNSPECIFIED ACTIVE OUT_OF_SYNC
Import
MirroringEndpointGroupAssociation can be imported using any of these accepted formats:
- projects/{{project}}/locations/{{location}}/mirroringEndpointGroupAssociations/{{mirroring_endpoint_group_association_id}}
- {{project}}/{{location}}/{{mirroring_endpoint_group_association_id}}
- {{location}}/{{mirroring_endpoint_group_association_id}}
When using the pulumi import command, MirroringEndpointGroupAssociation can be imported using one of the formats above. For example:
$ pulumi import gcp:networksecurity/mirroringEndpointGroupAssociation:MirroringEndpointGroupAssociation default projects/{{project}}/locations/{{location}}/mirroringEndpointGroupAssociations/{{mirroring_endpoint_group_association_id}}
$ pulumi import gcp:networksecurity/mirroringEndpointGroupAssociation:MirroringEndpointGroupAssociation default {{project}}/{{location}}/{{mirroring_endpoint_group_association_id}}
$ pulumi import gcp:networksecurity/mirroringEndpointGroupAssociation:MirroringEndpointGroupAssociation default {{location}}/{{mirroring_endpoint_group_association_id}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the google-betaTerraform Provider.