hcp.AzurePeeringConnection
Explore with Pulumi AI
Note: This data source is currently in public beta.
The Azure peering connection resource allows you to manage a peering connection between an HVN and a peer Azure VNet.
Create AzurePeeringConnection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AzurePeeringConnection(name: string, args: AzurePeeringConnectionArgs, opts?: CustomResourceOptions);
@overload
def AzurePeeringConnection(resource_name: str,
args: AzurePeeringConnectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AzurePeeringConnection(resource_name: str,
opts: Optional[ResourceOptions] = None,
hvn_link: Optional[str] = None,
peer_resource_group_name: Optional[str] = None,
peer_subscription_id: Optional[str] = None,
peer_tenant_id: Optional[str] = None,
peer_vnet_name: Optional[str] = None,
peer_vnet_region: Optional[str] = None,
peering_id: Optional[str] = None)
func NewAzurePeeringConnection(ctx *Context, name string, args AzurePeeringConnectionArgs, opts ...ResourceOption) (*AzurePeeringConnection, error)
public AzurePeeringConnection(string name, AzurePeeringConnectionArgs args, CustomResourceOptions? opts = null)
public AzurePeeringConnection(String name, AzurePeeringConnectionArgs args)
public AzurePeeringConnection(String name, AzurePeeringConnectionArgs args, CustomResourceOptions options)
type: hcp:AzurePeeringConnection
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 AzurePeeringConnectionArgs
- 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 AzurePeeringConnectionArgs
- 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 AzurePeeringConnectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AzurePeeringConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AzurePeeringConnectionArgs
- 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 azurePeeringConnectionResource = new Hcp.AzurePeeringConnection("azurePeeringConnectionResource", new()
{
HvnLink = "string",
PeerResourceGroupName = "string",
PeerSubscriptionId = "string",
PeerTenantId = "string",
PeerVnetName = "string",
PeerVnetRegion = "string",
PeeringId = "string",
});
example, err := hcp.NewAzurePeeringConnection(ctx, "azurePeeringConnectionResource", &hcp.AzurePeeringConnectionArgs{
HvnLink: pulumi.String("string"),
PeerResourceGroupName: pulumi.String("string"),
PeerSubscriptionId: pulumi.String("string"),
PeerTenantId: pulumi.String("string"),
PeerVnetName: pulumi.String("string"),
PeerVnetRegion: pulumi.String("string"),
PeeringId: pulumi.String("string"),
})
var azurePeeringConnectionResource = new AzurePeeringConnection("azurePeeringConnectionResource", AzurePeeringConnectionArgs.builder()
.hvnLink("string")
.peerResourceGroupName("string")
.peerSubscriptionId("string")
.peerTenantId("string")
.peerVnetName("string")
.peerVnetRegion("string")
.peeringId("string")
.build());
azure_peering_connection_resource = hcp.AzurePeeringConnection("azurePeeringConnectionResource",
hvn_link="string",
peer_resource_group_name="string",
peer_subscription_id="string",
peer_tenant_id="string",
peer_vnet_name="string",
peer_vnet_region="string",
peering_id="string")
const azurePeeringConnectionResource = new hcp.AzurePeeringConnection("azurePeeringConnectionResource", {
hvnLink: "string",
peerResourceGroupName: "string",
peerSubscriptionId: "string",
peerTenantId: "string",
peerVnetName: "string",
peerVnetRegion: "string",
peeringId: "string",
});
type: hcp:AzurePeeringConnection
properties:
hvnLink: string
peerResourceGroupName: string
peerSubscriptionId: string
peerTenantId: string
peerVnetName: string
peerVnetRegion: string
peeringId: string
AzurePeeringConnection 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 AzurePeeringConnection resource accepts the following input properties:
- Hvn
Link string - The
self_link
of the HashiCorp Virtual Network (HVN). - Peer
Resource stringGroup Name - The resource group name of the peer VNet in Azure.
- Peer
Subscription stringId - The subscription ID of the peer VNet in Azure.
- Peer
Tenant stringId - The tenant ID of the peer VNet in Azure.
- Peer
Vnet stringName - The name of the peer VNet in Azure.
- Peer
Vnet stringRegion - The region of the peer VNet in Azure.
- Peering
Id string - The ID of the peering connection.
- Hvn
Link string - The
self_link
of the HashiCorp Virtual Network (HVN). - Peer
Resource stringGroup Name - The resource group name of the peer VNet in Azure.
- Peer
Subscription stringId - The subscription ID of the peer VNet in Azure.
- Peer
Tenant stringId - The tenant ID of the peer VNet in Azure.
- Peer
Vnet stringName - The name of the peer VNet in Azure.
- Peer
Vnet stringRegion - The region of the peer VNet in Azure.
- Peering
Id string - The ID of the peering connection.
- hvn
Link String - The
self_link
of the HashiCorp Virtual Network (HVN). - peer
Resource StringGroup Name - The resource group name of the peer VNet in Azure.
- peer
Subscription StringId - The subscription ID of the peer VNet in Azure.
- peer
Tenant StringId - The tenant ID of the peer VNet in Azure.
- peer
Vnet StringName - The name of the peer VNet in Azure.
- peer
Vnet StringRegion - The region of the peer VNet in Azure.
- peering
Id String - The ID of the peering connection.
- hvn
Link string - The
self_link
of the HashiCorp Virtual Network (HVN). - peer
Resource stringGroup Name - The resource group name of the peer VNet in Azure.
- peer
Subscription stringId - The subscription ID of the peer VNet in Azure.
- peer
Tenant stringId - The tenant ID of the peer VNet in Azure.
- peer
Vnet stringName - The name of the peer VNet in Azure.
- peer
Vnet stringRegion - The region of the peer VNet in Azure.
- peering
Id string - The ID of the peering connection.
- hvn_
link str - The
self_link
of the HashiCorp Virtual Network (HVN). - peer_
resource_ strgroup_ name - The resource group name of the peer VNet in Azure.
- peer_
subscription_ strid - The subscription ID of the peer VNet in Azure.
- peer_
tenant_ strid - The tenant ID of the peer VNet in Azure.
- peer_
vnet_ strname - The name of the peer VNet in Azure.
- peer_
vnet_ strregion - The region of the peer VNet in Azure.
- peering_
id str - The ID of the peering connection.
- hvn
Link String - The
self_link
of the HashiCorp Virtual Network (HVN). - peer
Resource StringGroup Name - The resource group name of the peer VNet in Azure.
- peer
Subscription StringId - The subscription ID of the peer VNet in Azure.
- peer
Tenant StringId - The tenant ID of the peer VNet in Azure.
- peer
Vnet StringName - The name of the peer VNet in Azure.
- peer
Vnet StringRegion - The region of the peer VNet in Azure.
- peering
Id String - The ID of the peering connection.
Outputs
All input properties are implicitly available as output properties. Additionally, the AzurePeeringConnection resource produces the following output properties:
- Application
Id string - The ID of the Azure application whose credentials are used to peer the HCP HVN's underlying VNet with the customer VNet.
- Azure
Peering stringId - The peering connection ID used by Azure.
- Created
At string - The time that the peering connection was created.
- Expires
At string - The time after which the peering connection will be considered expired if it hasn't transitioned into
ACCEPTED
orACTIVE
state. - Id string
- The provider-assigned unique ID for this managed resource.
- Organization
Id string - The ID of the HCP organization where the peering connection is located. Always matches the HVN's organization.
- Project
Id string - The ID of the HCP project where the peering connection is located. Always matches the HVN's project.
- Self
Link string - A unique URL identifying the peering connection.
- State string
- The state of the Azure peering connection.
- Application
Id string - The ID of the Azure application whose credentials are used to peer the HCP HVN's underlying VNet with the customer VNet.
- Azure
Peering stringId - The peering connection ID used by Azure.
- Created
At string - The time that the peering connection was created.
- Expires
At string - The time after which the peering connection will be considered expired if it hasn't transitioned into
ACCEPTED
orACTIVE
state. - Id string
- The provider-assigned unique ID for this managed resource.
- Organization
Id string - The ID of the HCP organization where the peering connection is located. Always matches the HVN's organization.
- Project
Id string - The ID of the HCP project where the peering connection is located. Always matches the HVN's project.
- Self
Link string - A unique URL identifying the peering connection.
- State string
- The state of the Azure peering connection.
- application
Id String - The ID of the Azure application whose credentials are used to peer the HCP HVN's underlying VNet with the customer VNet.
- azure
Peering StringId - The peering connection ID used by Azure.
- created
At String - The time that the peering connection was created.
- expires
At String - The time after which the peering connection will be considered expired if it hasn't transitioned into
ACCEPTED
orACTIVE
state. - id String
- The provider-assigned unique ID for this managed resource.
- organization
Id String - The ID of the HCP organization where the peering connection is located. Always matches the HVN's organization.
- project
Id String - The ID of the HCP project where the peering connection is located. Always matches the HVN's project.
- self
Link String - A unique URL identifying the peering connection.
- state String
- The state of the Azure peering connection.
- application
Id string - The ID of the Azure application whose credentials are used to peer the HCP HVN's underlying VNet with the customer VNet.
- azure
Peering stringId - The peering connection ID used by Azure.
- created
At string - The time that the peering connection was created.
- expires
At string - The time after which the peering connection will be considered expired if it hasn't transitioned into
ACCEPTED
orACTIVE
state. - id string
- The provider-assigned unique ID for this managed resource.
- organization
Id string - The ID of the HCP organization where the peering connection is located. Always matches the HVN's organization.
- project
Id string - The ID of the HCP project where the peering connection is located. Always matches the HVN's project.
- self
Link string - A unique URL identifying the peering connection.
- state string
- The state of the Azure peering connection.
- application_
id str - The ID of the Azure application whose credentials are used to peer the HCP HVN's underlying VNet with the customer VNet.
- azure_
peering_ strid - The peering connection ID used by Azure.
- created_
at str - The time that the peering connection was created.
- expires_
at str - The time after which the peering connection will be considered expired if it hasn't transitioned into
ACCEPTED
orACTIVE
state. - id str
- The provider-assigned unique ID for this managed resource.
- organization_
id str - The ID of the HCP organization where the peering connection is located. Always matches the HVN's organization.
- project_
id str - The ID of the HCP project where the peering connection is located. Always matches the HVN's project.
- self_
link str - A unique URL identifying the peering connection.
- state str
- The state of the Azure peering connection.
- application
Id String - The ID of the Azure application whose credentials are used to peer the HCP HVN's underlying VNet with the customer VNet.
- azure
Peering StringId - The peering connection ID used by Azure.
- created
At String - The time that the peering connection was created.
- expires
At String - The time after which the peering connection will be considered expired if it hasn't transitioned into
ACCEPTED
orACTIVE
state. - id String
- The provider-assigned unique ID for this managed resource.
- organization
Id String - The ID of the HCP organization where the peering connection is located. Always matches the HVN's organization.
- project
Id String - The ID of the HCP project where the peering connection is located. Always matches the HVN's project.
- self
Link String - A unique URL identifying the peering connection.
- state String
- The state of the Azure peering connection.
Look up Existing AzurePeeringConnection Resource
Get an existing AzurePeeringConnection 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?: AzurePeeringConnectionState, opts?: CustomResourceOptions): AzurePeeringConnection
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
application_id: Optional[str] = None,
azure_peering_id: Optional[str] = None,
created_at: Optional[str] = None,
expires_at: Optional[str] = None,
hvn_link: Optional[str] = None,
organization_id: Optional[str] = None,
peer_resource_group_name: Optional[str] = None,
peer_subscription_id: Optional[str] = None,
peer_tenant_id: Optional[str] = None,
peer_vnet_name: Optional[str] = None,
peer_vnet_region: Optional[str] = None,
peering_id: Optional[str] = None,
project_id: Optional[str] = None,
self_link: Optional[str] = None,
state: Optional[str] = None) -> AzurePeeringConnection
func GetAzurePeeringConnection(ctx *Context, name string, id IDInput, state *AzurePeeringConnectionState, opts ...ResourceOption) (*AzurePeeringConnection, error)
public static AzurePeeringConnection Get(string name, Input<string> id, AzurePeeringConnectionState? state, CustomResourceOptions? opts = null)
public static AzurePeeringConnection get(String name, Output<String> id, AzurePeeringConnectionState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Application
Id string - The ID of the Azure application whose credentials are used to peer the HCP HVN's underlying VNet with the customer VNet.
- Azure
Peering stringId - The peering connection ID used by Azure.
- Created
At string - The time that the peering connection was created.
- Expires
At string - The time after which the peering connection will be considered expired if it hasn't transitioned into
ACCEPTED
orACTIVE
state. - Hvn
Link string - The
self_link
of the HashiCorp Virtual Network (HVN). - Organization
Id string - The ID of the HCP organization where the peering connection is located. Always matches the HVN's organization.
- Peer
Resource stringGroup Name - The resource group name of the peer VNet in Azure.
- Peer
Subscription stringId - The subscription ID of the peer VNet in Azure.
- Peer
Tenant stringId - The tenant ID of the peer VNet in Azure.
- Peer
Vnet stringName - The name of the peer VNet in Azure.
- Peer
Vnet stringRegion - The region of the peer VNet in Azure.
- Peering
Id string - The ID of the peering connection.
- Project
Id string - The ID of the HCP project where the peering connection is located. Always matches the HVN's project.
- Self
Link string - A unique URL identifying the peering connection.
- State string
- The state of the Azure peering connection.
- Application
Id string - The ID of the Azure application whose credentials are used to peer the HCP HVN's underlying VNet with the customer VNet.
- Azure
Peering stringId - The peering connection ID used by Azure.
- Created
At string - The time that the peering connection was created.
- Expires
At string - The time after which the peering connection will be considered expired if it hasn't transitioned into
ACCEPTED
orACTIVE
state. - Hvn
Link string - The
self_link
of the HashiCorp Virtual Network (HVN). - Organization
Id string - The ID of the HCP organization where the peering connection is located. Always matches the HVN's organization.
- Peer
Resource stringGroup Name - The resource group name of the peer VNet in Azure.
- Peer
Subscription stringId - The subscription ID of the peer VNet in Azure.
- Peer
Tenant stringId - The tenant ID of the peer VNet in Azure.
- Peer
Vnet stringName - The name of the peer VNet in Azure.
- Peer
Vnet stringRegion - The region of the peer VNet in Azure.
- Peering
Id string - The ID of the peering connection.
- Project
Id string - The ID of the HCP project where the peering connection is located. Always matches the HVN's project.
- Self
Link string - A unique URL identifying the peering connection.
- State string
- The state of the Azure peering connection.
- application
Id String - The ID of the Azure application whose credentials are used to peer the HCP HVN's underlying VNet with the customer VNet.
- azure
Peering StringId - The peering connection ID used by Azure.
- created
At String - The time that the peering connection was created.
- expires
At String - The time after which the peering connection will be considered expired if it hasn't transitioned into
ACCEPTED
orACTIVE
state. - hvn
Link String - The
self_link
of the HashiCorp Virtual Network (HVN). - organization
Id String - The ID of the HCP organization where the peering connection is located. Always matches the HVN's organization.
- peer
Resource StringGroup Name - The resource group name of the peer VNet in Azure.
- peer
Subscription StringId - The subscription ID of the peer VNet in Azure.
- peer
Tenant StringId - The tenant ID of the peer VNet in Azure.
- peer
Vnet StringName - The name of the peer VNet in Azure.
- peer
Vnet StringRegion - The region of the peer VNet in Azure.
- peering
Id String - The ID of the peering connection.
- project
Id String - The ID of the HCP project where the peering connection is located. Always matches the HVN's project.
- self
Link String - A unique URL identifying the peering connection.
- state String
- The state of the Azure peering connection.
- application
Id string - The ID of the Azure application whose credentials are used to peer the HCP HVN's underlying VNet with the customer VNet.
- azure
Peering stringId - The peering connection ID used by Azure.
- created
At string - The time that the peering connection was created.
- expires
At string - The time after which the peering connection will be considered expired if it hasn't transitioned into
ACCEPTED
orACTIVE
state. - hvn
Link string - The
self_link
of the HashiCorp Virtual Network (HVN). - organization
Id string - The ID of the HCP organization where the peering connection is located. Always matches the HVN's organization.
- peer
Resource stringGroup Name - The resource group name of the peer VNet in Azure.
- peer
Subscription stringId - The subscription ID of the peer VNet in Azure.
- peer
Tenant stringId - The tenant ID of the peer VNet in Azure.
- peer
Vnet stringName - The name of the peer VNet in Azure.
- peer
Vnet stringRegion - The region of the peer VNet in Azure.
- peering
Id string - The ID of the peering connection.
- project
Id string - The ID of the HCP project where the peering connection is located. Always matches the HVN's project.
- self
Link string - A unique URL identifying the peering connection.
- state string
- The state of the Azure peering connection.
- application_
id str - The ID of the Azure application whose credentials are used to peer the HCP HVN's underlying VNet with the customer VNet.
- azure_
peering_ strid - The peering connection ID used by Azure.
- created_
at str - The time that the peering connection was created.
- expires_
at str - The time after which the peering connection will be considered expired if it hasn't transitioned into
ACCEPTED
orACTIVE
state. - hvn_
link str - The
self_link
of the HashiCorp Virtual Network (HVN). - organization_
id str - The ID of the HCP organization where the peering connection is located. Always matches the HVN's organization.
- peer_
resource_ strgroup_ name - The resource group name of the peer VNet in Azure.
- peer_
subscription_ strid - The subscription ID of the peer VNet in Azure.
- peer_
tenant_ strid - The tenant ID of the peer VNet in Azure.
- peer_
vnet_ strname - The name of the peer VNet in Azure.
- peer_
vnet_ strregion - The region of the peer VNet in Azure.
- peering_
id str - The ID of the peering connection.
- project_
id str - The ID of the HCP project where the peering connection is located. Always matches the HVN's project.
- self_
link str - A unique URL identifying the peering connection.
- state str
- The state of the Azure peering connection.
- application
Id String - The ID of the Azure application whose credentials are used to peer the HCP HVN's underlying VNet with the customer VNet.
- azure
Peering StringId - The peering connection ID used by Azure.
- created
At String - The time that the peering connection was created.
- expires
At String - The time after which the peering connection will be considered expired if it hasn't transitioned into
ACCEPTED
orACTIVE
state. - hvn
Link String - The
self_link
of the HashiCorp Virtual Network (HVN). - organization
Id String - The ID of the HCP organization where the peering connection is located. Always matches the HVN's organization.
- peer
Resource StringGroup Name - The resource group name of the peer VNet in Azure.
- peer
Subscription StringId - The subscription ID of the peer VNet in Azure.
- peer
Tenant StringId - The tenant ID of the peer VNet in Azure.
- peer
Vnet StringName - The name of the peer VNet in Azure.
- peer
Vnet StringRegion - The region of the peer VNet in Azure.
- peering
Id String - The ID of the peering connection.
- project
Id String - The ID of the HCP project where the peering connection is located. Always matches the HVN's project.
- self
Link String - A unique URL identifying the peering connection.
- state String
- The state of the Azure peering connection.
Import
The import ID is {hvn_id}:{peering_id}
$ pulumi import hcp:index/azurePeeringConnection:AzurePeeringConnection peer main-hvn:199e7e96-4d5f-4456-91f3-b6cc71f1e561
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- hcp grapl-security/pulumi-hcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
hcp
Terraform Provider.