Byo Ip Prefix
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleByoIpPrefix = new cloudflare.ByoIpPrefix("example_byo_ip_prefix", {
accountId: "258def64c72dae45f3e4c8516e2111f2",
asn: 209242,
cidr: "192.0.2.0/24",
loaDocumentId: "d933b1530bc56c9953cf8ce166da8004",
});
Content copied to clipboard
import pulumi
import pulumi_cloudflare as cloudflare
example_byo_ip_prefix = cloudflare.ByoIpPrefix("example_byo_ip_prefix",
account_id="258def64c72dae45f3e4c8516e2111f2",
asn=209242,
cidr="192.0.2.0/24",
loa_document_id="d933b1530bc56c9953cf8ce166da8004")
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleByoIpPrefix = new Cloudflare.ByoIpPrefix("example_byo_ip_prefix", new()
{
AccountId = "258def64c72dae45f3e4c8516e2111f2",
Asn = 209242,
Cidr = "192.0.2.0/24",
LoaDocumentId = "d933b1530bc56c9953cf8ce166da8004",
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.NewByoIpPrefix(ctx, "example_byo_ip_prefix", &cloudflare.ByoIpPrefixArgs{
AccountId: pulumi.String("258def64c72dae45f3e4c8516e2111f2"),
Asn: pulumi.Int(209242),
Cidr: pulumi.String("192.0.2.0/24"),
LoaDocumentId: pulumi.String("d933b1530bc56c9953cf8ce166da8004"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.ByoIpPrefix;
import com.pulumi.cloudflare.ByoIpPrefixArgs;
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 exampleByoIpPrefix = new ByoIpPrefix("exampleByoIpPrefix", ByoIpPrefixArgs.builder()
.accountId("258def64c72dae45f3e4c8516e2111f2")
.asn(209242)
.cidr("192.0.2.0/24")
.loaDocumentId("d933b1530bc56c9953cf8ce166da8004")
.build());
}
}
Content copied to clipboard
resources:
exampleByoIpPrefix:
type: cloudflare:ByoIpPrefix
name: example_byo_ip_prefix
properties:
accountId: 258def64c72dae45f3e4c8516e2111f2
asn: 209242
cidr: 192.0.2.0/24
loaDocumentId: d933b1530bc56c9953cf8ce166da8004
Content copied to clipboard
Import
$ pulumi import cloudflare:index/byoIpPrefix:ByoIpPrefix example '<account_id>/<prefix_id>'
Content copied to clipboard
Properties
Link copied to clipboard
Prefix advertisement status to the Internet. This field is only not 'null' if on demand is enabled.
Link copied to clipboard
Last time the advertisement status was changed. This field is only not 'null' if on demand is enabled.
Link copied to clipboard
Description of the prefix.
Link copied to clipboard
Identifier for the uploaded LOA document.
Link copied to clipboard
Link copied to clipboard
Whether advertisement of the prefix to the Internet may be dynamically enabled or disabled.
Link copied to clipboard
Whether advertisement status of the prefix is locked, meaning it cannot be changed.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard