ibm.LbVpxHa
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
// Create a primary NetScaler VPX
const testPri = new ibm.LbVpx("testPri", {
datacenter: "lon02",
speed: 10,
version: "10.5",
plan: "Standard",
ipCount: 2,
});
// Create a secondary NetScaler VPX in the same subnets
const testSec = new ibm.LbVpx("testSec", {
datacenter: "lon02",
speed: 10,
version: "10.5",
plan: "Standard",
ipCount: 2,
publicVlanId: testPri.publicVlanId,
privateVlanId: testPri.privateVlanId,
publicSubnet: testPri.publicSubnet,
privateSubnet: testPri.privateSubnet,
});
// Configure high availability with the primary and secondary NetScaler VPXs
const testHa = new ibm.LbVpxHa("testHa", {
primaryId: testPri.lbVpxId,
secondaryId: testSec.lbVpxId,
staySecondary: false,
});
import pulumi
import pulumi_ibm as ibm
# Create a primary NetScaler VPX
test_pri = ibm.LbVpx("testPri",
datacenter="lon02",
speed=10,
version="10.5",
plan="Standard",
ip_count=2)
# Create a secondary NetScaler VPX in the same subnets
test_sec = ibm.LbVpx("testSec",
datacenter="lon02",
speed=10,
version="10.5",
plan="Standard",
ip_count=2,
public_vlan_id=test_pri.public_vlan_id,
private_vlan_id=test_pri.private_vlan_id,
public_subnet=test_pri.public_subnet,
private_subnet=test_pri.private_subnet)
# Configure high availability with the primary and secondary NetScaler VPXs
test_ha = ibm.LbVpxHa("testHa",
primary_id=test_pri.lb_vpx_id,
secondary_id=test_sec.lb_vpx_id,
stay_secondary=False)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Create a primary NetScaler VPX
testPri, err := ibm.NewLbVpx(ctx, "testPri", &ibm.LbVpxArgs{
Datacenter: pulumi.String("lon02"),
Speed: pulumi.Float64(10),
Version: pulumi.String("10.5"),
Plan: pulumi.String("Standard"),
IpCount: pulumi.Float64(2),
})
if err != nil {
return err
}
// Create a secondary NetScaler VPX in the same subnets
testSec, err := ibm.NewLbVpx(ctx, "testSec", &ibm.LbVpxArgs{
Datacenter: pulumi.String("lon02"),
Speed: pulumi.Float64(10),
Version: pulumi.String("10.5"),
Plan: pulumi.String("Standard"),
IpCount: pulumi.Float64(2),
PublicVlanId: testPri.PublicVlanId,
PrivateVlanId: testPri.PrivateVlanId,
PublicSubnet: testPri.PublicSubnet,
PrivateSubnet: testPri.PrivateSubnet,
})
if err != nil {
return err
}
// Configure high availability with the primary and secondary NetScaler VPXs
_, err = ibm.NewLbVpxHa(ctx, "testHa", &ibm.LbVpxHaArgs{
PrimaryId: testPri.LbVpxId,
SecondaryId: testSec.LbVpxId,
StaySecondary: pulumi.Bool(false),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
// Create a primary NetScaler VPX
var testPri = new Ibm.LbVpx("testPri", new()
{
Datacenter = "lon02",
Speed = 10,
Version = "10.5",
Plan = "Standard",
IpCount = 2,
});
// Create a secondary NetScaler VPX in the same subnets
var testSec = new Ibm.LbVpx("testSec", new()
{
Datacenter = "lon02",
Speed = 10,
Version = "10.5",
Plan = "Standard",
IpCount = 2,
PublicVlanId = testPri.PublicVlanId,
PrivateVlanId = testPri.PrivateVlanId,
PublicSubnet = testPri.PublicSubnet,
PrivateSubnet = testPri.PrivateSubnet,
});
// Configure high availability with the primary and secondary NetScaler VPXs
var testHa = new Ibm.LbVpxHa("testHa", new()
{
PrimaryId = testPri.LbVpxId,
SecondaryId = testSec.LbVpxId,
StaySecondary = false,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.LbVpx;
import com.pulumi.ibm.LbVpxArgs;
import com.pulumi.ibm.LbVpxHa;
import com.pulumi.ibm.LbVpxHaArgs;
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) {
// Create a primary NetScaler VPX
var testPri = new LbVpx("testPri", LbVpxArgs.builder()
.datacenter("lon02")
.speed(10)
.version("10.5")
.plan("Standard")
.ipCount(2)
.build());
// Create a secondary NetScaler VPX in the same subnets
var testSec = new LbVpx("testSec", LbVpxArgs.builder()
.datacenter("lon02")
.speed(10)
.version("10.5")
.plan("Standard")
.ipCount(2)
.publicVlanId(testPri.publicVlanId())
.privateVlanId(testPri.privateVlanId())
.publicSubnet(testPri.publicSubnet())
.privateSubnet(testPri.privateSubnet())
.build());
// Configure high availability with the primary and secondary NetScaler VPXs
var testHa = new LbVpxHa("testHa", LbVpxHaArgs.builder()
.primaryId(testPri.lbVpxId())
.secondaryId(testSec.lbVpxId())
.staySecondary(false)
.build());
}
}
resources:
# Create a primary NetScaler VPX
testPri:
type: ibm:LbVpx
properties:
datacenter: lon02
speed: 10
version: '10.5'
plan: Standard
ipCount: 2
# Create a secondary NetScaler VPX in the same subnets
testSec:
type: ibm:LbVpx
properties:
datacenter: lon02
speed: 10
version: '10.5'
plan: Standard
ipCount: 2
publicVlanId: ${testPri.publicVlanId}
privateVlanId: ${testPri.privateVlanId}
publicSubnet: ${testPri.publicSubnet}
privateSubnet: ${testPri.privateSubnet}
# Configure high availability with the primary and secondary NetScaler VPXs
testHa:
type: ibm:LbVpxHa
properties:
primaryId: ${testPri.lbVpxId}
secondaryId: ${testSec.lbVpxId}
staySecondary: false
Argument reference
Review the argument references that you can specify for your resource.
primary_id
- (Required, Forces new resource, String)The ID of the primary Netscaler VPX.secondary_id
- (Required, Forces new resource, String)The ID of the secondary Netscaler VPX.stay_secondary
- (Optional, Bool) Specifies whether the secondary Netscaler VPX will take over the service. Set this argument to true to prevent the secondary Netscaler VPX from taking over the service even if the primary Netscaler VPX fails. For more information, see the Citrix Netscaler documentation and the Citrix support documentation. The default value is false.tags
- (Optional, Array of Strings) Tags associated with the high availability Netscaler VPX pair instance. Note*Tags
are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
Create LbVpxHa Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LbVpxHa(name: string, args: LbVpxHaArgs, opts?: CustomResourceOptions);
@overload
def LbVpxHa(resource_name: str,
args: LbVpxHaArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LbVpxHa(resource_name: str,
opts: Optional[ResourceOptions] = None,
primary_id: Optional[float] = None,
secondary_id: Optional[float] = None,
lb_vpx_ha_id: Optional[str] = None,
stay_secondary: Optional[bool] = None,
tags: Optional[Sequence[str]] = None)
func NewLbVpxHa(ctx *Context, name string, args LbVpxHaArgs, opts ...ResourceOption) (*LbVpxHa, error)
public LbVpxHa(string name, LbVpxHaArgs args, CustomResourceOptions? opts = null)
public LbVpxHa(String name, LbVpxHaArgs args)
public LbVpxHa(String name, LbVpxHaArgs args, CustomResourceOptions options)
type: ibm:LbVpxHa
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 LbVpxHaArgs
- 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 LbVpxHaArgs
- 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 LbVpxHaArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LbVpxHaArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LbVpxHaArgs
- 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 lbVpxHaResource = new Ibm.LbVpxHa("lbVpxHaResource", new()
{
PrimaryId = 0,
SecondaryId = 0,
LbVpxHaId = "string",
StaySecondary = false,
Tags = new[]
{
"string",
},
});
example, err := ibm.NewLbVpxHa(ctx, "lbVpxHaResource", &ibm.LbVpxHaArgs{
PrimaryId: pulumi.Float64(0),
SecondaryId: pulumi.Float64(0),
LbVpxHaId: pulumi.String("string"),
StaySecondary: pulumi.Bool(false),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
})
var lbVpxHaResource = new LbVpxHa("lbVpxHaResource", LbVpxHaArgs.builder()
.primaryId(0)
.secondaryId(0)
.lbVpxHaId("string")
.staySecondary(false)
.tags("string")
.build());
lb_vpx_ha_resource = ibm.LbVpxHa("lbVpxHaResource",
primary_id=0,
secondary_id=0,
lb_vpx_ha_id="string",
stay_secondary=False,
tags=["string"])
const lbVpxHaResource = new ibm.LbVpxHa("lbVpxHaResource", {
primaryId: 0,
secondaryId: 0,
lbVpxHaId: "string",
staySecondary: false,
tags: ["string"],
});
type: ibm:LbVpxHa
properties:
lbVpxHaId: string
primaryId: 0
secondaryId: 0
staySecondary: false
tags:
- string
LbVpxHa Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The LbVpxHa resource accepts the following input properties:
- Primary
Id double - primary ID
- Secondary
Id double - Secondary ID
- Lb
Vpx stringHa Id - (String) The unique identifier of the high availability Netscaler VPX pair.
- Stay
Secondary bool - Boolean value for stay secondary
- List<string>
- Tags set for the resource
- Primary
Id float64 - primary ID
- Secondary
Id float64 - Secondary ID
- Lb
Vpx stringHa Id - (String) The unique identifier of the high availability Netscaler VPX pair.
- Stay
Secondary bool - Boolean value for stay secondary
- []string
- Tags set for the resource
- primary
Id Double - primary ID
- secondary
Id Double - Secondary ID
- lb
Vpx StringHa Id - (String) The unique identifier of the high availability Netscaler VPX pair.
- stay
Secondary Boolean - Boolean value for stay secondary
- List<String>
- Tags set for the resource
- primary
Id number - primary ID
- secondary
Id number - Secondary ID
- lb
Vpx stringHa Id - (String) The unique identifier of the high availability Netscaler VPX pair.
- stay
Secondary boolean - Boolean value for stay secondary
- string[]
- Tags set for the resource
- primary_
id float - primary ID
- secondary_
id float - Secondary ID
- lb_
vpx_ strha_ id - (String) The unique identifier of the high availability Netscaler VPX pair.
- stay_
secondary bool - Boolean value for stay secondary
- Sequence[str]
- Tags set for the resource
- primary
Id Number - primary ID
- secondary
Id Number - Secondary ID
- lb
Vpx StringHa Id - (String) The unique identifier of the high availability Netscaler VPX pair.
- stay
Secondary Boolean - Boolean value for stay secondary
- List<String>
- Tags set for the resource
Outputs
All input properties are implicitly available as output properties. Additionally, the LbVpxHa resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing LbVpxHa Resource
Get an existing LbVpxHa resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: LbVpxHaState, opts?: CustomResourceOptions): LbVpxHa
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
lb_vpx_ha_id: Optional[str] = None,
primary_id: Optional[float] = None,
secondary_id: Optional[float] = None,
stay_secondary: Optional[bool] = None,
tags: Optional[Sequence[str]] = None) -> LbVpxHa
func GetLbVpxHa(ctx *Context, name string, id IDInput, state *LbVpxHaState, opts ...ResourceOption) (*LbVpxHa, error)
public static LbVpxHa Get(string name, Input<string> id, LbVpxHaState? state, CustomResourceOptions? opts = null)
public static LbVpxHa get(String name, Output<String> id, LbVpxHaState state, CustomResourceOptions options)
resources: _: type: ibm:LbVpxHa get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Lb
Vpx stringHa Id - (String) The unique identifier of the high availability Netscaler VPX pair.
- Primary
Id double - primary ID
- Secondary
Id double - Secondary ID
- Stay
Secondary bool - Boolean value for stay secondary
- List<string>
- Tags set for the resource
- Lb
Vpx stringHa Id - (String) The unique identifier of the high availability Netscaler VPX pair.
- Primary
Id float64 - primary ID
- Secondary
Id float64 - Secondary ID
- Stay
Secondary bool - Boolean value for stay secondary
- []string
- Tags set for the resource
- lb
Vpx StringHa Id - (String) The unique identifier of the high availability Netscaler VPX pair.
- primary
Id Double - primary ID
- secondary
Id Double - Secondary ID
- stay
Secondary Boolean - Boolean value for stay secondary
- List<String>
- Tags set for the resource
- lb
Vpx stringHa Id - (String) The unique identifier of the high availability Netscaler VPX pair.
- primary
Id number - primary ID
- secondary
Id number - Secondary ID
- stay
Secondary boolean - Boolean value for stay secondary
- string[]
- Tags set for the resource
- lb_
vpx_ strha_ id - (String) The unique identifier of the high availability Netscaler VPX pair.
- primary_
id float - primary ID
- secondary_
id float - Secondary ID
- stay_
secondary bool - Boolean value for stay secondary
- Sequence[str]
- Tags set for the resource
- lb
Vpx StringHa Id - (String) The unique identifier of the high availability Netscaler VPX pair.
- primary
Id Number - primary ID
- secondary
Id Number - Secondary ID
- stay
Secondary Boolean - Boolean value for stay secondary
- List<String>
- Tags set for the resource
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.