1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. DefaultDhcpOptions
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.Core.DefaultDhcpOptions

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    Create DefaultDhcpOptions Resource

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

    Constructor syntax

    new DefaultDhcpOptions(name: string, args: DefaultDhcpOptionsArgs, opts?: CustomResourceOptions);
    @overload
    def DefaultDhcpOptions(resource_name: str,
                           args: DefaultDhcpOptionsArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def DefaultDhcpOptions(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           manage_default_resource_id: Optional[str] = None,
                           options: Optional[Sequence[_core.DefaultDhcpOptionsOptionArgs]] = None,
                           compartment_id: Optional[str] = None,
                           defined_tags: Optional[Mapping[str, str]] = None,
                           display_name: Optional[str] = None,
                           domain_name_type: Optional[str] = None,
                           freeform_tags: Optional[Mapping[str, str]] = None)
    func NewDefaultDhcpOptions(ctx *Context, name string, args DefaultDhcpOptionsArgs, opts ...ResourceOption) (*DefaultDhcpOptions, error)
    public DefaultDhcpOptions(string name, DefaultDhcpOptionsArgs args, CustomResourceOptions? opts = null)
    public DefaultDhcpOptions(String name, DefaultDhcpOptionsArgs args)
    public DefaultDhcpOptions(String name, DefaultDhcpOptionsArgs args, CustomResourceOptions options)
    
    type: oci:Core:DefaultDhcpOptions
    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 DefaultDhcpOptionsArgs
    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 DefaultDhcpOptionsArgs
    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 DefaultDhcpOptionsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DefaultDhcpOptionsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DefaultDhcpOptionsArgs
    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 defaultDhcpOptionsResource = new Oci.Core.DefaultDhcpOptions("defaultDhcpOptionsResource", new()
    {
        ManageDefaultResourceId = "string",
        Options = new[]
        {
            new Oci.Core.Inputs.DefaultDhcpOptionsOptionArgs
            {
                Type = "string",
                CustomDnsServers = new[]
                {
                    "string",
                },
                SearchDomainNames = new[]
                {
                    "string",
                },
                ServerType = "string",
            },
        },
        CompartmentId = "string",
        DefinedTags = 
        {
            { "string", "string" },
        },
        DisplayName = "string",
        DomainNameType = "string",
        FreeformTags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := Core.NewDefaultDhcpOptions(ctx, "defaultDhcpOptionsResource", &Core.DefaultDhcpOptionsArgs{
    	ManageDefaultResourceId: pulumi.String("string"),
    	Options: core.DefaultDhcpOptionsOptionArray{
    		&core.DefaultDhcpOptionsOptionArgs{
    			Type: pulumi.String("string"),
    			CustomDnsServers: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			SearchDomainNames: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			ServerType: pulumi.String("string"),
    		},
    	},
    	CompartmentId: pulumi.String("string"),
    	DefinedTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	DisplayName:    pulumi.String("string"),
    	DomainNameType: pulumi.String("string"),
    	FreeformTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var defaultDhcpOptionsResource = new DefaultDhcpOptions("defaultDhcpOptionsResource", DefaultDhcpOptionsArgs.builder()
        .manageDefaultResourceId("string")
        .options(DefaultDhcpOptionsOptionArgs.builder()
            .type("string")
            .customDnsServers("string")
            .searchDomainNames("string")
            .serverType("string")
            .build())
        .compartmentId("string")
        .definedTags(Map.of("string", "string"))
        .displayName("string")
        .domainNameType("string")
        .freeformTags(Map.of("string", "string"))
        .build());
    
    default_dhcp_options_resource = oci.core.DefaultDhcpOptions("defaultDhcpOptionsResource",
        manage_default_resource_id="string",
        options=[{
            "type": "string",
            "custom_dns_servers": ["string"],
            "search_domain_names": ["string"],
            "server_type": "string",
        }],
        compartment_id="string",
        defined_tags={
            "string": "string",
        },
        display_name="string",
        domain_name_type="string",
        freeform_tags={
            "string": "string",
        })
    
    const defaultDhcpOptionsResource = new oci.core.DefaultDhcpOptions("defaultDhcpOptionsResource", {
        manageDefaultResourceId: "string",
        options: [{
            type: "string",
            customDnsServers: ["string"],
            searchDomainNames: ["string"],
            serverType: "string",
        }],
        compartmentId: "string",
        definedTags: {
            string: "string",
        },
        displayName: "string",
        domainNameType: "string",
        freeformTags: {
            string: "string",
        },
    });
    
    type: oci:Core:DefaultDhcpOptions
    properties:
        compartmentId: string
        definedTags:
            string: string
        displayName: string
        domainNameType: string
        freeformTags:
            string: string
        manageDefaultResourceId: string
        options:
            - customDnsServers:
                - string
              searchDomainNames:
                - string
              serverType: string
              type: string
    

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

    ManageDefaultResourceId string
    Options List<DefaultDhcpOptionsOption>
    CompartmentId string
    DefinedTags Dictionary<string, string>
    DisplayName string
    DomainNameType string
    FreeformTags Dictionary<string, string>

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    TimeCreated string
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    TimeCreated string
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    timeCreated String
    id string
    The provider-assigned unique ID for this managed resource.
    state string
    timeCreated string
    id str
    The provider-assigned unique ID for this managed resource.
    state str
    time_created str
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    timeCreated String

    Look up Existing DefaultDhcpOptions Resource

    Get an existing DefaultDhcpOptions 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?: DefaultDhcpOptionsState, opts?: CustomResourceOptions): DefaultDhcpOptions
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            compartment_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, str]] = None,
            display_name: Optional[str] = None,
            domain_name_type: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, str]] = None,
            manage_default_resource_id: Optional[str] = None,
            options: Optional[Sequence[_core.DefaultDhcpOptionsOptionArgs]] = None,
            state: Optional[str] = None,
            time_created: Optional[str] = None) -> DefaultDhcpOptions
    func GetDefaultDhcpOptions(ctx *Context, name string, id IDInput, state *DefaultDhcpOptionsState, opts ...ResourceOption) (*DefaultDhcpOptions, error)
    public static DefaultDhcpOptions Get(string name, Input<string> id, DefaultDhcpOptionsState? state, CustomResourceOptions? opts = null)
    public static DefaultDhcpOptions get(String name, Output<String> id, DefaultDhcpOptionsState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    CompartmentId string
    DefinedTags Dictionary<string, string>
    DisplayName string
    DomainNameType string
    FreeformTags Dictionary<string, string>
    ManageDefaultResourceId string
    Options List<DefaultDhcpOptionsOption>
    State string
    TimeCreated string
    compartmentId string
    definedTags {[key: string]: string}
    displayName string
    domainNameType string
    freeformTags {[key: string]: string}
    manageDefaultResourceId string
    options DefaultDhcpOptionsOption[]
    state string
    timeCreated string

    Supporting Types

    DefaultDhcpOptionsOption, DefaultDhcpOptionsOptionArgs

    Type string
    CustomDnsServers List<string>
    SearchDomainNames List<string>
    ServerType string
    Type string
    CustomDnsServers []string
    SearchDomainNames []string
    ServerType string
    type String
    customDnsServers List<String>
    searchDomainNames List<String>
    serverType String
    type string
    customDnsServers string[]
    searchDomainNames string[]
    serverType string
    type str
    custom_dns_servers Sequence[str]
    search_domain_names Sequence[str]
    server_type str
    type String
    customDnsServers List<String>
    searchDomainNames List<String>
    serverType String

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi