Deactivates a specific number of licenses. Deactivations can be done against a specific license ID after they have persisted for at least a 90-day period.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
Specifies the ID for the specific license to deactivate against. |
|
|
Required |
Specifies the amount of capacity to deactivate against the license. |
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Deactivate a Microsoft® Windows® license.
$ec2 = new AmazonEC2(); $response = $ec2->deactivate_license('lic-1234abcd', 1); var_dump($response->isOK());Result:
bool(true)
Related Methods
Source
Method defined in services/ec2.class.php | Toggle source view (8 lines) | View on GitHub