1. Packages
  2. Routeros Provider
  3. API Docs
  4. DhcpClientOption
routeros 1.83.1 published on Monday, Apr 28, 2025 by terraform-routeros

routeros.DhcpClientOption

Explore with Pulumi AI

routeros logo
routeros 1.83.1 published on Monday, Apr 28, 2025 by terraform-routeros

    Create DhcpClientOption Resource

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

    Constructor syntax

    new DhcpClientOption(name: string, args: DhcpClientOptionArgs, opts?: CustomResourceOptions);
    @overload
    def DhcpClientOption(resource_name: str,
                         args: DhcpClientOptionArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def DhcpClientOption(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         code: Optional[float] = None,
                         ___id_: Optional[float] = None,
                         ___path_: Optional[str] = None,
                         dhcp_client_option_id: Optional[str] = None,
                         name: Optional[str] = None,
                         raw_value: Optional[str] = None,
                         value: Optional[str] = None)
    func NewDhcpClientOption(ctx *Context, name string, args DhcpClientOptionArgs, opts ...ResourceOption) (*DhcpClientOption, error)
    public DhcpClientOption(string name, DhcpClientOptionArgs args, CustomResourceOptions? opts = null)
    public DhcpClientOption(String name, DhcpClientOptionArgs args)
    public DhcpClientOption(String name, DhcpClientOptionArgs args, CustomResourceOptions options)
    
    type: routeros:DhcpClientOption
    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 DhcpClientOptionArgs
    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 DhcpClientOptionArgs
    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 DhcpClientOptionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DhcpClientOptionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DhcpClientOptionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    Code double
    The dhcp-client option code.
    DhcpClientOptionId string
    The ID of this resource.
    Name string
    The name that will be used in dhcp-client.
    RawValue string
    raw_value is computed from value.
    Value string
    The dhcp-client option
    ___id_ double
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    Code float64
    The dhcp-client option code.
    DhcpClientOptionId string
    The ID of this resource.
    Name string
    The name that will be used in dhcp-client.
    RawValue string
    raw_value is computed from value.
    Value string
    The dhcp-client option
    ___id_ float64
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    code Double
    The dhcp-client option code.
    ___id_ Double
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ String
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    dhcpClientOptionId String
    The ID of this resource.
    name String
    The name that will be used in dhcp-client.
    rawValue String
    raw_value is computed from value.
    value String
    The dhcp-client option
    code number
    The dhcp-client option code.
    ___id_ number
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    dhcpClientOptionId string
    The ID of this resource.
    name string
    The name that will be used in dhcp-client.
    rawValue string
    raw_value is computed from value.
    value string
    The dhcp-client option
    code float
    The dhcp-client option code.
    ___id_ float
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ str
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    dhcp_client_option_id str
    The ID of this resource.
    name str
    The name that will be used in dhcp-client.
    raw_value str
    raw_value is computed from value.
    value str
    The dhcp-client option
    code Number
    The dhcp-client option code.
    ___id_ Number
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ String
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    dhcpClientOptionId String
    The ID of this resource.
    name String
    The name that will be used in dhcp-client.
    rawValue String
    raw_value is computed from value.
    value String
    The dhcp-client option

    Outputs

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

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

    Look up Existing DhcpClientOption Resource

    Get an existing DhcpClientOption 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?: DhcpClientOptionState, opts?: CustomResourceOptions): DhcpClientOption
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            ___id_: Optional[float] = None,
            ___path_: Optional[str] = None,
            code: Optional[float] = None,
            dhcp_client_option_id: Optional[str] = None,
            name: Optional[str] = None,
            raw_value: Optional[str] = None,
            value: Optional[str] = None) -> DhcpClientOption
    func GetDhcpClientOption(ctx *Context, name string, id IDInput, state *DhcpClientOptionState, opts ...ResourceOption) (*DhcpClientOption, error)
    public static DhcpClientOption Get(string name, Input<string> id, DhcpClientOptionState? state, CustomResourceOptions? opts = null)
    public static DhcpClientOption get(String name, Output<String> id, DhcpClientOptionState state, CustomResourceOptions options)
    resources:  _:    type: routeros:DhcpClientOption    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.
    The following state arguments are supported:
    Code double
    The dhcp-client option code.
    DhcpClientOptionId string
    The ID of this resource.
    Name string
    The name that will be used in dhcp-client.
    RawValue string
    raw_value is computed from value.
    Value string
    The dhcp-client option
    ___id_ double
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    Code float64
    The dhcp-client option code.
    DhcpClientOptionId string
    The ID of this resource.
    Name string
    The name that will be used in dhcp-client.
    RawValue string
    raw_value is computed from value.
    Value string
    The dhcp-client option
    ___id_ float64
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    ___id_ Double
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ String
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    code Double
    The dhcp-client option code.
    dhcpClientOptionId String
    The ID of this resource.
    name String
    The name that will be used in dhcp-client.
    rawValue String
    raw_value is computed from value.
    value String
    The dhcp-client option
    ___id_ number
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    code number
    The dhcp-client option code.
    dhcpClientOptionId string
    The ID of this resource.
    name string
    The name that will be used in dhcp-client.
    rawValue string
    raw_value is computed from value.
    value string
    The dhcp-client option
    ___id_ float
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ str
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    code float
    The dhcp-client option code.
    dhcp_client_option_id str
    The ID of this resource.
    name str
    The name that will be used in dhcp-client.
    raw_value str
    raw_value is computed from value.
    value str
    The dhcp-client option
    ___id_ Number
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ String
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    code Number
    The dhcp-client option code.
    dhcpClientOptionId String
    The ID of this resource.
    name String
    The name that will be used in dhcp-client.
    rawValue String
    raw_value is computed from value.
    value String
    The dhcp-client option

    Package Details

    Repository
    routeros terraform-routeros/terraform-provider-routeros
    License
    Notes
    This Pulumi package is based on the routeros Terraform Provider.
    routeros logo
    routeros 1.83.1 published on Monday, Apr 28, 2025 by terraform-routeros