f5bigip.cm.DeviceGroup
Explore with Pulumi AI
f5bigip.cm.DeviceGroup
A device group is a collection of BIG-IP devices that are configured to securely synchronize their BIG-IP configuration data, and fail over when needed.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as f5bigip from "@pulumi/f5bigip";
const myNewDevicegroup = new f5bigip.cm.DeviceGroup("my_new_devicegroup", {
name: "sanjose_devicegroup",
autoSync: "enabled",
fullLoadOnSync: "true",
type: "sync-only",
devices: [
{
name: "bigip1.cisco.com",
},
{
name: "bigip200.f5.com",
},
],
});
import pulumi
import pulumi_f5bigip as f5bigip
my_new_devicegroup = f5bigip.cm.DeviceGroup("my_new_devicegroup",
name="sanjose_devicegroup",
auto_sync="enabled",
full_load_on_sync="true",
type="sync-only",
devices=[
{
"name": "bigip1.cisco.com",
},
{
"name": "bigip200.f5.com",
},
])
package main
import (
"github.com/pulumi/pulumi-f5bigip/sdk/v3/go/f5bigip/cm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cm.NewDeviceGroup(ctx, "my_new_devicegroup", &cm.DeviceGroupArgs{
Name: pulumi.String("sanjose_devicegroup"),
AutoSync: pulumi.String("enabled"),
FullLoadOnSync: pulumi.String("true"),
Type: pulumi.String("sync-only"),
Devices: cm.DeviceGroupDeviceArray{
&cm.DeviceGroupDeviceArgs{
Name: pulumi.String("bigip1.cisco.com"),
},
&cm.DeviceGroupDeviceArgs{
Name: pulumi.String("bigip200.f5.com"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using F5BigIP = Pulumi.F5BigIP;
return await Deployment.RunAsync(() =>
{
var myNewDevicegroup = new F5BigIP.CM.DeviceGroup("my_new_devicegroup", new()
{
Name = "sanjose_devicegroup",
AutoSync = "enabled",
FullLoadOnSync = "true",
Type = "sync-only",
Devices = new[]
{
new F5BigIP.CM.Inputs.DeviceGroupDeviceArgs
{
Name = "bigip1.cisco.com",
},
new F5BigIP.CM.Inputs.DeviceGroupDeviceArgs
{
Name = "bigip200.f5.com",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.f5bigip.cm.DeviceGroup;
import com.pulumi.f5bigip.cm.DeviceGroupArgs;
import com.pulumi.f5bigip.cm.inputs.DeviceGroupDeviceArgs;
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 myNewDevicegroup = new DeviceGroup("myNewDevicegroup", DeviceGroupArgs.builder()
.name("sanjose_devicegroup")
.autoSync("enabled")
.fullLoadOnSync("true")
.type("sync-only")
.devices(
DeviceGroupDeviceArgs.builder()
.name("bigip1.cisco.com")
.build(),
DeviceGroupDeviceArgs.builder()
.name("bigip200.f5.com")
.build())
.build());
}
}
resources:
myNewDevicegroup:
type: f5bigip:cm:DeviceGroup
name: my_new_devicegroup
properties:
name: sanjose_devicegroup
autoSync: enabled
fullLoadOnSync: 'true'
type: sync-only
devices:
- name: bigip1.cisco.com
- name: bigip200.f5.com
Create DeviceGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DeviceGroup(name: string, args?: DeviceGroupArgs, opts?: CustomResourceOptions);
@overload
def DeviceGroup(resource_name: str,
args: Optional[DeviceGroupArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def DeviceGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
auto_sync: Optional[str] = None,
description: Optional[str] = None,
devices: Optional[Sequence[DeviceGroupDeviceArgs]] = None,
full_load_on_sync: Optional[str] = None,
incremental_config: Optional[int] = None,
name: Optional[str] = None,
network_failover: Optional[str] = None,
partition: Optional[str] = None,
save_on_auto_sync: Optional[str] = None,
type: Optional[str] = None)
func NewDeviceGroup(ctx *Context, name string, args *DeviceGroupArgs, opts ...ResourceOption) (*DeviceGroup, error)
public DeviceGroup(string name, DeviceGroupArgs? args = null, CustomResourceOptions? opts = null)
public DeviceGroup(String name, DeviceGroupArgs args)
public DeviceGroup(String name, DeviceGroupArgs args, CustomResourceOptions options)
type: f5bigip:cm:DeviceGroup
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 DeviceGroupArgs
- 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 DeviceGroupArgs
- 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 DeviceGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DeviceGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DeviceGroupArgs
- 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 deviceGroupResource = new F5BigIP.CM.DeviceGroup("deviceGroupResource", new()
{
AutoSync = "string",
Description = "string",
Devices = new[]
{
new F5BigIP.CM.Inputs.DeviceGroupDeviceArgs
{
Name = "string",
SetSyncLeader = false,
},
},
FullLoadOnSync = "string",
IncrementalConfig = 0,
Name = "string",
NetworkFailover = "string",
Partition = "string",
SaveOnAutoSync = "string",
Type = "string",
});
example, err := cm.NewDeviceGroup(ctx, "deviceGroupResource", &cm.DeviceGroupArgs{
AutoSync: pulumi.String("string"),
Description: pulumi.String("string"),
Devices: cm.DeviceGroupDeviceArray{
&cm.DeviceGroupDeviceArgs{
Name: pulumi.String("string"),
SetSyncLeader: pulumi.Bool(false),
},
},
FullLoadOnSync: pulumi.String("string"),
IncrementalConfig: pulumi.Int(0),
Name: pulumi.String("string"),
NetworkFailover: pulumi.String("string"),
Partition: pulumi.String("string"),
SaveOnAutoSync: pulumi.String("string"),
Type: pulumi.String("string"),
})
var deviceGroupResource = new DeviceGroup("deviceGroupResource", DeviceGroupArgs.builder()
.autoSync("string")
.description("string")
.devices(DeviceGroupDeviceArgs.builder()
.name("string")
.setSyncLeader(false)
.build())
.fullLoadOnSync("string")
.incrementalConfig(0)
.name("string")
.networkFailover("string")
.partition("string")
.saveOnAutoSync("string")
.type("string")
.build());
device_group_resource = f5bigip.cm.DeviceGroup("deviceGroupResource",
auto_sync="string",
description="string",
devices=[{
"name": "string",
"set_sync_leader": False,
}],
full_load_on_sync="string",
incremental_config=0,
name="string",
network_failover="string",
partition="string",
save_on_auto_sync="string",
type="string")
const deviceGroupResource = new f5bigip.cm.DeviceGroup("deviceGroupResource", {
autoSync: "string",
description: "string",
devices: [{
name: "string",
setSyncLeader: false,
}],
fullLoadOnSync: "string",
incrementalConfig: 0,
name: "string",
networkFailover: "string",
partition: "string",
saveOnAutoSync: "string",
type: "string",
});
type: f5bigip:cm:DeviceGroup
properties:
autoSync: string
description: string
devices:
- name: string
setSyncLeader: false
fullLoadOnSync: string
incrementalConfig: 0
name: string
networkFailover: string
partition: string
saveOnAutoSync: string
type: string
DeviceGroup 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 DeviceGroup resource accepts the following input properties:
- Auto
Sync string - Specifies if the device-group will automatically sync configuration data to its members
- Description string
- Description of Device group
- Devices
List<Pulumi.
F5Big IP. CM. Inputs. Device Group Device> - Name of the device to be included in device group, this need to be configured before using devicegroup resource
- Full
Load stringOn Sync - Specifies if the device-group will perform a full-load upon sync
- Incremental
Config int - Specifies the maximum size (in KB) to devote to incremental config sync cached transactions. The default is 1024 KB.
- Name string
- Is the name of the device Group
- Network
Failover string - Specifies if the device-group will use a network connection for failover
- Partition string
- Device administrative partition
- Save
On stringAuto Sync - Specifies whether the configuration should be saved upon auto-sync.
- Type string
- Specifies if the device-group will be used for failover or resource syncing
- Auto
Sync string - Specifies if the device-group will automatically sync configuration data to its members
- Description string
- Description of Device group
- Devices
[]Device
Group Device Args - Name of the device to be included in device group, this need to be configured before using devicegroup resource
- Full
Load stringOn Sync - Specifies if the device-group will perform a full-load upon sync
- Incremental
Config int - Specifies the maximum size (in KB) to devote to incremental config sync cached transactions. The default is 1024 KB.
- Name string
- Is the name of the device Group
- Network
Failover string - Specifies if the device-group will use a network connection for failover
- Partition string
- Device administrative partition
- Save
On stringAuto Sync - Specifies whether the configuration should be saved upon auto-sync.
- Type string
- Specifies if the device-group will be used for failover or resource syncing
- auto
Sync String - Specifies if the device-group will automatically sync configuration data to its members
- description String
- Description of Device group
- devices
List<Device
Group Device> - Name of the device to be included in device group, this need to be configured before using devicegroup resource
- full
Load StringOn Sync - Specifies if the device-group will perform a full-load upon sync
- incremental
Config Integer - Specifies the maximum size (in KB) to devote to incremental config sync cached transactions. The default is 1024 KB.
- name String
- Is the name of the device Group
- network
Failover String - Specifies if the device-group will use a network connection for failover
- partition String
- Device administrative partition
- save
On StringAuto Sync - Specifies whether the configuration should be saved upon auto-sync.
- type String
- Specifies if the device-group will be used for failover or resource syncing
- auto
Sync string - Specifies if the device-group will automatically sync configuration data to its members
- description string
- Description of Device group
- devices
Device
Group Device[] - Name of the device to be included in device group, this need to be configured before using devicegroup resource
- full
Load stringOn Sync - Specifies if the device-group will perform a full-load upon sync
- incremental
Config number - Specifies the maximum size (in KB) to devote to incremental config sync cached transactions. The default is 1024 KB.
- name string
- Is the name of the device Group
- network
Failover string - Specifies if the device-group will use a network connection for failover
- partition string
- Device administrative partition
- save
On stringAuto Sync - Specifies whether the configuration should be saved upon auto-sync.
- type string
- Specifies if the device-group will be used for failover or resource syncing
- auto_
sync str - Specifies if the device-group will automatically sync configuration data to its members
- description str
- Description of Device group
- devices
Sequence[Device
Group Device Args] - Name of the device to be included in device group, this need to be configured before using devicegroup resource
- full_
load_ stron_ sync - Specifies if the device-group will perform a full-load upon sync
- incremental_
config int - Specifies the maximum size (in KB) to devote to incremental config sync cached transactions. The default is 1024 KB.
- name str
- Is the name of the device Group
- network_
failover str - Specifies if the device-group will use a network connection for failover
- partition str
- Device administrative partition
- save_
on_ strauto_ sync - Specifies whether the configuration should be saved upon auto-sync.
- type str
- Specifies if the device-group will be used for failover or resource syncing
- auto
Sync String - Specifies if the device-group will automatically sync configuration data to its members
- description String
- Description of Device group
- devices List<Property Map>
- Name of the device to be included in device group, this need to be configured before using devicegroup resource
- full
Load StringOn Sync - Specifies if the device-group will perform a full-load upon sync
- incremental
Config Number - Specifies the maximum size (in KB) to devote to incremental config sync cached transactions. The default is 1024 KB.
- name String
- Is the name of the device Group
- network
Failover String - Specifies if the device-group will use a network connection for failover
- partition String
- Device administrative partition
- save
On StringAuto Sync - Specifies whether the configuration should be saved upon auto-sync.
- type String
- Specifies if the device-group will be used for failover or resource syncing
Outputs
All input properties are implicitly available as output properties. Additionally, the DeviceGroup 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 DeviceGroup Resource
Get an existing DeviceGroup 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?: DeviceGroupState, opts?: CustomResourceOptions): DeviceGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_sync: Optional[str] = None,
description: Optional[str] = None,
devices: Optional[Sequence[DeviceGroupDeviceArgs]] = None,
full_load_on_sync: Optional[str] = None,
incremental_config: Optional[int] = None,
name: Optional[str] = None,
network_failover: Optional[str] = None,
partition: Optional[str] = None,
save_on_auto_sync: Optional[str] = None,
type: Optional[str] = None) -> DeviceGroup
func GetDeviceGroup(ctx *Context, name string, id IDInput, state *DeviceGroupState, opts ...ResourceOption) (*DeviceGroup, error)
public static DeviceGroup Get(string name, Input<string> id, DeviceGroupState? state, CustomResourceOptions? opts = null)
public static DeviceGroup get(String name, Output<String> id, DeviceGroupState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Auto
Sync string - Specifies if the device-group will automatically sync configuration data to its members
- Description string
- Description of Device group
- Devices
List<Pulumi.
F5Big IP. CM. Inputs. Device Group Device> - Name of the device to be included in device group, this need to be configured before using devicegroup resource
- Full
Load stringOn Sync - Specifies if the device-group will perform a full-load upon sync
- Incremental
Config int - Specifies the maximum size (in KB) to devote to incremental config sync cached transactions. The default is 1024 KB.
- Name string
- Is the name of the device Group
- Network
Failover string - Specifies if the device-group will use a network connection for failover
- Partition string
- Device administrative partition
- Save
On stringAuto Sync - Specifies whether the configuration should be saved upon auto-sync.
- Type string
- Specifies if the device-group will be used for failover or resource syncing
- Auto
Sync string - Specifies if the device-group will automatically sync configuration data to its members
- Description string
- Description of Device group
- Devices
[]Device
Group Device Args - Name of the device to be included in device group, this need to be configured before using devicegroup resource
- Full
Load stringOn Sync - Specifies if the device-group will perform a full-load upon sync
- Incremental
Config int - Specifies the maximum size (in KB) to devote to incremental config sync cached transactions. The default is 1024 KB.
- Name string
- Is the name of the device Group
- Network
Failover string - Specifies if the device-group will use a network connection for failover
- Partition string
- Device administrative partition
- Save
On stringAuto Sync - Specifies whether the configuration should be saved upon auto-sync.
- Type string
- Specifies if the device-group will be used for failover or resource syncing
- auto
Sync String - Specifies if the device-group will automatically sync configuration data to its members
- description String
- Description of Device group
- devices
List<Device
Group Device> - Name of the device to be included in device group, this need to be configured before using devicegroup resource
- full
Load StringOn Sync - Specifies if the device-group will perform a full-load upon sync
- incremental
Config Integer - Specifies the maximum size (in KB) to devote to incremental config sync cached transactions. The default is 1024 KB.
- name String
- Is the name of the device Group
- network
Failover String - Specifies if the device-group will use a network connection for failover
- partition String
- Device administrative partition
- save
On StringAuto Sync - Specifies whether the configuration should be saved upon auto-sync.
- type String
- Specifies if the device-group will be used for failover or resource syncing
- auto
Sync string - Specifies if the device-group will automatically sync configuration data to its members
- description string
- Description of Device group
- devices
Device
Group Device[] - Name of the device to be included in device group, this need to be configured before using devicegroup resource
- full
Load stringOn Sync - Specifies if the device-group will perform a full-load upon sync
- incremental
Config number - Specifies the maximum size (in KB) to devote to incremental config sync cached transactions. The default is 1024 KB.
- name string
- Is the name of the device Group
- network
Failover string - Specifies if the device-group will use a network connection for failover
- partition string
- Device administrative partition
- save
On stringAuto Sync - Specifies whether the configuration should be saved upon auto-sync.
- type string
- Specifies if the device-group will be used for failover or resource syncing
- auto_
sync str - Specifies if the device-group will automatically sync configuration data to its members
- description str
- Description of Device group
- devices
Sequence[Device
Group Device Args] - Name of the device to be included in device group, this need to be configured before using devicegroup resource
- full_
load_ stron_ sync - Specifies if the device-group will perform a full-load upon sync
- incremental_
config int - Specifies the maximum size (in KB) to devote to incremental config sync cached transactions. The default is 1024 KB.
- name str
- Is the name of the device Group
- network_
failover str - Specifies if the device-group will use a network connection for failover
- partition str
- Device administrative partition
- save_
on_ strauto_ sync - Specifies whether the configuration should be saved upon auto-sync.
- type str
- Specifies if the device-group will be used for failover or resource syncing
- auto
Sync String - Specifies if the device-group will automatically sync configuration data to its members
- description String
- Description of Device group
- devices List<Property Map>
- Name of the device to be included in device group, this need to be configured before using devicegroup resource
- full
Load StringOn Sync - Specifies if the device-group will perform a full-load upon sync
- incremental
Config Number - Specifies the maximum size (in KB) to devote to incremental config sync cached transactions. The default is 1024 KB.
- name String
- Is the name of the device Group
- network
Failover String - Specifies if the device-group will use a network connection for failover
- partition String
- Device administrative partition
- save
On StringAuto Sync - Specifies whether the configuration should be saved upon auto-sync.
- type String
- Specifies if the device-group will be used for failover or resource syncing
Supporting Types
DeviceGroupDevice, DeviceGroupDeviceArgs
- Name string
- Is the name of the device Group
- Set
Sync boolLeader - Name of origin
- Name string
- Is the name of the device Group
- Set
Sync boolLeader - Name of origin
- name String
- Is the name of the device Group
- set
Sync BooleanLeader - Name of origin
- name string
- Is the name of the device Group
- set
Sync booleanLeader - Name of origin
- name str
- Is the name of the device Group
- set_
sync_ boolleader - Name of origin
- name String
- Is the name of the device Group
- set
Sync BooleanLeader - Name of origin
Package Details
- Repository
- f5 BIG-IP pulumi/pulumi-f5bigip
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
bigip
Terraform Provider.