azure-native.peering.RegisteredPrefix
Explore with Pulumi AI
The customer’s prefix that is registered by the peering service provider. API Version: 2021-01-01.
Example Usage
Create or update a registered prefix for the peering
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var registeredPrefix = new AzureNative.Peering.RegisteredPrefix("registeredPrefix", new()
{
PeeringName = "peeringName",
Prefix = "10.22.20.0/24",
RegisteredPrefixName = "registeredPrefixName",
ResourceGroupName = "rgName",
});
});
package main
import (
peering "github.com/pulumi/pulumi-azure-native-sdk/peering"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := peering.NewRegisteredPrefix(ctx, "registeredPrefix", &peering.RegisteredPrefixArgs{
PeeringName: pulumi.String("peeringName"),
Prefix: pulumi.String("10.22.20.0/24"),
RegisteredPrefixName: pulumi.String("registeredPrefixName"),
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.RegisteredPrefix;
import com.pulumi.azurenative.peering.RegisteredPrefixArgs;
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 registeredPrefix = new RegisteredPrefix("registeredPrefix", RegisteredPrefixArgs.builder()
.peeringName("peeringName")
.prefix("10.22.20.0/24")
.registeredPrefixName("registeredPrefixName")
.resourceGroupName("rgName")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
registered_prefix = azure_native.peering.RegisteredPrefix("registeredPrefix",
peering_name="peeringName",
prefix="10.22.20.0/24",
registered_prefix_name="registeredPrefixName",
resource_group_name="rgName")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const registeredPrefix = new azure_native.peering.RegisteredPrefix("registeredPrefix", {
peeringName: "peeringName",
prefix: "10.22.20.0/24",
registeredPrefixName: "registeredPrefixName",
resourceGroupName: "rgName",
});
resources:
registeredPrefix:
type: azure-native:peering:RegisteredPrefix
properties:
peeringName: peeringName
prefix: 10.22.20.0/24
registeredPrefixName: registeredPrefixName
resourceGroupName: rgName
Create RegisteredPrefix Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RegisteredPrefix(name: string, args: RegisteredPrefixArgs, opts?: CustomResourceOptions);
@overload
def RegisteredPrefix(resource_name: str,
args: RegisteredPrefixArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RegisteredPrefix(resource_name: str,
opts: Optional[ResourceOptions] = None,
peering_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
prefix: Optional[str] = None,
registered_prefix_name: Optional[str] = None)
func NewRegisteredPrefix(ctx *Context, name string, args RegisteredPrefixArgs, opts ...ResourceOption) (*RegisteredPrefix, error)
public RegisteredPrefix(string name, RegisteredPrefixArgs args, CustomResourceOptions? opts = null)
public RegisteredPrefix(String name, RegisteredPrefixArgs args)
public RegisteredPrefix(String name, RegisteredPrefixArgs args, CustomResourceOptions options)
type: azure-native:peering:RegisteredPrefix
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 RegisteredPrefixArgs
- 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 RegisteredPrefixArgs
- 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 RegisteredPrefixArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RegisteredPrefixArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RegisteredPrefixArgs
- 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 registeredPrefixResource = new AzureNative.Peering.RegisteredPrefix("registeredPrefixResource", new()
{
PeeringName = "string",
ResourceGroupName = "string",
Prefix = "string",
RegisteredPrefixName = "string",
});
example, err := peering.NewRegisteredPrefix(ctx, "registeredPrefixResource", &peering.RegisteredPrefixArgs{
PeeringName: "string",
ResourceGroupName: "string",
Prefix: "string",
RegisteredPrefixName: "string",
})
var registeredPrefixResource = new RegisteredPrefix("registeredPrefixResource", RegisteredPrefixArgs.builder()
.peeringName("string")
.resourceGroupName("string")
.prefix("string")
.registeredPrefixName("string")
.build());
registered_prefix_resource = azure_native.peering.RegisteredPrefix("registeredPrefixResource",
peering_name=string,
resource_group_name=string,
prefix=string,
registered_prefix_name=string)
const registeredPrefixResource = new azure_native.peering.RegisteredPrefix("registeredPrefixResource", {
peeringName: "string",
resourceGroupName: "string",
prefix: "string",
registeredPrefixName: "string",
});
type: azure-native:peering:RegisteredPrefix
properties:
peeringName: string
prefix: string
registeredPrefixName: string
resourceGroupName: string
RegisteredPrefix 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 RegisteredPrefix resource accepts the following input properties:
- Peering
Name string - The name of the peering.
- Resource
Group stringName - The name of the resource group.
- Prefix string
- The customer's prefix from which traffic originates.
- Registered
Prefix stringName - The name of the registered prefix.
- Peering
Name string - The name of the peering.
- Resource
Group stringName - The name of the resource group.
- Prefix string
- The customer's prefix from which traffic originates.
- Registered
Prefix stringName - The name of the registered prefix.
- peering
Name String - The name of the peering.
- resource
Group StringName - The name of the resource group.
- prefix String
- The customer's prefix from which traffic originates.
- registered
Prefix StringName - The name of the registered prefix.
- peering
Name string - The name of the peering.
- resource
Group stringName - The name of the resource group.
- prefix string
- The customer's prefix from which traffic originates.
- registered
Prefix stringName - The name of the registered prefix.
- peering_
name str - The name of the peering.
- resource_
group_ strname - The name of the resource group.
- prefix str
- The customer's prefix from which traffic originates.
- registered_
prefix_ strname - The name of the registered prefix.
- peering
Name String - The name of the peering.
- resource
Group StringName - The name of the resource group.
- prefix String
- The customer's prefix from which traffic originates.
- registered
Prefix StringName - The name of the registered prefix.
Outputs
All input properties are implicitly available as output properties. Additionally, the RegisteredPrefix resource produces the following output properties:
- Error
Message string - The error message associated with the validation state, if any.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource.
- Peering
Service stringPrefix Key - The peering service prefix key that is to be shared with the customer.
- Prefix
Validation stringState - The prefix validation state.
- Provisioning
State string - The provisioning state of the resource.
- Type string
- The type of the resource.
- Error
Message string - The error message associated with the validation state, if any.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource.
- Peering
Service stringPrefix Key - The peering service prefix key that is to be shared with the customer.
- Prefix
Validation stringState - The prefix validation state.
- Provisioning
State string - The provisioning state of the resource.
- Type string
- The type of the resource.
- error
Message String - The error message associated with the validation state, if any.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource.
- peering
Service StringPrefix Key - The peering service prefix key that is to be shared with the customer.
- prefix
Validation StringState - The prefix validation state.
- provisioning
State String - The provisioning state of the resource.
- type String
- The type of the resource.
- error
Message string - The error message associated with the validation state, if any.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource.
- peering
Service stringPrefix Key - The peering service prefix key that is to be shared with the customer.
- prefix
Validation stringState - The prefix validation state.
- provisioning
State string - The provisioning state of the resource.
- type string
- The type of the resource.
- error_
message str - The error message associated with the validation state, if any.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource.
- peering_
service_ strprefix_ key - The peering service prefix key that is to be shared with the customer.
- prefix_
validation_ strstate - The prefix validation state.
- provisioning_
state str - The provisioning state of the resource.
- type str
- The type of the resource.
- error
Message String - The error message associated with the validation state, if any.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource.
- peering
Service StringPrefix Key - The peering service prefix key that is to be shared with the customer.
- prefix
Validation StringState - The prefix validation state.
- provisioning
State String - The provisioning state of the resource.
- type String
- The type of the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:peering:RegisteredPrefix registeredPrefixName /subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peerings/peeringName/registeredPrefixes/registeredPrefixName
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0