published on Monday, Sep 7, 2026 by ciscodevnet
published on Monday, Sep 7, 2026 by ciscodevnet
Create TenantPoliciesEndpointMacTagPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TenantPoliciesEndpointMacTagPolicy(name: string, args: TenantPoliciesEndpointMacTagPolicyArgs, opts?: CustomResourceOptions);@overload
def TenantPoliciesEndpointMacTagPolicy(resource_name: str,
args: TenantPoliciesEndpointMacTagPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TenantPoliciesEndpointMacTagPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
mac: Optional[str] = None,
template_id: Optional[str] = None,
bd_uuid: Optional[str] = None,
policy_tags: Optional[Sequence[TenantPoliciesEndpointMacTagPolicyPolicyTagArgs]] = None,
tag_annotations: Optional[Sequence[TenantPoliciesEndpointMacTagPolicyTagAnnotationArgs]] = None,
tenant_policies_endpoint_mac_tag_policy_id: Optional[str] = None,
vrf_uuid: Optional[str] = None)func NewTenantPoliciesEndpointMacTagPolicy(ctx *Context, name string, args TenantPoliciesEndpointMacTagPolicyArgs, opts ...ResourceOption) (*TenantPoliciesEndpointMacTagPolicy, error)public TenantPoliciesEndpointMacTagPolicy(string name, TenantPoliciesEndpointMacTagPolicyArgs args, CustomResourceOptions? opts = null)
public TenantPoliciesEndpointMacTagPolicy(String name, TenantPoliciesEndpointMacTagPolicyArgs args)
public TenantPoliciesEndpointMacTagPolicy(String name, TenantPoliciesEndpointMacTagPolicyArgs args, CustomResourceOptions options)
type: mso:TenantPoliciesEndpointMacTagPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "mso_tenant_policies_endpoint_mac_tag_policy" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args TenantPoliciesEndpointMacTagPolicyArgs
- 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 TenantPoliciesEndpointMacTagPolicyArgs
- 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 TenantPoliciesEndpointMacTagPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TenantPoliciesEndpointMacTagPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TenantPoliciesEndpointMacTagPolicyArgs
- 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 tenantPoliciesEndpointMacTagPolicyResource = new Mso.TenantPoliciesEndpointMacTagPolicy("tenantPoliciesEndpointMacTagPolicyResource", new()
{
Mac = "string",
TemplateId = "string",
BdUuid = "string",
PolicyTags = new[]
{
new Mso.Inputs.TenantPoliciesEndpointMacTagPolicyPolicyTagArgs
{
Key = "string",
Value = "string",
},
},
TagAnnotations = new[]
{
new Mso.Inputs.TenantPoliciesEndpointMacTagPolicyTagAnnotationArgs
{
Key = "string",
Value = "string",
},
},
TenantPoliciesEndpointMacTagPolicyId = "string",
VrfUuid = "string",
});
example, err := mso.NewTenantPoliciesEndpointMacTagPolicy(ctx, "tenantPoliciesEndpointMacTagPolicyResource", &mso.TenantPoliciesEndpointMacTagPolicyArgs{
Mac: pulumi.String("string"),
TemplateId: pulumi.String("string"),
BdUuid: pulumi.String("string"),
PolicyTags: mso.TenantPoliciesEndpointMacTagPolicyPolicyTagArray{
&mso.TenantPoliciesEndpointMacTagPolicyPolicyTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
TagAnnotations: mso.TenantPoliciesEndpointMacTagPolicyTagAnnotationArray{
&mso.TenantPoliciesEndpointMacTagPolicyTagAnnotationArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
TenantPoliciesEndpointMacTagPolicyId: pulumi.String("string"),
VrfUuid: pulumi.String("string"),
})
resource "mso_tenant_policies_endpoint_mac_tag_policy" "tenantPoliciesEndpointMacTagPolicyResource" {
lifecycle {
create_before_destroy = true
}
mac = "string"
template_id = "string"
bd_uuid = "string"
policy_tags {
key = "string"
value = "string"
}
tag_annotations {
key = "string"
value = "string"
}
tenant_policies_endpoint_mac_tag_policy_id = "string"
vrf_uuid = "string"
}
var tenantPoliciesEndpointMacTagPolicyResource = new TenantPoliciesEndpointMacTagPolicy("tenantPoliciesEndpointMacTagPolicyResource", TenantPoliciesEndpointMacTagPolicyArgs.builder()
.mac("string")
.templateId("string")
.bdUuid("string")
.policyTags(TenantPoliciesEndpointMacTagPolicyPolicyTagArgs.builder()
.key("string")
.value("string")
.build())
.tagAnnotations(TenantPoliciesEndpointMacTagPolicyTagAnnotationArgs.builder()
.key("string")
.value("string")
.build())
.tenantPoliciesEndpointMacTagPolicyId("string")
.vrfUuid("string")
.build());
tenant_policies_endpoint_mac_tag_policy_resource = mso.TenantPoliciesEndpointMacTagPolicy("tenantPoliciesEndpointMacTagPolicyResource",
mac="string",
template_id="string",
bd_uuid="string",
policy_tags=[{
"key": "string",
"value": "string",
}],
tag_annotations=[{
"key": "string",
"value": "string",
}],
tenant_policies_endpoint_mac_tag_policy_id="string",
vrf_uuid="string")
const tenantPoliciesEndpointMacTagPolicyResource = new mso.TenantPoliciesEndpointMacTagPolicy("tenantPoliciesEndpointMacTagPolicyResource", {
mac: "string",
templateId: "string",
bdUuid: "string",
policyTags: [{
key: "string",
value: "string",
}],
tagAnnotations: [{
key: "string",
value: "string",
}],
tenantPoliciesEndpointMacTagPolicyId: "string",
vrfUuid: "string",
});
type: mso:TenantPoliciesEndpointMacTagPolicy
properties:
bdUuid: string
mac: string
policyTags:
- key: string
value: string
tagAnnotations:
- key: string
value: string
templateId: string
tenantPoliciesEndpointMacTagPolicyId: string
vrfUuid: string
TenantPoliciesEndpointMacTagPolicy 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 TenantPoliciesEndpointMacTagPolicy resource accepts the following input properties:
- mac string
- template_
id string - bd_
uuid string - list(object)
- tag_
annotations list(object) - tenant_
policies_ stringendpoint_ mac_ tag_ policy_ id - vrf_
uuid string
- mac String
- template
Id String - bd
Uuid String - List<Property Map>
- tag
Annotations List<Property Map> - tenant
Policies StringEndpoint Mac Tag Policy Id - vrf
Uuid String
Outputs
All input properties are implicitly available as output properties. Additionally, the TenantPoliciesEndpointMacTagPolicy resource produces the following output properties:
Look up Existing TenantPoliciesEndpointMacTagPolicy Resource
Get an existing TenantPoliciesEndpointMacTagPolicy 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?: TenantPoliciesEndpointMacTagPolicyState, opts?: CustomResourceOptions): TenantPoliciesEndpointMacTagPolicy@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bd_uuid: Optional[str] = None,
mac: Optional[str] = None,
name: Optional[str] = None,
policy_tags: Optional[Sequence[TenantPoliciesEndpointMacTagPolicyPolicyTagArgs]] = None,
tag_annotations: Optional[Sequence[TenantPoliciesEndpointMacTagPolicyTagAnnotationArgs]] = None,
template_id: Optional[str] = None,
tenant_policies_endpoint_mac_tag_policy_id: Optional[str] = None,
uuid: Optional[str] = None,
vrf_uuid: Optional[str] = None) -> TenantPoliciesEndpointMacTagPolicyfunc GetTenantPoliciesEndpointMacTagPolicy(ctx *Context, name string, id IDInput, state *TenantPoliciesEndpointMacTagPolicyState, opts ...ResourceOption) (*TenantPoliciesEndpointMacTagPolicy, error)public static TenantPoliciesEndpointMacTagPolicy Get(string name, Input<string> id, TenantPoliciesEndpointMacTagPolicyState? state, CustomResourceOptions? opts = null)public static TenantPoliciesEndpointMacTagPolicy get(String name, Output<String> id, TenantPoliciesEndpointMacTagPolicyState state, CustomResourceOptions options)resources: _: type: mso:TenantPoliciesEndpointMacTagPolicy get: id: ${id}import {
to = mso_tenant_policies_endpoint_mac_tag_policy.example
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.
- Bd
Uuid string - Mac string
- Name string
-
List<Tenant
Policies Endpoint Mac Tag Policy Policy Tag> - Tag
Annotations List<TenantPolicies Endpoint Mac Tag Policy Tag Annotation> - Template
Id string - Tenant
Policies stringEndpoint Mac Tag Policy Id - Uuid string
- Vrf
Uuid string
- Bd
Uuid string - Mac string
- Name string
-
[]Tenant
Policies Endpoint Mac Tag Policy Policy Tag Args - Tag
Annotations []TenantPolicies Endpoint Mac Tag Policy Tag Annotation Args - Template
Id string - Tenant
Policies stringEndpoint Mac Tag Policy Id - Uuid string
- Vrf
Uuid string
- bd_
uuid string - mac string
- name string
- list(object)
- tag_
annotations list(object) - template_
id string - tenant_
policies_ stringendpoint_ mac_ tag_ policy_ id - uuid string
- vrf_
uuid string
- bd
Uuid String - mac String
- name String
-
List<Tenant
Policies Endpoint Mac Tag Policy Policy Tag> - tag
Annotations List<TenantPolicies Endpoint Mac Tag Policy Tag Annotation> - template
Id String - tenant
Policies StringEndpoint Mac Tag Policy Id - uuid String
- vrf
Uuid String
- bd
Uuid string - mac string
- name string
-
Tenant
Policies Endpoint Mac Tag Policy Policy Tag[] - tag
Annotations TenantPolicies Endpoint Mac Tag Policy Tag Annotation[] - template
Id string - tenant
Policies stringEndpoint Mac Tag Policy Id - uuid string
- vrf
Uuid string
- bd
Uuid String - mac String
- name String
- List<Property Map>
- tag
Annotations List<Property Map> - template
Id String - tenant
Policies StringEndpoint Mac Tag Policy Id - uuid String
- vrf
Uuid String
Supporting Types
TenantPoliciesEndpointMacTagPolicyPolicyTag, TenantPoliciesEndpointMacTagPolicyPolicyTagArgs
TenantPoliciesEndpointMacTagPolicyTagAnnotation, TenantPoliciesEndpointMacTagPolicyTagAnnotationArgs
Package Details
- Repository
- mso ciscodevnet/terraform-provider-mso
- License
- Notes
- This Pulumi package is based on the
msoTerraform Provider.
published on Monday, Sep 7, 2026 by ciscodevnet