1. Packages
  2. Packages
  3. Mso Provider
  4. API Docs
  5. TenantPoliciesDhcpOptionPolicy
Viewing docs for mso 2.0.0
published on Friday, Apr 17, 2026 by ciscodevnet
Viewing docs for mso 2.0.0
published on Friday, Apr 17, 2026 by ciscodevnet

    Create TenantPoliciesDhcpOptionPolicy Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new TenantPoliciesDhcpOptionPolicy(name: string, args: TenantPoliciesDhcpOptionPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def TenantPoliciesDhcpOptionPolicy(resource_name: str,
                                       args: TenantPoliciesDhcpOptionPolicyArgs,
                                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def TenantPoliciesDhcpOptionPolicy(resource_name: str,
                                       opts: Optional[ResourceOptions] = None,
                                       options: Optional[Sequence[TenantPoliciesDhcpOptionPolicyOptionArgs]] = None,
                                       template_id: Optional[str] = None,
                                       description: Optional[str] = None,
                                       name: Optional[str] = None,
                                       tenant_policies_dhcp_option_policy_id: Optional[str] = None)
    func NewTenantPoliciesDhcpOptionPolicy(ctx *Context, name string, args TenantPoliciesDhcpOptionPolicyArgs, opts ...ResourceOption) (*TenantPoliciesDhcpOptionPolicy, error)
    public TenantPoliciesDhcpOptionPolicy(string name, TenantPoliciesDhcpOptionPolicyArgs args, CustomResourceOptions? opts = null)
    public TenantPoliciesDhcpOptionPolicy(String name, TenantPoliciesDhcpOptionPolicyArgs args)
    public TenantPoliciesDhcpOptionPolicy(String name, TenantPoliciesDhcpOptionPolicyArgs args, CustomResourceOptions options)
    
    type: mso:TenantPoliciesDhcpOptionPolicy
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "mso_tenantpoliciesdhcpoptionpolicy" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args TenantPoliciesDhcpOptionPolicyArgs
    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 TenantPoliciesDhcpOptionPolicyArgs
    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 TenantPoliciesDhcpOptionPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TenantPoliciesDhcpOptionPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TenantPoliciesDhcpOptionPolicyArgs
    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 tenantPoliciesDhcpOptionPolicyResource = new Mso.TenantPoliciesDhcpOptionPolicy("tenantPoliciesDhcpOptionPolicyResource", new()
    {
        Options = new[]
        {
            new Mso.Inputs.TenantPoliciesDhcpOptionPolicyOptionArgs
            {
                Name = "string",
                Data = "string",
                Id = 0,
            },
        },
        TemplateId = "string",
        Description = "string",
        Name = "string",
        TenantPoliciesDhcpOptionPolicyId = "string",
    });
    
    example, err := mso.NewTenantPoliciesDhcpOptionPolicy(ctx, "tenantPoliciesDhcpOptionPolicyResource", &mso.TenantPoliciesDhcpOptionPolicyArgs{
    	Options: mso.TenantPoliciesDhcpOptionPolicyOptionArray{
    		&mso.TenantPoliciesDhcpOptionPolicyOptionArgs{
    			Name: pulumi.String("string"),
    			Data: pulumi.String("string"),
    			Id:   pulumi.Float64(0),
    		},
    	},
    	TemplateId:                       pulumi.String("string"),
    	Description:                      pulumi.String("string"),
    	Name:                             pulumi.String("string"),
    	TenantPoliciesDhcpOptionPolicyId: pulumi.String("string"),
    })
    
    resource "mso_tenantpoliciesdhcpoptionpolicy" "tenantPoliciesDhcpOptionPolicyResource" {
      options {
        name = "string"
        data = "string"
        id   = 0
      }
      template_id                           = "string"
      description                           = "string"
      name                                  = "string"
      tenant_policies_dhcp_option_policy_id = "string"
    }
    
    var tenantPoliciesDhcpOptionPolicyResource = new TenantPoliciesDhcpOptionPolicy("tenantPoliciesDhcpOptionPolicyResource", TenantPoliciesDhcpOptionPolicyArgs.builder()
        .options(TenantPoliciesDhcpOptionPolicyOptionArgs.builder()
            .name("string")
            .data("string")
            .id(0.0)
            .build())
        .templateId("string")
        .description("string")
        .name("string")
        .tenantPoliciesDhcpOptionPolicyId("string")
        .build());
    
    tenant_policies_dhcp_option_policy_resource = mso.TenantPoliciesDhcpOptionPolicy("tenantPoliciesDhcpOptionPolicyResource",
        options=[{
            "name": "string",
            "data": "string",
            "id": float(0),
        }],
        template_id="string",
        description="string",
        name="string",
        tenant_policies_dhcp_option_policy_id="string")
    
    const tenantPoliciesDhcpOptionPolicyResource = new mso.TenantPoliciesDhcpOptionPolicy("tenantPoliciesDhcpOptionPolicyResource", {
        options: [{
            name: "string",
            data: "string",
            id: 0,
        }],
        templateId: "string",
        description: "string",
        name: "string",
        tenantPoliciesDhcpOptionPolicyId: "string",
    });
    
    type: mso:TenantPoliciesDhcpOptionPolicy
    properties:
        description: string
        name: string
        options:
            - data: string
              id: 0
              name: string
        templateId: string
        tenantPoliciesDhcpOptionPolicyId: string
    

    TenantPoliciesDhcpOptionPolicy 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 TenantPoliciesDhcpOptionPolicy resource accepts the following input properties:

    Options List<TenantPoliciesDhcpOptionPolicyOption>
    A set of DHCP options. At least one option is required.
    TemplateId string
    The ID of the tenant policy template.
    Description string
    The description of the DHCP Option Policy.
    Name string
    The name of the DHCP Option Policy.
    TenantPoliciesDhcpOptionPolicyId string
    Options []TenantPoliciesDhcpOptionPolicyOptionArgs
    A set of DHCP options. At least one option is required.
    TemplateId string
    The ID of the tenant policy template.
    Description string
    The description of the DHCP Option Policy.
    Name string
    The name of the DHCP Option Policy.
    TenantPoliciesDhcpOptionPolicyId string
    options list(object)
    A set of DHCP options. At least one option is required.
    template_id string
    The ID of the tenant policy template.
    description string
    The description of the DHCP Option Policy.
    name string
    The name of the DHCP Option Policy.
    tenant_policies_dhcp_option_policy_id string
    options List<TenantPoliciesDhcpOptionPolicyOption>
    A set of DHCP options. At least one option is required.
    templateId String
    The ID of the tenant policy template.
    description String
    The description of the DHCP Option Policy.
    name String
    The name of the DHCP Option Policy.
    tenantPoliciesDhcpOptionPolicyId String
    options TenantPoliciesDhcpOptionPolicyOption[]
    A set of DHCP options. At least one option is required.
    templateId string
    The ID of the tenant policy template.
    description string
    The description of the DHCP Option Policy.
    name string
    The name of the DHCP Option Policy.
    tenantPoliciesDhcpOptionPolicyId string
    options Sequence[TenantPoliciesDhcpOptionPolicyOptionArgs]
    A set of DHCP options. At least one option is required.
    template_id str
    The ID of the tenant policy template.
    description str
    The description of the DHCP Option Policy.
    name str
    The name of the DHCP Option Policy.
    tenant_policies_dhcp_option_policy_id str
    options List<Property Map>
    A set of DHCP options. At least one option is required.
    templateId String
    The ID of the tenant policy template.
    description String
    The description of the DHCP Option Policy.
    name String
    The name of the DHCP Option Policy.
    tenantPoliciesDhcpOptionPolicyId String

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Uuid string
    The UUID of the DHCP Option Policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    Uuid string
    The UUID of the DHCP Option Policy.
    id string
    The provider-assigned unique ID for this managed resource.
    uuid string
    The UUID of the DHCP Option Policy.
    id String
    The provider-assigned unique ID for this managed resource.
    uuid String
    The UUID of the DHCP Option Policy.
    id string
    The provider-assigned unique ID for this managed resource.
    uuid string
    The UUID of the DHCP Option Policy.
    id str
    The provider-assigned unique ID for this managed resource.
    uuid str
    The UUID of the DHCP Option Policy.
    id String
    The provider-assigned unique ID for this managed resource.
    uuid String
    The UUID of the DHCP Option Policy.

    Look up Existing TenantPoliciesDhcpOptionPolicy Resource

    Get an existing TenantPoliciesDhcpOptionPolicy 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?: TenantPoliciesDhcpOptionPolicyState, opts?: CustomResourceOptions): TenantPoliciesDhcpOptionPolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            options: Optional[Sequence[TenantPoliciesDhcpOptionPolicyOptionArgs]] = None,
            template_id: Optional[str] = None,
            tenant_policies_dhcp_option_policy_id: Optional[str] = None,
            uuid: Optional[str] = None) -> TenantPoliciesDhcpOptionPolicy
    func GetTenantPoliciesDhcpOptionPolicy(ctx *Context, name string, id IDInput, state *TenantPoliciesDhcpOptionPolicyState, opts ...ResourceOption) (*TenantPoliciesDhcpOptionPolicy, error)
    public static TenantPoliciesDhcpOptionPolicy Get(string name, Input<string> id, TenantPoliciesDhcpOptionPolicyState? state, CustomResourceOptions? opts = null)
    public static TenantPoliciesDhcpOptionPolicy get(String name, Output<String> id, TenantPoliciesDhcpOptionPolicyState state, CustomResourceOptions options)
    resources:  _:    type: mso:TenantPoliciesDhcpOptionPolicy    get:      id: ${id}
    import {
      to = mso_tenantpoliciesdhcpoptionpolicy.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:
    Description string
    The description of the DHCP Option Policy.
    Name string
    The name of the DHCP Option Policy.
    Options List<TenantPoliciesDhcpOptionPolicyOption>
    A set of DHCP options. At least one option is required.
    TemplateId string
    The ID of the tenant policy template.
    TenantPoliciesDhcpOptionPolicyId string
    Uuid string
    The UUID of the DHCP Option Policy.
    Description string
    The description of the DHCP Option Policy.
    Name string
    The name of the DHCP Option Policy.
    Options []TenantPoliciesDhcpOptionPolicyOptionArgs
    A set of DHCP options. At least one option is required.
    TemplateId string
    The ID of the tenant policy template.
    TenantPoliciesDhcpOptionPolicyId string
    Uuid string
    The UUID of the DHCP Option Policy.
    description string
    The description of the DHCP Option Policy.
    name string
    The name of the DHCP Option Policy.
    options list(object)
    A set of DHCP options. At least one option is required.
    template_id string
    The ID of the tenant policy template.
    tenant_policies_dhcp_option_policy_id string
    uuid string
    The UUID of the DHCP Option Policy.
    description String
    The description of the DHCP Option Policy.
    name String
    The name of the DHCP Option Policy.
    options List<TenantPoliciesDhcpOptionPolicyOption>
    A set of DHCP options. At least one option is required.
    templateId String
    The ID of the tenant policy template.
    tenantPoliciesDhcpOptionPolicyId String
    uuid String
    The UUID of the DHCP Option Policy.
    description string
    The description of the DHCP Option Policy.
    name string
    The name of the DHCP Option Policy.
    options TenantPoliciesDhcpOptionPolicyOption[]
    A set of DHCP options. At least one option is required.
    templateId string
    The ID of the tenant policy template.
    tenantPoliciesDhcpOptionPolicyId string
    uuid string
    The UUID of the DHCP Option Policy.
    description str
    The description of the DHCP Option Policy.
    name str
    The name of the DHCP Option Policy.
    options Sequence[TenantPoliciesDhcpOptionPolicyOptionArgs]
    A set of DHCP options. At least one option is required.
    template_id str
    The ID of the tenant policy template.
    tenant_policies_dhcp_option_policy_id str
    uuid str
    The UUID of the DHCP Option Policy.
    description String
    The description of the DHCP Option Policy.
    name String
    The name of the DHCP Option Policy.
    options List<Property Map>
    A set of DHCP options. At least one option is required.
    templateId String
    The ID of the tenant policy template.
    tenantPoliciesDhcpOptionPolicyId String
    uuid String
    The UUID of the DHCP Option Policy.

    Supporting Types

    TenantPoliciesDhcpOptionPolicyOption, TenantPoliciesDhcpOptionPolicyOptionArgs

    Name string
    The name of the DHCP option.
    Data string
    The data value of the DHCP option.
    Id double
    The ID of the DHCP option. Range: 0-255.
    Name string
    The name of the DHCP option.
    Data string
    The data value of the DHCP option.
    Id float64
    The ID of the DHCP option. Range: 0-255.
    name string
    The name of the DHCP option.
    data string
    The data value of the DHCP option.
    id number
    The ID of the DHCP option. Range: 0-255.
    name String
    The name of the DHCP option.
    data String
    The data value of the DHCP option.
    id Double
    The ID of the DHCP option. Range: 0-255.
    name string
    The name of the DHCP option.
    data string
    The data value of the DHCP option.
    id number
    The ID of the DHCP option. Range: 0-255.
    name str
    The name of the DHCP option.
    data str
    The data value of the DHCP option.
    id float
    The ID of the DHCP option. Range: 0-255.
    name String
    The name of the DHCP option.
    data String
    The data value of the DHCP option.
    id Number
    The ID of the DHCP option. Range: 0-255.

    Package Details

    Repository
    mso ciscodevnet/terraform-provider-mso
    License
    Notes
    This Pulumi package is based on the mso Terraform Provider.
    Viewing docs for mso 2.0.0
    published on Friday, Apr 17, 2026 by ciscodevnet
      Try Pulumi Cloud free. Your team will thank you.