Repository navigation
Publish Package Metadata edgecenter@0.18.2 - #13346
Merged
Merged
Conversation
pulumi-bot
enabled auto-merge (squash)
November 3, 2026 23:35
Contributor
✅
|
| check | command | |
|---|---|---|
| docs generate | ✅ | resourcedocsgen metadata from-urls |
| publisher listed | ✅ | edge-center is a key in publisher-names.json |
Owner edge-center
Doc-lint ✅ clean. No relative images or raw HTML.
Provider docs (source as published):
_index.md · 1450 lines · open full file
---
# WARNING: this file was fetched from https://djoiyj6oj2oxz.cloudfront.net/docs/registry.opentofu.org/edge-center/edgecenter/0.18.2/index.md
# Do not edit by hand unless you're certain you know what you are doing!
# *** WARNING: This file was auto-generated. Do not edit by hand unless you're certain you know what you are doing! ***
title: Edgecenter Provider
meta_desc: Provides an overview on how to configure the Pulumi Edgecenter provider.
layout: package
---
## Generate Provider
The Edgecenter provider must be installed as a Local Package by following the [instructions for Any Terraform Provider](https://www.pulumi.com/registry/packages/terraform-provider/):
```bash
pulumi package add terraform-provider edge-center/edgecenter
```
## Example Usage
{{< chooser language "typescript,python,go,csharp,java,yaml" >}}
{{% choosable language typescript %}}
```yaml
# Pulumi.yaml provider configuration file
name: configuration-example
runtime: nodejs
config:
edgecenter:permanentApiToken:
value: 251$d3361.............1b35f26d8
```
```typescript
import * as pulumi from "@pulumi/pulumi";
import * as edgecenter from "@pulumi/edgecenter";
const kp = new edgecenter.Keypair("kp", {
projectId: 1,
publicKey: "your oub key",
sshkeyName: "testkey",
});
const network = new edgecenter.Network("network", {
name: "network_example",
type: "vxlan",
regionId: 1,
projectId: 1,
});
const subnet = new edgecenter.Subnet("subnet", {
name: "subnet_example",
cidr: "192.168.10.0/24",
networkId: network.networkId,
dnsNameservers: [
"8.8.4.4",
"1.1.1.1",
],
hostRoutes: [{
destination: "10.0.3.0/24",
nexthop: "10.0.0.13",
}],
gatewayIp: "192.168.10.1",
regionId: 1,
projectId: 1,
});
const subnet2 = new edgecenter.Subnet("subnet2", {
name: "subnet2_example",
cidr: "192.168.20.0/24",
networkId: network.networkId,
dnsNameservers: [
"8.8.4.4",
"1.1.1.1",
],
hostRoutes: [{
destination: "10.0.3.0/24",
nexthop: "10.0.0.13",
}],
gatewayIp: "192.168.20.1",
regionId: 1,
projectId: 1,
});
const firstVolume = new edgecenter.Volume("first_volume", {
name: "boot volume",
typeName: "ssd_hiiops",
size: 6,
imageId: "f4ce3d30-e29c-4cfd-811f-46f383b6081f",
regionId: 1,
projectId: 1,
});
const secondVolume = new edgecenter.Volume("second_volume", {
name: "second volume",
typeName: "ssd_hiiops",
imageId: "f4ce3d30-e29c-4cfd-811f-46f383b6081f",
size: 6,
regionId: 1,
projectId: 1,
});
const thirdVolume = new edgecenter.Volume("third_volume", {
name: "third volume",
typeName: "ssd_hiiops",
size: 6,
regionId: 1,
projectId: 1,
});
const instance = new edgecenter.Instance("instance", {
flavorId: "g1-standard-2-4",
name: "test",
keypairName: kp.sshkeyName,
volumes: [{
source: "existing-volume",
volumeId: firstVolume.volumeId,
bootIndex: 0,
}],
interfaces: [
{
type: "subnet",
networkId: network.networkId,
subnetId: subnet.subnetId,
},
{
type: "subnet",
networkId: network.networkId,
subnetId: subnet2.subnetId,
},
],
securityGroups: [{
id: "66988147-f1b9-43b2-aaef-dee6d009b5b7",
name: "default",
}],
metadatas: [{
key: "some_key",
value: "some_data",
}],
configurations: [{
key: "some_key",
value: "some_data",
}],
regionId: 1,
projectId: 1,
});
const lb = new edgecenter.Loadbalancer("lb", {
projectId: 1,
regionId: 1,
name: "test1",
flavor: "lb1-1-2",
listener: {
name: "test",
protocol: "HTTP",
protocolPort: 80,
},
});
const pl = new edgecenter.Lbpool("pl", {
projectId: 1,
regionId: 1,
name: "test_pool1",
protocol: "HTTP",
lbAlgorithm: "LEAST_CONNECTIONS",
loadbalancerId: lb.loadbalancerId,
listenerId: lb.listener.apply(listener => listener.id),
healthMonitor: {
type: "PING",
delay: 60,
maxRetries: 5,
timeout: 10,
},
sessionPersistence: {
type: "APP_COOKIE",
cookieName: "test_new_cookie",
},
});
const lbm = new edgecenter.Lbmember("lbm", {
projectId: 1,
regionId: 1,
poolId: pl.lbpoolId,
instanceId: instance.instanceId,
address: instance.interfaces.apply(interfaces => interfaces[0].ipAddress),
protocolPort: 8081,
weight: 5,
});
const instance2 = new edgecenter.Instance("instance2", {
flavorId: "g1-standard-2-4",
name: "test2",
keypairName: kp.sshkeyName,
volumes: [
{
source: "existing-volume",
volumeId: secondVolume.volumeId,
bootIndex: 0,
},
{
source: "existing-volume",
volumeId: thirdVolume.volumeId,
bootIndex: 1,
},
],
interfaces: [{
type: "subnet",
networkId: network.networkId,
subnetId: subnet.subnetId,
}],
securityGroups: [{
id: "66988147-f1b9-43b2-aaef-dee6d009b5b7",
name: "default",
}],
metadatas: [{
key: "some_key",
value: "some_data",
}],
configurations: [{
key: "some_key",
value: "some_data",
}],
regionId: 1,
projectId: 1,
});
const lbm2 = new edgecenter.Lbmember("lbm2", {
projectId: 1,
regionId: 1,
poolId: pl.lbpoolId,
instanceId: instance2.instanceId,
address: instance2.interfaces.apply(interfaces => interfaces[0].ipAddress),
protocolPort: 8081,
weight: 5,
});
```
{{% /choosable %}}
{{% choosable language python %}}
```yaml
# Pulumi.yaml provider configuration file
name: configuration-example
runtime: python
config:
edgecenter:permanentApiToken:
value: 251$d3361.............1b35f26d8
```
```python
import pulumi
import pulumi_edgecenter as edgecenter
kp = edgecenter.Keypair("kp",
project_id=1,
public_key="your oub key",
sshkey_name="testkey")
network = edgecenter.Network("network",
name="network_example",
type="vxlan",
region_id=1,
project_id=1)
subnet = edgecenter.Subnet("subnet",
name="subnet_example",
cidr="192.168.10.0/24",
network_id=network.network_id,
dns_nameservers=[
"8.8.4.4",
"1.1.1.1",
],
host_routes=[{
"destination": "10.0.3.0/24",
"nexthop": "10.0.0.13",
}],
gateway_ip="192.168.10.1",
region_id=1,
project_id=1)
subnet2 = edgecenter.Subnet("subnet2",
name="subnet2_example",
cidr="192.168.20.0/24",
network_id=network.network_id,
dns_nameservers=[
"8.8.4.4",
"1.1.1.1",
],
host_routes=[{
"destination": "10.0.3.0/24",
"nexthop": "10.0.0.13",
}],
gateway_ip="192.168.20.1",
region_id=1,
project_id=1)
first_volume = edgecenter.Volume("first_volume",
name="boot volume",
type_name="ssd_hiiops",
size=6,
image_id="f4ce3d30-e29c-4cfd-811f-46f383b6081f",
region_id=1,
project_id=1)
second_volume = edgecenter.Volume("second_volume",
name="second volume",
type_name="ssd_hiiops",
image_id="f4ce3d30-e29c-4cfd-811f-46f383b6081f",
size=6,
region_id=1,
project_id=1)
third_volume = edgecenter.Volume("third_volume",
name="third volume",
type_name="ssd_hiiops",
size=6,
region_id=1,
project_id=1)
instance = edgecenter.Instance("instance",
flavor_id="g1-standard-2-4",
name="test",
keypair_name=kp.sshkey_name,
volumes=[{
"source": "existing-volume",
"volume_id": first_volume.volume_id,
"boot_index": 0,
}],
interfaces=[
{
"type": "subnet",
"network_id": network.network_id,
"subnet_id": subnet.subnet_id,
},
{
"type": "subnet",
"network_id": network.network_id,
"subnet_id": subnet2.subnet_id,
},
],
security_groups=[{
"id": "66988147-f1b9-43b2-aaef-dee6d009b5b7",
"name": "default",
}],
metadatas=[{
"key": "some_key",
"value": "some_data",
}],
configurations=[{
"key": "some_key",
"value": "some_data",
}],
region_id=1,
project_id=1)
lb = edgecenter.Loadbalancer("lb",
project_id=1,
region_id=1,
name="test1",
flavor="lb1-1-2",
listener={
"name": "test",
"protocol": "HTTP",
"protocol_port": 80,
})
pl = edgecenter.Lbpool("pl",
project_id=1,
region_id=1,
name="test_pool1",
protocol="HTTP",
lb_algorithm="LEAST_CONNECTIONS",
loadbalancer_id=lb.loadbalancer_id,
listener_id=lb.listener.id,
health_monitor={
"type": "PING",
"delay": 60,
"max_retries": 5,
"timeout": 10,
},
session_persistence={
"type": "APP_COOKIE",
"cookie_name": "test_new_cookie",
})
lbm = edgecenter.Lbmember("lbm",
project_id=1,
region_id=1,
pool_id=pl.lbpool_id,
instance_id=instance.instance_id,
address=instance.interfaces[0].ip_address,
protocol_port=8081,
weight=5)
instance2 = edgecenter.Instance("instance2",
flavor_id="g1-standard-2-4",
name="test2",
keypair_name=kp.sshkey_name,
volumes=[
{
"source": "existing-volume",
"volume_id": second_volume.volume_id,
"boot_index": 0,
},
{
"source": "existing-volume",
"volume_id": third_volume.volume_id,
"boot_index": 1,
},
],
interfaces=[{
"type": "subnet",
"network_id": network.network_id,
"subnet_id": subnet.subnet_id,
}],
security_groups=[{
"id": "66988147-f1b9-43b2-aaef-dee6d009b5b7",
"name": "default",
}],
metadatas=[{
"key": "some_key",
"value": "some_data",
}],
configurations=[{
"key": "some_key",
"value": "some_data",
}],
region_id=1,
project_id=1)
… truncated to 400 of 1450 linesChecked PR head dc32918deb3d · full run & command output
Contributor
|
Your site preview for commit 91fc689 is ready! 🎉 http://registry--origin-pr-13346-91fc689f.s3-website.us-west-2.amazonaws.com/registry/ Changed pages: |
Contributor
|
Site previews for this pull request have been removed. ✨ |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.