mso.ServiceDeviceCluster
Create ServiceDeviceCluster Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ServiceDeviceCluster(name: string, args: ServiceDeviceClusterArgs, opts?: CustomResourceOptions);@overload
def ServiceDeviceCluster(resource_name: str,
args: ServiceDeviceClusterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ServiceDeviceCluster(resource_name: str,
opts: Optional[ResourceOptions] = None,
device_mode: Optional[str] = None,
device_type: Optional[str] = None,
interface_properties: Optional[Sequence[ServiceDeviceClusterInterfacePropertyArgs]] = None,
template_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
service_device_cluster_id: Optional[str] = None)func NewServiceDeviceCluster(ctx *Context, name string, args ServiceDeviceClusterArgs, opts ...ResourceOption) (*ServiceDeviceCluster, error)public ServiceDeviceCluster(string name, ServiceDeviceClusterArgs args, CustomResourceOptions? opts = null)
public ServiceDeviceCluster(String name, ServiceDeviceClusterArgs args)
public ServiceDeviceCluster(String name, ServiceDeviceClusterArgs args, CustomResourceOptions options)
type: mso:ServiceDeviceCluster
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 ServiceDeviceClusterArgs
- 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 ServiceDeviceClusterArgs
- 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 ServiceDeviceClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServiceDeviceClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServiceDeviceClusterArgs
- 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 serviceDeviceClusterResource = new Mso.ServiceDeviceCluster("serviceDeviceClusterResource", new()
{
DeviceMode = "string",
DeviceType = "string",
InterfaceProperties = new[]
{
new Mso.Inputs.ServiceDeviceClusterInterfacePropertyArgs
{
Name = "string",
MinThreshold = 0,
PodAwareRedirection = false,
ExternalEpgUuid = "string",
IpslaMonitoringPolicyUuid = "string",
IsBackupRedirectIp = false,
LoadBalanceHashing = "string",
ConfigStaticMac = false,
MaxThreshold = 0,
BdUuid = "string",
Anycast = false,
PreferredGroup = false,
QosPolicyUuid = "string",
ResilientHashing = false,
RewriteSourceMac = false,
TagBasedSorting = false,
ThresholdDownAction = "string",
},
},
TemplateId = "string",
Description = "string",
Name = "string",
ServiceDeviceClusterId = "string",
});
example, err := mso.NewServiceDeviceCluster(ctx, "serviceDeviceClusterResource", &mso.ServiceDeviceClusterArgs{
DeviceMode: pulumi.String("string"),
DeviceType: pulumi.String("string"),
InterfaceProperties: mso.ServiceDeviceClusterInterfacePropertyArray{
&mso.ServiceDeviceClusterInterfacePropertyArgs{
Name: pulumi.String("string"),
MinThreshold: pulumi.Float64(0),
PodAwareRedirection: pulumi.Bool(false),
ExternalEpgUuid: pulumi.String("string"),
IpslaMonitoringPolicyUuid: pulumi.String("string"),
IsBackupRedirectIp: pulumi.Bool(false),
LoadBalanceHashing: pulumi.String("string"),
ConfigStaticMac: pulumi.Bool(false),
MaxThreshold: pulumi.Float64(0),
BdUuid: pulumi.String("string"),
Anycast: pulumi.Bool(false),
PreferredGroup: pulumi.Bool(false),
QosPolicyUuid: pulumi.String("string"),
ResilientHashing: pulumi.Bool(false),
RewriteSourceMac: pulumi.Bool(false),
TagBasedSorting: pulumi.Bool(false),
ThresholdDownAction: pulumi.String("string"),
},
},
TemplateId: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
ServiceDeviceClusterId: pulumi.String("string"),
})
var serviceDeviceClusterResource = new ServiceDeviceCluster("serviceDeviceClusterResource", ServiceDeviceClusterArgs.builder()
.deviceMode("string")
.deviceType("string")
.interfaceProperties(ServiceDeviceClusterInterfacePropertyArgs.builder()
.name("string")
.minThreshold(0.0)
.podAwareRedirection(false)
.externalEpgUuid("string")
.ipslaMonitoringPolicyUuid("string")
.isBackupRedirectIp(false)
.loadBalanceHashing("string")
.configStaticMac(false)
.maxThreshold(0.0)
.bdUuid("string")
.anycast(false)
.preferredGroup(false)
.qosPolicyUuid("string")
.resilientHashing(false)
.rewriteSourceMac(false)
.tagBasedSorting(false)
.thresholdDownAction("string")
.build())
.templateId("string")
.description("string")
.name("string")
.serviceDeviceClusterId("string")
.build());
service_device_cluster_resource = mso.ServiceDeviceCluster("serviceDeviceClusterResource",
device_mode="string",
device_type="string",
interface_properties=[{
"name": "string",
"min_threshold": 0,
"pod_aware_redirection": False,
"external_epg_uuid": "string",
"ipsla_monitoring_policy_uuid": "string",
"is_backup_redirect_ip": False,
"load_balance_hashing": "string",
"config_static_mac": False,
"max_threshold": 0,
"bd_uuid": "string",
"anycast": False,
"preferred_group": False,
"qos_policy_uuid": "string",
"resilient_hashing": False,
"rewrite_source_mac": False,
"tag_based_sorting": False,
"threshold_down_action": "string",
}],
template_id="string",
description="string",
name="string",
service_device_cluster_id="string")
const serviceDeviceClusterResource = new mso.ServiceDeviceCluster("serviceDeviceClusterResource", {
deviceMode: "string",
deviceType: "string",
interfaceProperties: [{
name: "string",
minThreshold: 0,
podAwareRedirection: false,
externalEpgUuid: "string",
ipslaMonitoringPolicyUuid: "string",
isBackupRedirectIp: false,
loadBalanceHashing: "string",
configStaticMac: false,
maxThreshold: 0,
bdUuid: "string",
anycast: false,
preferredGroup: false,
qosPolicyUuid: "string",
resilientHashing: false,
rewriteSourceMac: false,
tagBasedSorting: false,
thresholdDownAction: "string",
}],
templateId: "string",
description: "string",
name: "string",
serviceDeviceClusterId: "string",
});
type: mso:ServiceDeviceCluster
properties:
description: string
deviceMode: string
deviceType: string
interfaceProperties:
- anycast: false
bdUuid: string
configStaticMac: false
externalEpgUuid: string
ipslaMonitoringPolicyUuid: string
isBackupRedirectIp: false
loadBalanceHashing: string
maxThreshold: 0
minThreshold: 0
name: string
podAwareRedirection: false
preferredGroup: false
qosPolicyUuid: string
resilientHashing: false
rewriteSourceMac: false
tagBasedSorting: false
thresholdDownAction: string
name: string
serviceDeviceClusterId: string
templateId: string
ServiceDeviceCluster 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 ServiceDeviceCluster resource accepts the following input properties:
- Device
Mode string - Device
Type string - Interface
Properties List<ServiceDevice Cluster Interface Property> - Template
Id string - Description string
- Name string
- Service
Device stringCluster Id
- Device
Mode string - Device
Type string - Interface
Properties []ServiceDevice Cluster Interface Property Args - Template
Id string - Description string
- Name string
- Service
Device stringCluster Id
- device
Mode String - device
Type String - interface
Properties List<ServiceDevice Cluster Interface Property> - template
Id String - description String
- name String
- service
Device StringCluster Id
- device
Mode string - device
Type string - interface
Properties ServiceDevice Cluster Interface Property[] - template
Id string - description string
- name string
- service
Device stringCluster Id
- device
Mode String - device
Type String - interface
Properties List<Property Map> - template
Id String - description String
- name String
- service
Device StringCluster Id
Outputs
All input properties are implicitly available as output properties. Additionally, the ServiceDeviceCluster resource produces the following output properties:
Look up Existing ServiceDeviceCluster Resource
Get an existing ServiceDeviceCluster 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?: ServiceDeviceClusterState, opts?: CustomResourceOptions): ServiceDeviceCluster@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
device_mode: Optional[str] = None,
device_type: Optional[str] = None,
interface_properties: Optional[Sequence[ServiceDeviceClusterInterfacePropertyArgs]] = None,
name: Optional[str] = None,
service_device_cluster_id: Optional[str] = None,
template_id: Optional[str] = None,
uuid: Optional[str] = None) -> ServiceDeviceClusterfunc GetServiceDeviceCluster(ctx *Context, name string, id IDInput, state *ServiceDeviceClusterState, opts ...ResourceOption) (*ServiceDeviceCluster, error)public static ServiceDeviceCluster Get(string name, Input<string> id, ServiceDeviceClusterState? state, CustomResourceOptions? opts = null)public static ServiceDeviceCluster get(String name, Output<String> id, ServiceDeviceClusterState state, CustomResourceOptions options)resources: _: type: mso:ServiceDeviceCluster 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.
- Description string
- Device
Mode string - Device
Type string - Interface
Properties List<ServiceDevice Cluster Interface Property> - Name string
- Service
Device stringCluster Id - Template
Id string - Uuid string
- Description string
- Device
Mode string - Device
Type string - Interface
Properties []ServiceDevice Cluster Interface Property Args - Name string
- Service
Device stringCluster Id - Template
Id string - Uuid string
- description String
- device
Mode String - device
Type String - interface
Properties List<ServiceDevice Cluster Interface Property> - name String
- service
Device StringCluster Id - template
Id String - uuid String
- description string
- device
Mode string - device
Type string - interface
Properties ServiceDevice Cluster Interface Property[] - name string
- service
Device stringCluster Id - template
Id string - uuid string
- description String
- device
Mode String - device
Type String - interface
Properties List<Property Map> - name String
- service
Device StringCluster Id - template
Id String - uuid String
Supporting Types
ServiceDeviceClusterInterfaceProperty, ServiceDeviceClusterInterfacePropertyArgs
- Name string
- Anycast bool
- Bd
Uuid string - Config
Static boolMac - External
Epg stringUuid - Ipsla
Monitoring stringPolicy Uuid - Is
Backup boolRedirect Ip - Load
Balance stringHashing - Max
Threshold double - Min
Threshold double - Pod
Aware boolRedirection - Preferred
Group bool - Qos
Policy stringUuid - Resilient
Hashing bool - Rewrite
Source boolMac - Tag
Based boolSorting - Threshold
Down stringAction
- Name string
- Anycast bool
- Bd
Uuid string - Config
Static boolMac - External
Epg stringUuid - Ipsla
Monitoring stringPolicy Uuid - Is
Backup boolRedirect Ip - Load
Balance stringHashing - Max
Threshold float64 - Min
Threshold float64 - Pod
Aware boolRedirection - Preferred
Group bool - Qos
Policy stringUuid - Resilient
Hashing bool - Rewrite
Source boolMac - Tag
Based boolSorting - Threshold
Down stringAction
- name String
- anycast Boolean
- bd
Uuid String - config
Static BooleanMac - external
Epg StringUuid - ipsla
Monitoring StringPolicy Uuid - is
Backup BooleanRedirect Ip - load
Balance StringHashing - max
Threshold Double - min
Threshold Double - pod
Aware BooleanRedirection - preferred
Group Boolean - qos
Policy StringUuid - resilient
Hashing Boolean - rewrite
Source BooleanMac - tag
Based BooleanSorting - threshold
Down StringAction
- name string
- anycast boolean
- bd
Uuid string - config
Static booleanMac - external
Epg stringUuid - ipsla
Monitoring stringPolicy Uuid - is
Backup booleanRedirect Ip - load
Balance stringHashing - max
Threshold number - min
Threshold number - pod
Aware booleanRedirection - preferred
Group boolean - qos
Policy stringUuid - resilient
Hashing boolean - rewrite
Source booleanMac - tag
Based booleanSorting - threshold
Down stringAction
- name str
- anycast bool
- bd_
uuid str - config_
static_ boolmac - external_
epg_ struuid - ipsla_
monitoring_ strpolicy_ uuid - is_
backup_ boolredirect_ ip - load_
balance_ strhashing - max_
threshold float - min_
threshold float - pod_
aware_ boolredirection - preferred_
group bool - qos_
policy_ struuid - resilient_
hashing bool - rewrite_
source_ boolmac - tag_
based_ boolsorting - threshold_
down_ straction
- name String
- anycast Boolean
- bd
Uuid String - config
Static BooleanMac - external
Epg StringUuid - ipsla
Monitoring StringPolicy Uuid - is
Backup BooleanRedirect Ip - load
Balance StringHashing - max
Threshold Number - min
Threshold Number - pod
Aware BooleanRedirection - preferred
Group Boolean - qos
Policy StringUuid - resilient
Hashing Boolean - rewrite
Source BooleanMac - tag
Based BooleanSorting - threshold
Down StringAction
Package Details
- Repository
- mso ciscodevnet/terraform-provider-mso
- License
- Notes
- This Pulumi package is based on the
msoTerraform Provider.
