Creates a set of DHCP options that you can then associate with one or more VPCs, causing all existing and new instances that you launch in those VPCs to use the set of DHCP options. The following table lists the individual DHCP options you can specify. For more information about the options, go to http://www.ietf.org/rfc/rfc2132.txt
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
A set of one or more DHCP configurations.
|
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Create a new set of DHCP options.
$ec2 = new AmazonEC2(); $response = $ec2->create_dhcp_options(array( array('Key' => 'domain-name', 'Value' => 'example.com'), array('Key' => 'ntp-servers', 'Value' => '140.142.16.34'), array('Key' => 'domain-name-servers', 'Value' => array('8.8.8.8', '8.8.4.4', '208.67.222.222', '208.67.222.220')), )); var_dump($response->isOK());Result:
bool(true)
Related Methods
Source
Method defined in services/ec2.class.php | Toggle source view (11 lines) | View on GitHub