1. Registry
  2. Packages
  3. Mso Provider
  4. API Docs
  5. TenantPoliciesEndpointMacTagPolicy
Viewing docs for mso 3.0.0
published on Monday, Sep 7, 2026 by ciscodevnet
Viewing docs for mso 3.0.0
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:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TenantPoliciesEndpointMacTagPolicy resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Uuid string
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Uuid string
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    uuid string
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    uuid String
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    uuid string
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    uuid str
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    uuid String

    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) -> TenantPoliciesEndpointMacTagPolicy
    func 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.
    The following state arguments are supported:

    Supporting Types

    TenantPoliciesEndpointMacTagPolicyPolicyTag, TenantPoliciesEndpointMacTagPolicyPolicyTagArgs

    Key string
    Value string
    Key string
    Value string
    key string
    value string
    key String
    value String
    key string
    value string
    key str
    value str
    key String
    value String

    TenantPoliciesEndpointMacTagPolicyTagAnnotation, TenantPoliciesEndpointMacTagPolicyTagAnnotationArgs

    Key string
    Value string
    Key string
    Value string
    key string
    value string
    key String
    value String
    key string
    value string
    key str
    value str
    key String
    value String

    Package Details

    Repository
    mso ciscodevnet/terraform-provider-mso
    License
    Notes
    This Pulumi package is based on the mso Terraform Provider.
    Viewing docs for mso 3.0.0
    published on Monday, Sep 7, 2026 by ciscodevnet

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial