Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions packages_generated/instance/src/v1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ import type {
MigrationPlan,
PlanBlockMigrationRequest,
PrivateNIC,
ReleaseIpToIpamRequest,
ServerActionRequest,
ServerActionResponse,
ServerCompatibleTypes,
Expand Down Expand Up @@ -1646,4 +1647,17 @@ The endpoint also returns the validation_key, which must be provided to the [Mig
method: 'POST',
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/block-migration/check-organization-quotas`,
})

/**
* Releases the reserved IP without deleting the reservation.. **The IP remains available in IPAM**, which means that it is still reserved by the Organization, and can be reattached to another resource (Instance or other product).
*
* @param request - The request {@link ReleaseIpToIpamRequest}
*/
releaseIpToIpam = (request: Readonly<ReleaseIpToIpamRequest>) =>
this.client.fetch<void>({
body: '{}',
headers: jsonContentHeaders,
method: 'POST',
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam('ipId', request.ipId)}/release-to-ipam`,
})
}
5 changes: 3 additions & 2 deletions packages_generated/instance/src/v1/content.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,18 @@ export const TASK_TRANSIENT_STATUSES: TaskStatus[] = [
/** Lists transient statutes of the enum {@link VolumeServerState}. */
export const VOLUME_SERVER_TRANSIENT_STATUSES: VolumeServerState[] = [
'snapshotting',
'fetching',
'resizing',
'fetching',
'saving',
'hotsyncing',
'attaching',
]

/** Lists transient statutes of the enum {@link VolumeState}. */
export const VOLUME_TRANSIENT_STATUSES: VolumeState[] = [
'snapshotting',
'fetching',
'resizing',
'saving',
'resizing',
'hotsyncing',
]
1 change: 1 addition & 0 deletions packages_generated/instance/src/v1/index.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ export type {
PlanBlockMigrationRequest,
PrivateNIC,
PrivateNICState,
ReleaseIpToIpamRequest,
SecurityGroup,
SecurityGroupPolicy,
SecurityGroupRule,
Expand Down
16 changes: 14 additions & 2 deletions packages_generated/instance/src/v1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,11 @@ export type TaskStatus = 'pending' | 'started' | 'success' | 'failure' | 'retry'
export type VolumeServerState =
| 'available'
| 'snapshotting'
| 'fetching'
| 'resizing'
| 'fetching'
| 'saving'
| 'hotsyncing'
| 'attaching'
| 'error'

export type VolumeServerVolumeType =
Expand All @@ -124,8 +125,8 @@ export type VolumeState =
| 'available'
| 'snapshotting'
| 'fetching'
| 'resizing'
| 'saving'
| 'resizing'
| 'hotsyncing'
| 'error'

Expand Down Expand Up @@ -2447,6 +2448,17 @@ export type PlanBlockMigrationRequest = {
snapshotId?: string
}

export type ReleaseIpToIpamRequest = {
/**
* Zone to target. If none is passed will use default zone from the config.
*/
zone?: ScwZone
/**
* ID of the IP you want to release from the Instance but retain in IPAM.
*/
ipId: string
}

export type ServerActionRequest = {
/**
* Zone to target. If none is passed will use default zone from the config.
Expand Down
Loading