published on Friday, Apr 17, 2026 by ciscodevnet
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<Tenant
Policies Dhcp Option Policy Option> - 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 stringDhcp Option Policy Id
- Options
[]Tenant
Policies Dhcp Option Policy Option Args - 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 stringDhcp Option Policy Id
- 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_ stringdhcp_ option_ policy_ id
- options
List<Tenant
Policies Dhcp Option Policy Option> - 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 StringDhcp Option Policy Id
- options
Tenant
Policies Dhcp Option Policy Option[] - 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 stringDhcp Option Policy Id
- options
Sequence[Tenant
Policies Dhcp Option Policy Option Args] - 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_ strdhcp_ option_ policy_ id
- options List<Property Map>
- 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 StringDhcp Option Policy Id
Outputs
All input properties are implicitly available as output properties. Additionally, the TenantPoliciesDhcpOptionPolicy resource produces the following output properties:
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) -> TenantPoliciesDhcpOptionPolicyfunc 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.
- Description string
- The description of the DHCP Option Policy.
- Name string
- The name of the DHCP Option Policy.
- Options
List<Tenant
Policies Dhcp Option Policy Option> - A set of DHCP options. At least one option is required.
- Template
Id string - The ID of the tenant policy template.
- Tenant
Policies stringDhcp Option Policy Id - 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
[]Tenant
Policies Dhcp Option Policy Option Args - A set of DHCP options. At least one option is required.
- Template
Id string - The ID of the tenant policy template.
- Tenant
Policies stringDhcp Option Policy Id - 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_ stringdhcp_ option_ policy_ id - 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<Tenant
Policies Dhcp Option Policy Option> - A set of DHCP options. At least one option is required.
- template
Id String - The ID of the tenant policy template.
- tenant
Policies StringDhcp Option Policy Id - 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
Tenant
Policies Dhcp Option Policy Option[] - A set of DHCP options. At least one option is required.
- template
Id string - The ID of the tenant policy template.
- tenant
Policies stringDhcp Option Policy Id - 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[Tenant
Policies Dhcp Option Policy Option Args] - A set of DHCP options. At least one option is required.
- template_
id str - The ID of the tenant policy template.
- tenant_
policies_ strdhcp_ option_ policy_ id - 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.
- template
Id String - The ID of the tenant policy template.
- tenant
Policies StringDhcp Option Policy Id - uuid String
- The UUID of the DHCP Option Policy.
Supporting Types
TenantPoliciesDhcpOptionPolicyOption, TenantPoliciesDhcpOptionPolicyOptionArgs
Package Details
- Repository
- mso ciscodevnet/terraform-provider-mso
- License
- Notes
- This Pulumi package is based on the
msoTerraform Provider.
published on Friday, Apr 17, 2026 by ciscodevnet
