BgpPeer

class BgpPeer : KotlinCustomResource

A BgpPeer resource for an Arc connected cluster (Microsoft.Kubernetes/connectedClusters) Uses Azure REST API version 2024-03-01. In version 2.x of the Azure Native provider, it used API version 2024-03-01.

Example Usage

BgpPeers_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var bgpPeer = new AzureNative.KubernetesRuntime.BgpPeer("bgpPeer", new()
{
BgpPeerName = "testpeer",
MyAsn = 64500,
PeerAddress = "10.0.0.1",
PeerAsn = 64501,
ResourceUri = "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1",
});
});
package main
import (
kubernetesruntime "github.com/pulumi/pulumi-azure-native-sdk/kubernetesruntime/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := kubernetesruntime.NewBgpPeer(ctx, "bgpPeer", &kubernetesruntime.BgpPeerArgs{
BgpPeerName: pulumi.String("testpeer"),
MyAsn: pulumi.Int(64500),
PeerAddress: pulumi.String("10.0.0.1"),
PeerAsn: pulumi.Int(64501),
ResourceUri: pulumi.String("subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1"),
})
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.kubernetesruntime.BgpPeer;
import com.pulumi.azurenative.kubernetesruntime.BgpPeerArgs;
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 bgpPeer = new BgpPeer("bgpPeer", BgpPeerArgs.builder()
.bgpPeerName("testpeer")
.myAsn(64500)
.peerAddress("10.0.0.1")
.peerAsn(64501)
.resourceUri("subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:kubernetesruntime:BgpPeer testpeer /{resourceUri}/providers/Microsoft.KubernetesRuntime/bgpPeers/{bgpPeerName}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val myAsn: Output<Int>

My ASN

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard
val peerAddress: Output<String>

Peer Address

Link copied to clipboard
val peerAsn: Output<Int>

Peer ASN

Link copied to clipboard

Resource provision state

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>