Wählen Sie Ihre Cookie-Einstellungen aus

Wir verwenden essentielle Cookies und ähnliche Tools, die für die Bereitstellung unserer Website und Services erforderlich sind. Wir verwenden Performance-Cookies, um anonyme Statistiken zu sammeln, damit wir verstehen können, wie Kunden unsere Website nutzen, und Verbesserungen vornehmen können. Essentielle Cookies können nicht deaktiviert werden, aber Sie können auf „Anpassen“ oder „Ablehnen“ klicken, um Performance-Cookies abzulehnen.

Wenn Sie damit einverstanden sind, verwenden AWS und zugelassene Drittanbieter auch Cookies, um nützliche Features der Website bereitzustellen, Ihre Präferenzen zu speichern und relevante Inhalte, einschließlich relevanter Werbung, anzuzeigen. Um alle nicht notwendigen Cookies zu akzeptieren oder abzulehnen, klicken Sie auf „Akzeptieren“ oder „Ablehnen“. Um detailliertere Entscheidungen zu treffen, klicken Sie auf „Anpassen“.

ReleaseHosts

Fokusmodus
ReleaseHosts - Amazon Elastic Compute Cloud
Diese Seite wurde nicht in Ihre Sprache übersetzt. Übersetzung anfragen

When you no longer want to use an On-Demand Dedicated Host it can be released. On-Demand billing is stopped and the host goes into released state. The host ID of Dedicated Hosts that have been released can no longer be specified in another request, for example, to modify the host. You must stop or terminate all instances on a host before it can be released.

When Dedicated Hosts are released, it may take some time for them to stop counting toward your limit and you may receive capacity errors when trying to allocate new Dedicated Hosts. Wait a few minutes and then try again.

Released hosts still appear in a DescribeHosts response.

Request Parameters

For more information about required and optional parameters that are common to all actions, see Common Query Parameters.

HostId.N

The IDs of the Dedicated Hosts to release.

Type: Array of strings

Required: Yes

Response Elements

The following elements are returned by the service.

requestId

The ID of the request.

Type: String

successful

The IDs of the Dedicated Hosts that were successfully released.

Type: Array of strings

unsuccessful

The IDs of the Dedicated Hosts that could not be released, including an error message.

Type: Array of UnsuccessfulItem objects

Errors

For information about the errors that are common to all actions, see Common client error codes.

Examples

Example

This releases a Dedicated Host successfully.

Sample Request

https://ec2.amazonaws.com/?Action=ReleaseHosts &HostId=h-00548908djdsgfs &AUTHPARAMS

Sample Response

<ReleaseHostsResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/"> <requestId>d4904fd9-82c2-4ea5-adfe-a9cc3EXAMPLE</requestId> <unsuccessful/> <successful> <item>h-00548908djdsgfs</item> </successful> </ReleaseHostsResponse>

Example

This request is unsuccessful.

Sample Request

https://ec2.amazonaws.com/?Action=ReleaseHosts &HostId=h-00548908djdsgfs &AUTHPARAMS

Sample Response

<ReleaseHostsResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/"> <requestId>d4904fd9-82c2-4ea5-adfe-a9cc3EXAMPLE</requestId> <unsuccessful> <item> <error> <message>Dedicated host 'h-00548908djdsgfs' cannot be released as it is occupied</message> <code>Client.InvalidHost.Occupied</code< </error> <resourceId>h-00548908djdsgfs</resourceId> </item> </unsuccessful> <successful/> </ReleaseHostsResponse>

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

Auf dieser Seite

DatenschutzNutzungsbedingungen für die WebsiteCookie-Einstellungen
© 2025, Amazon Web Services, Inc. oder Tochtergesellschaften. Alle Rechte vorbehalten.