Types
GetPlacementGroupsIdResponse = object
GetPlacementGroupsResponse = object
PlacementGroupSortOption = enum sortId = "id", sortIdAsc = "id:asc", sortIdDesc = "id:desc", sortName = "name", sortNameAsc = "name:asc", sortNameDesc = "name:desc", sortCreated = "created", sortCreatedAsc = "created:asc", sortCreatedDesc = "created:desc"
PlacementGroupTypeOption = enum typeSpread = "spread"
PostPlacementGroupsResponse = object
PutPlacementGroupsIdResponse = object
Procs
proc deletePlacementGroupsId(client: HetznerClient; id: int64): Future[ AsyncResponse] {....stackTrace: false, raises: [Exception, ValueError, HttpRequestError, LibraryError, SslError, OSError, IOError, ProtocolError, KeyError], tags: [RootEffect, ReadIOEffect, TimeEffect], forbids: [].}
- Deletes a PlacementGroup.
proc getPlacementGroups(client: HetznerClient; sort: set[PlacementGroupSortOption] = {}; name: string = default(string); labelSelector: string = default(string); type: set[PlacementGroupTypeOption] = {}): Future[ GetPlacementGroupsResponse] {....stackTrace: false, raises: [Exception, ValueError, KeyError, HttpRequestError, LibraryError, SslError, OSError, IOError, ProtocolError, OpenParserJsonError, HetznerClientError], tags: [RootEffect, ReadIOEffect, TimeEffect], forbids: [].}
- Returns all PlacementGroup objects.
proc getPlacementGroupsId(client: HetznerClient; id: int64): Future[ GetPlacementGroupsIdResponse] {....stackTrace: false, raises: [Exception, ValueError, HttpRequestError, LibraryError, SslError, OSError, IOError, ProtocolError, KeyError, OpenParserJsonError, HetznerClientError], tags: [ RootEffect, ReadIOEffect, TimeEffect], forbids: [].}
- Gets a specific PlacementGroup object.
proc postPlacementGroups(client: HetznerClient; body: PostPlacementGroupsRequest): Future[ PostPlacementGroupsResponse] {....stackTrace: false, raises: [Exception, ValueError, HttpRequestError, LibraryError, SslError, OSError, IOError, ProtocolError, KeyError, OpenParserJsonError, HetznerClientError], tags: [ RootEffect, ReadIOEffect, TimeEffect], forbids: [].}
- Creates a new PlacementGroup.
proc putPlacementGroupsId(client: HetznerClient; id: int64; body: PutPlacementGroupsIdRequest): Future[ PutPlacementGroupsIdResponse] {....stackTrace: false, raises: [Exception, ValueError, HttpRequestError, LibraryError, SslError, OSError, IOError, ProtocolError, KeyError, OpenParserJsonError, HetznerClientError], tags: [ RootEffect, ReadIOEffect, TimeEffect], forbids: [].}
-
Updates the PlacementGroup properties.
Note that when updating labels, the PlacementGroup’s current set of labels will be replaced with the labels provided in the request body. So, for example, if you want to add a new label, you have to provide all existing labels plus the new label in the request body.
Note: if the PlacementGroup object changes during the request, the response will be a “conflict” error.