CreateDhcpOptions

POST {{baseUrl}}/dhcps

Creates a new set of DHCP options for the specified VCN. For more information, see DhcpOptions.

For the purposes of access control, you must provide the OCID of the compartment where you want the set of DHCP options to reside. Notice that the set of options doesn't have to be in the same compartment as the VCN, subnets, or other Networking Service components. If you're not sure which compartment to use, put the set of DHCP options in the same compartment as the VCN. For more information about compartments and access control, see Overview of the IAM Service. For information about OCIDs, see Resource Identifiers.

You may optionally specify a display name for the set of DHCP options, otherwise a default is provided. It does not have to be unique, and you can change it. Avoid entering confidential information.

Request Body

{"compartmentId"=>"{{compartment_ocid}}", "options"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "vcnId"=>"nisi sed dolor", "displayName"=>"ipsum cillum culpa"}

HEADERS

KeyDatatypeRequiredDescription
opc-retry-tokenstringA token that uniquely identifies a request so it can be retried in case of a timeout or
server error without risk of executing that same action again. Retry tokens expire after 24
hours, but can be invalidated before then due to conflicting operations (for example, if a resource
has been deleted and purged from the system, then a retry of the original creation request
may be rejected).
Content-Typestring
Datestring(Required) Current Date
Authorizationstring(Required) Signature Authentication on Authorization header
x-content-sha256string(Required) Content sha256 for POST, PUT and PATCH operations

RESPONSES

status: OK

{&quot;id&quot;:&quot;Lorem&quot;,&quot;compartmentId&quot;:&quot;sunt irure quis voluptate&quot;,&quot;options&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}],&quot;lifecycleState&quot;:&quot;PROVISIONING&quot;,&quot;timeCreated&quot;:&quot;1955-11-12T13:52:06.898Z&quot;,&quot;vcnId&quot;:&quot;nostrud ex consequat&quot;,&quot;definedTags&quot;:{},&quot;displayName&quot;:&quot;consequat quis magna&quot;,&quot;freeformTags&quot;:{}}