azure-native.peering.PeeringService
Explore with Pulumi AI
Peering Service Azure REST API version: 2022-10-01. Prior API version in Azure Native 1.x: 2021-01-01.
Example Usage
Create a peering service
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var peeringService = new AzureNative.Peering.PeeringService("peeringService", new()
{
Location = "eastus",
PeeringServiceLocation = "state1",
PeeringServiceName = "peeringServiceName",
PeeringServiceProvider = "serviceProvider1",
ProviderBackupPeeringLocation = "peeringLocation2",
ProviderPrimaryPeeringLocation = "peeringLocation1",
ResourceGroupName = "rgName",
});
});
package main
import (
peering "github.com/pulumi/pulumi-azure-native-sdk/peering/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := peering.NewPeeringService(ctx, "peeringService", &peering.PeeringServiceArgs{
Location: pulumi.String("eastus"),
PeeringServiceLocation: pulumi.String("state1"),
PeeringServiceName: pulumi.String("peeringServiceName"),
PeeringServiceProvider: pulumi.String("serviceProvider1"),
ProviderBackupPeeringLocation: pulumi.String("peeringLocation2"),
ProviderPrimaryPeeringLocation: pulumi.String("peeringLocation1"),
ResourceGroupName: pulumi.String("rgName"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.peering.PeeringService;
import com.pulumi.azurenative.peering.PeeringServiceArgs;
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 peeringService = new PeeringService("peeringService", PeeringServiceArgs.builder()
.location("eastus")
.peeringServiceLocation("state1")
.peeringServiceName("peeringServiceName")
.peeringServiceProvider("serviceProvider1")
.providerBackupPeeringLocation("peeringLocation2")
.providerPrimaryPeeringLocation("peeringLocation1")
.resourceGroupName("rgName")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
peering_service = azure_native.peering.PeeringService("peeringService",
location="eastus",
peering_service_location="state1",
peering_service_name="peeringServiceName",
peering_service_provider="serviceProvider1",
provider_backup_peering_location="peeringLocation2",
provider_primary_peering_location="peeringLocation1",
resource_group_name="rgName")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const peeringService = new azure_native.peering.PeeringService("peeringService", {
location: "eastus",
peeringServiceLocation: "state1",
peeringServiceName: "peeringServiceName",
peeringServiceProvider: "serviceProvider1",
providerBackupPeeringLocation: "peeringLocation2",
providerPrimaryPeeringLocation: "peeringLocation1",
resourceGroupName: "rgName",
});
resources:
peeringService:
type: azure-native:peering:PeeringService
properties:
location: eastus
peeringServiceLocation: state1
peeringServiceName: peeringServiceName
peeringServiceProvider: serviceProvider1
providerBackupPeeringLocation: peeringLocation2
providerPrimaryPeeringLocation: peeringLocation1
resourceGroupName: rgName
Create PeeringService Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PeeringService(name: string, args: PeeringServiceArgs, opts?: CustomResourceOptions);
@overload
def PeeringService(resource_name: str,
args: PeeringServiceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PeeringService(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
location: Optional[str] = None,
peering_service_location: Optional[str] = None,
peering_service_name: Optional[str] = None,
peering_service_provider: Optional[str] = None,
provider_backup_peering_location: Optional[str] = None,
provider_primary_peering_location: Optional[str] = None,
sku: Optional[PeeringServiceSkuArgs] = None,
tags: Optional[Mapping[str, str]] = None)
func NewPeeringService(ctx *Context, name string, args PeeringServiceArgs, opts ...ResourceOption) (*PeeringService, error)
public PeeringService(string name, PeeringServiceArgs args, CustomResourceOptions? opts = null)
public PeeringService(String name, PeeringServiceArgs args)
public PeeringService(String name, PeeringServiceArgs args, CustomResourceOptions options)
type: azure-native:peering:PeeringService
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 PeeringServiceArgs
- 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 PeeringServiceArgs
- 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 PeeringServiceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PeeringServiceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PeeringServiceArgs
- 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 peeringServiceResource = new AzureNative.Peering.PeeringService("peeringServiceResource", new()
{
ResourceGroupName = "string",
Location = "string",
PeeringServiceLocation = "string",
PeeringServiceName = "string",
PeeringServiceProvider = "string",
ProviderBackupPeeringLocation = "string",
ProviderPrimaryPeeringLocation = "string",
Sku = new AzureNative.Peering.Inputs.PeeringServiceSkuArgs
{
Name = "string",
},
Tags =
{
{ "string", "string" },
},
});
example, err := peering.NewPeeringService(ctx, "peeringServiceResource", &peering.PeeringServiceArgs{
ResourceGroupName: pulumi.String("string"),
Location: pulumi.String("string"),
PeeringServiceLocation: pulumi.String("string"),
PeeringServiceName: pulumi.String("string"),
PeeringServiceProvider: pulumi.String("string"),
ProviderBackupPeeringLocation: pulumi.String("string"),
ProviderPrimaryPeeringLocation: pulumi.String("string"),
Sku: &peering.PeeringServiceSkuArgs{
Name: pulumi.String("string"),
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var peeringServiceResource = new PeeringService("peeringServiceResource", PeeringServiceArgs.builder()
.resourceGroupName("string")
.location("string")
.peeringServiceLocation("string")
.peeringServiceName("string")
.peeringServiceProvider("string")
.providerBackupPeeringLocation("string")
.providerPrimaryPeeringLocation("string")
.sku(PeeringServiceSkuArgs.builder()
.name("string")
.build())
.tags(Map.of("string", "string"))
.build());
peering_service_resource = azure_native.peering.PeeringService("peeringServiceResource",
resource_group_name="string",
location="string",
peering_service_location="string",
peering_service_name="string",
peering_service_provider="string",
provider_backup_peering_location="string",
provider_primary_peering_location="string",
sku=azure_native.peering.PeeringServiceSkuArgs(
name="string",
),
tags={
"string": "string",
})
const peeringServiceResource = new azure_native.peering.PeeringService("peeringServiceResource", {
resourceGroupName: "string",
location: "string",
peeringServiceLocation: "string",
peeringServiceName: "string",
peeringServiceProvider: "string",
providerBackupPeeringLocation: "string",
providerPrimaryPeeringLocation: "string",
sku: {
name: "string",
},
tags: {
string: "string",
},
});
type: azure-native:peering:PeeringService
properties:
location: string
peeringServiceLocation: string
peeringServiceName: string
peeringServiceProvider: string
providerBackupPeeringLocation: string
providerPrimaryPeeringLocation: string
resourceGroupName: string
sku:
name: string
tags:
string: string
PeeringService Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The PeeringService resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group.
- Location string
- The location of the resource.
- Peering
Service stringLocation - The location (state/province) of the customer.
- Peering
Service stringName - The name of the peering service.
- Peering
Service stringProvider - The name of the service provider.
- Provider
Backup stringPeering Location - The backup peering (Microsoft/service provider) location to be used for customer traffic.
- Provider
Primary stringPeering Location - The primary peering (Microsoft/service provider) location to be used for customer traffic.
- Sku
Pulumi.
Azure Native. Peering. Inputs. Peering Service Sku - The SKU that defines the type of the peering service.
- Dictionary<string, string>
- The resource tags.
- Resource
Group stringName - The name of the resource group.
- Location string
- The location of the resource.
- Peering
Service stringLocation - The location (state/province) of the customer.
- Peering
Service stringName - The name of the peering service.
- Peering
Service stringProvider - The name of the service provider.
- Provider
Backup stringPeering Location - The backup peering (Microsoft/service provider) location to be used for customer traffic.
- Provider
Primary stringPeering Location - The primary peering (Microsoft/service provider) location to be used for customer traffic.
- Sku
Peering
Service Sku Args - The SKU that defines the type of the peering service.
- map[string]string
- The resource tags.
- resource
Group StringName - The name of the resource group.
- location String
- The location of the resource.
- peering
Service StringLocation - The location (state/province) of the customer.
- peering
Service StringName - The name of the peering service.
- peering
Service StringProvider - The name of the service provider.
- provider
Backup StringPeering Location - The backup peering (Microsoft/service provider) location to be used for customer traffic.
- provider
Primary StringPeering Location - The primary peering (Microsoft/service provider) location to be used for customer traffic.
- sku
Peering
Service Sku - The SKU that defines the type of the peering service.
- Map<String,String>
- The resource tags.
- resource
Group stringName - The name of the resource group.
- location string
- The location of the resource.
- peering
Service stringLocation - The location (state/province) of the customer.
- peering
Service stringName - The name of the peering service.
- peering
Service stringProvider - The name of the service provider.
- provider
Backup stringPeering Location - The backup peering (Microsoft/service provider) location to be used for customer traffic.
- provider
Primary stringPeering Location - The primary peering (Microsoft/service provider) location to be used for customer traffic.
- sku
Peering
Service Sku - The SKU that defines the type of the peering service.
- {[key: string]: string}
- The resource tags.
- resource_
group_ strname - The name of the resource group.
- location str
- The location of the resource.
- peering_
service_ strlocation - The location (state/province) of the customer.
- peering_
service_ strname - The name of the peering service.
- peering_
service_ strprovider - The name of the service provider.
- provider_
backup_ strpeering_ location - The backup peering (Microsoft/service provider) location to be used for customer traffic.
- provider_
primary_ strpeering_ location - The primary peering (Microsoft/service provider) location to be used for customer traffic.
- sku
Peering
Service Sku Args - The SKU that defines the type of the peering service.
- Mapping[str, str]
- The resource tags.
- resource
Group StringName - The name of the resource group.
- location String
- The location of the resource.
- peering
Service StringLocation - The location (state/province) of the customer.
- peering
Service StringName - The name of the peering service.
- peering
Service StringProvider - The name of the service provider.
- provider
Backup StringPeering Location - The backup peering (Microsoft/service provider) location to be used for customer traffic.
- provider
Primary StringPeering Location - The primary peering (Microsoft/service provider) location to be used for customer traffic.
- sku Property Map
- The SKU that defines the type of the peering service.
- Map<String>
- The resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the PeeringService resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource.
- Provisioning
State string - The provisioning state of the resource.
- Type string
- The type of the resource.
- Log
Analytics Pulumi.Workspace Properties Azure Native. Peering. Outputs. Log Analytics Workspace Properties Response - The Log Analytics Workspace Properties
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource.
- Provisioning
State string - The provisioning state of the resource.
- Type string
- The type of the resource.
- Log
Analytics LogWorkspace Properties Analytics Workspace Properties Response - The Log Analytics Workspace Properties
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource.
- provisioning
State String - The provisioning state of the resource.
- type String
- The type of the resource.
- log
Analytics LogWorkspace Properties Analytics Workspace Properties Response - The Log Analytics Workspace Properties
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource.
- provisioning
State string - The provisioning state of the resource.
- type string
- The type of the resource.
- log
Analytics LogWorkspace Properties Analytics Workspace Properties Response - The Log Analytics Workspace Properties
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource.
- provisioning_
state str - The provisioning state of the resource.
- type str
- The type of the resource.
- log_
analytics_ Logworkspace_ properties Analytics Workspace Properties Response - The Log Analytics Workspace Properties
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource.
- provisioning
State String - The provisioning state of the resource.
- type String
- The type of the resource.
- log
Analytics Property MapWorkspace Properties - The Log Analytics Workspace Properties
Supporting Types
LogAnalyticsWorkspacePropertiesResponse, LogAnalyticsWorkspacePropertiesResponseArgs
- Connected
Agents List<string> - The list of connected agents.
- Key string
- The Workspace Key.
- Workspace
ID string - The Workspace ID.
- Connected
Agents []string - The list of connected agents.
- Key string
- The Workspace Key.
- Workspace
ID string - The Workspace ID.
- connected
Agents List<String> - The list of connected agents.
- key String
- The Workspace Key.
- workspace
ID String - The Workspace ID.
- connected
Agents string[] - The list of connected agents.
- key string
- The Workspace Key.
- workspace
ID string - The Workspace ID.
- connected_
agents Sequence[str] - The list of connected agents.
- key str
- The Workspace Key.
- workspace_
id str - The Workspace ID.
- connected
Agents List<String> - The list of connected agents.
- key String
- The Workspace Key.
- workspace
ID String - The Workspace ID.
PeeringServiceSku, PeeringServiceSkuArgs
- Name string
- The name of the peering service SKU.
- Name string
- The name of the peering service SKU.
- name String
- The name of the peering service SKU.
- name string
- The name of the peering service SKU.
- name str
- The name of the peering service SKU.
- name String
- The name of the peering service SKU.
PeeringServiceSkuResponse, PeeringServiceSkuResponseArgs
- Name string
- The name of the peering service SKU.
- Name string
- The name of the peering service SKU.
- name String
- The name of the peering service SKU.
- name string
- The name of the peering service SKU.
- name str
- The name of the peering service SKU.
- name String
- The name of the peering service SKU.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:peering:PeeringService peeringServiceName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peeringServices/{peeringServiceName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0