oci.Core.DefaultDhcpOptions
Explore with Pulumi AI
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[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:
- ManageDefault stringResource Id 
- Options
List<DefaultDhcp Options Option> 
- CompartmentId string
- Dictionary<string, string>
- DisplayName string
- DomainName stringType 
- Dictionary<string, string>
- ManageDefault stringResource Id 
- Options
[]DefaultDhcp Options Option Args 
- CompartmentId string
- map[string]string
- DisplayName string
- DomainName stringType 
- map[string]string
- manageDefault StringResource Id 
- options
List<DefaultDhcp Options Option> 
- compartmentId String
- Map<String,String>
- displayName String
- domainName StringType 
- Map<String,String>
- manageDefault stringResource Id 
- options
DefaultDhcp Options Option[] 
- compartmentId string
- {[key: string]: string}
- displayName string
- domainName stringType 
- {[key: string]: string}
- manage_default_ strresource_ id 
- options
Sequence[DefaultDhcp Options Option Args] 
- compartment_id str
- Mapping[str, str]
- display_name str
- domain_name_ strtype 
- Mapping[str, str]
- manageDefault StringResource Id 
- options List<Property Map>
- compartmentId String
- Map<String>
- displayName String
- domainName StringType 
- Map<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[DefaultDhcpOptionsOptionArgs]] = None,
        state: Optional[str] = None,
        time_created: Optional[str] = None) -> DefaultDhcpOptionsfunc 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)resources:  _:    type: oci:Core:DefaultDhcpOptions    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.
- CompartmentId string
- Dictionary<string, string>
- DisplayName string
- DomainName stringType 
- Dictionary<string, string>
- ManageDefault stringResource Id 
- Options
List<DefaultDhcp Options Option> 
- State string
- TimeCreated string
- CompartmentId string
- map[string]string
- DisplayName string
- DomainName stringType 
- map[string]string
- ManageDefault stringResource Id 
- Options
[]DefaultDhcp Options Option Args 
- State string
- TimeCreated string
- compartmentId String
- Map<String,String>
- displayName String
- domainName StringType 
- Map<String,String>
- manageDefault StringResource Id 
- options
List<DefaultDhcp Options Option> 
- state String
- timeCreated String
- compartmentId string
- {[key: string]: string}
- displayName string
- domainName stringType 
- {[key: string]: string}
- manageDefault stringResource Id 
- options
DefaultDhcp Options Option[] 
- state string
- timeCreated string
- compartment_id str
- Mapping[str, str]
- display_name str
- domain_name_ strtype 
- Mapping[str, str]
- manage_default_ strresource_ id 
- options
Sequence[DefaultDhcp Options Option Args] 
- state str
- time_created str
- compartmentId String
- Map<String>
- displayName String
- domainName StringType 
- Map<String>
- manageDefault StringResource Id 
- options List<Property Map>
- state String
- timeCreated String
Supporting Types
DefaultDhcpOptionsOption, DefaultDhcpOptionsOptionArgs        
- Type string
- CustomDns List<string>Servers 
- SearchDomain List<string>Names 
- ServerType string
- Type string
- CustomDns []stringServers 
- SearchDomain []stringNames 
- ServerType string
- type String
- customDns List<String>Servers 
- searchDomain List<String>Names 
- serverType String
- type string
- customDns string[]Servers 
- searchDomain string[]Names 
- serverType string
- type str
- custom_dns_ Sequence[str]servers 
- search_domain_ Sequence[str]names 
- server_type str
- type String
- customDns List<String>Servers 
- searchDomain List<String>Names 
- serverType String
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.