@pantechdynamic/sdk 0.1.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/README.md +28 -4
- package/dist/index.cjs +147 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1849 -162
- package/dist/index.d.ts +1849 -162
- package/dist/index.js +147 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1185,7 +1185,7 @@ interface paths {
|
|
|
1185
1185
|
*
|
|
1186
1186
|
* Send an `Idempotency-Key`. A retry with the same key returns the original operation instead of making the change twice.
|
|
1187
1187
|
*
|
|
1188
|
-
* **Scope:** `write`.
|
|
1188
|
+
* **Scope:** `write`. Closing access never needs `delete`, even for an AI app.
|
|
1189
1189
|
*/
|
|
1190
1190
|
delete: operations["revokeSSHAccess"];
|
|
1191
1191
|
options?: never;
|
|
@@ -1518,7 +1518,7 @@ interface paths {
|
|
|
1518
1518
|
};
|
|
1519
1519
|
/**
|
|
1520
1520
|
* List load balancers
|
|
1521
|
-
* @description Your load balancers, newest first, each with its targets. Deleted
|
|
1521
|
+
* @description Your load balancers, newest first, each with its targets. Deleted ones are left out; one whose create failed stays listed with status `failed` until you delete it. Narrow it with `network_id` or `public_ip_id`.
|
|
1522
1522
|
*
|
|
1523
1523
|
* **Scope:** `read`.
|
|
1524
1524
|
*/
|
|
@@ -1852,7 +1852,7 @@ interface paths {
|
|
|
1852
1852
|
};
|
|
1853
1853
|
/**
|
|
1854
1854
|
* List Kubernetes versions
|
|
1855
|
-
* @description The Kubernetes versions you can create clusters with, newest first, each in one zone. `ha_zone_ids` are the zones where a highly available control plane (3 control nodes) can be created now. A version is withdrawn from new clusters before its upstream end of life; clusters already on it keep running it.
|
|
1855
|
+
* @description The Kubernetes versions you can create clusters with, newest first, each in one zone. `ha_zone_ids` are the zones where a highly available control plane (3 control nodes) can be created now, and `fixed_node_sizes` the zones that build nodes only at fixed sizes, one entry per size, where only a plan of one of those sizes is accepted. A version is withdrawn from new clusters before its upstream end of life; clusters already on it keep running it.
|
|
1856
1856
|
*
|
|
1857
1857
|
* **Scope:** `read`.
|
|
1858
1858
|
*/
|
|
@@ -1950,7 +1950,9 @@ interface paths {
|
|
|
1950
1950
|
put?: never;
|
|
1951
1951
|
/**
|
|
1952
1952
|
* Upgrade a Kubernetes cluster
|
|
1953
|
-
* @description Moves the cluster to
|
|
1953
|
+
* @description Moves the cluster to one of its `available_upgrades` (the next patch, or the next minor version). Upgrades never happen on their own and never go down.
|
|
1954
|
+
*
|
|
1955
|
+
* Today every cluster runs the version it was created with: its `available_upgrades` is empty and an upgrade is refused with `409 KUBERNETES_UPGRADE_NOT_AVAILABLE`. To move to a newer version, create a new cluster on it and move your workloads.
|
|
1954
1956
|
*
|
|
1955
1957
|
* Returns `202 Accepted` with an `operation_id` (also in the `Location` header). The change happens in the background: poll `GET /public/v1/operations/{operation_id}`, or stream `/events`, until `status` is `succeeded` or `failed`; a failed operation carries a stable `failure.code` and a readable `failure.reason`.
|
|
1956
1958
|
*
|
|
@@ -1975,9 +1977,12 @@ interface paths {
|
|
|
1975
1977
|
get?: never;
|
|
1976
1978
|
put?: never;
|
|
1977
1979
|
/**
|
|
1978
|
-
*
|
|
1979
|
-
* @description
|
|
1980
|
-
*
|
|
1980
|
+
* Change the cluster's node plan
|
|
1981
|
+
* @description Moves the cluster's control node and default workers to another node plan, one node at a time. Each worker is drained (its pods are moved to the other nodes, within their disruption budgets), stopped, given the new size and a larger disk, and started again, and the next node waits until it has rejoined the cluster. The control node goes last; the Kubernetes API is unavailable for the minutes it restarts, while workloads keep running. A cluster with one worker has no other node to move its pods to while that worker restarts.
|
|
1982
|
+
*
|
|
1983
|
+
* The cluster keeps its current plan, and is billed at it, until every node runs the new one. If the change cannot finish (for example, there is no room for the larger nodes), the nodes are moved back to the plan the cluster had and the operation fails with `KUBERNETES_NODE_RESIZE_FAILED`.
|
|
1984
|
+
*
|
|
1985
|
+
* A node's disk can only grow: a plan with a smaller disk than the nodes have is refused with `409 KUBERNETES_NODE_DISK_CANNOT_SHRINK`. Sending the plan the cluster already runs changes nothing. Node pools keep their own plans.
|
|
1981
1986
|
*
|
|
1982
1987
|
* Returns `202 Accepted` with an `operation_id` (also in the `Location` header). The change happens in the background: poll `GET /public/v1/operations/{operation_id}`, or stream `/events`, until `status` is `succeeded` or `failed`.
|
|
1983
1988
|
*
|
|
@@ -2003,7 +2008,7 @@ interface paths {
|
|
|
2003
2008
|
put?: never;
|
|
2004
2009
|
/**
|
|
2005
2010
|
* Upgrade Kubernetes cluster networking
|
|
2006
|
-
* @description
|
|
2011
|
+
* @description Changes the API server allow-list (`api_allowed_cidrs`). A cluster's `cni_plugin`, `pod_cidr` and `service_cidr` are set when it is created: sending a different value is refused with `409 KUBERNETES_NETWORK_NOT_CHANGEABLE`, and sending the current value again changes nothing.
|
|
2007
2012
|
*
|
|
2008
2013
|
* Returns `202 Accepted` with an `operation_id` (also in the `Location` header). The change happens in the background: poll `GET /public/v1/operations/{operation_id}`, or stream `/events`, until `status` is `succeeded` or `failed`.
|
|
2009
2014
|
*
|
|
@@ -2081,7 +2086,7 @@ interface paths {
|
|
|
2081
2086
|
put?: never;
|
|
2082
2087
|
/**
|
|
2083
2088
|
* Download a kubeconfig
|
|
2084
|
-
* @description The cluster's admin kubeconfig, for `kubectl`. It holds a long-lived cluster-admin credential: store it like a password. It is fetched fresh on each call and is not kept by the platform. Available while the cluster is running. It is a `POST` that needs a `write` key so that a read-only key can never fetch a cluster-admin credential; the response is `Cache-Control: no-store`.
|
|
2089
|
+
* @description The cluster's admin kubeconfig, for `kubectl`. It holds a long-lived cluster-admin credential: store it like a password. It is fetched fresh on each call and is not kept by the platform; each download is recorded (who, which key, when). Available while the cluster is running. It is a `POST` that needs a `write` key so that a read-only key can never fetch a cluster-admin credential; the response is `Cache-Control: no-store`.
|
|
2085
2090
|
*
|
|
2086
2091
|
* **Scope:** `write`.
|
|
2087
2092
|
*/
|
|
@@ -2195,7 +2200,7 @@ interface paths {
|
|
|
2195
2200
|
*
|
|
2196
2201
|
* Public routing needs a cluster in a VPC subnet: it uses the VPC's public address. Port 22 and the cluster's API port are reserved.
|
|
2197
2202
|
*
|
|
2198
|
-
* Errors: `404 KUBERNETES_CLUSTER_NOT_FOUND`; `404 KUBERNETES_SERVICE_NOT_FOUND` (apply the Service first); `409 PORT_IN_USE` (another service, cluster or resource uses that public port; choose another); `409 KUBERNETES_ROUTING_UNAVAILABLE` (a cluster with no VPC address); `409 KUBERNETES_CLUSTER_NOT_RUNNING`; `422 VALIDATION_FAILED` (`service_name`, `public_port` or `node_port`; or `INVALID_KUBERNETES_MANIFEST` when the cluster refused the change); `503 KUBERNETES_API_UNREACHABLE` (retry).
|
|
2203
|
+
* Errors: `404 KUBERNETES_CLUSTER_NOT_FOUND`; `404 KUBERNETES_SERVICE_NOT_FOUND` (apply the Service first); `409 PORT_IN_USE` (another service, cluster or resource uses that public port; choose another); `409 KUBERNETES_ROUTING_UNAVAILABLE` (a cluster with no VPC address); `409 IP_POOL_EXHAUSTED` (no public address is free in the zone; try again later); `409 KUBERNETES_CLUSTER_NOT_RUNNING`; `422 VALIDATION_FAILED` (`service_name`, `public_port` or `node_port`; or `INVALID_KUBERNETES_MANIFEST` when the cluster refused the change); `503 KUBERNETES_API_UNREACHABLE` (retry).
|
|
2199
2204
|
*/
|
|
2200
2205
|
post: operations["exposeKubernetesService"];
|
|
2201
2206
|
delete?: never;
|
|
@@ -2219,7 +2224,7 @@ interface paths {
|
|
|
2219
2224
|
*
|
|
2220
2225
|
* Every cluster on a shared address gets its own API port: the first 6443, the next 6444, and so on. A new cluster's API port is routed automatically once it is running; call this after exposing or unexposing services with kubectl. If the API server does not answer, only its own route is ensured and no service route is removed.
|
|
2221
2226
|
*
|
|
2222
|
-
* Errors: `404 KUBERNETES_CLUSTER_NOT_FOUND`; `409 PORT_IN_USE`; `409 KUBERNETES_ROUTING_UNAVAILABLE` (a cluster with no VPC address); `409 KUBERNETES_CLUSTER_NOT_RUNNING`.
|
|
2227
|
+
* Errors: `404 KUBERNETES_CLUSTER_NOT_FOUND`; `409 PORT_IN_USE`; `409 KUBERNETES_ROUTING_UNAVAILABLE` (a cluster with no VPC address); `409 IP_POOL_EXHAUSTED` (no public address is free in the zone; try again later); `409 KUBERNETES_CLUSTER_NOT_RUNNING`.
|
|
2223
2228
|
*/
|
|
2224
2229
|
post: operations["syncKubernetesRouting"];
|
|
2225
2230
|
delete?: never;
|
|
@@ -2243,7 +2248,7 @@ interface paths {
|
|
|
2243
2248
|
put?: never;
|
|
2244
2249
|
/**
|
|
2245
2250
|
* Create a node pool
|
|
2246
|
-
* @description Adds a node pool: workers of their own plan, joined with the pool's labels, the label `pantech.io/node-pool=<name>` and the pool's taints, so workloads choose it with a nodeSelector and tolerations. Each worker is billed as a VM of the pool's plan once it has joined (`observed_workers`). With autoscaling on, the platform adds a worker when a pod the pool could run is waiting for room, and removes the newest one after 10 idle minutes. A pool's name is unique in its cluster: sending the same pool again is answered as a replay, another pool under a taken name is `409 NODE_POOL_NAME_TAKEN`. In a zone
|
|
2251
|
+
* @description Adds a node pool: workers of their own plan, joined with the pool's labels, the label `pantech.io/node-pool=<name>` and the pool's taints, so workloads choose it with a nodeSelector and tolerations. Each worker is billed as a VM of the pool's plan once it has joined (`observed_workers`). With autoscaling on, the platform adds a worker when a pod the pool could run is waiting for room, and removes the newest one after 10 idle minutes. A pool's name is unique in its cluster: sending the same pool again is answered as a replay, another pool under a taken name is `409 NODE_POOL_NAME_TAKEN`. In a zone listed in `fixed_node_sizes` on the versions list, the plan must be one of that zone's sizes (`422 KUBERNETES_PLAN_NOT_IN_ZONE`).
|
|
2247
2252
|
*/
|
|
2248
2253
|
post: operations["createKubernetesNodePool"];
|
|
2249
2254
|
delete?: never;
|
|
@@ -3186,6 +3191,230 @@ interface paths {
|
|
|
3186
3191
|
patch?: never;
|
|
3187
3192
|
trace?: never;
|
|
3188
3193
|
};
|
|
3194
|
+
"/public/v1/cloud-connections": {
|
|
3195
|
+
parameters: {
|
|
3196
|
+
query?: never;
|
|
3197
|
+
header?: never;
|
|
3198
|
+
path?: never;
|
|
3199
|
+
cookie?: never;
|
|
3200
|
+
};
|
|
3201
|
+
/**
|
|
3202
|
+
* List cloud connections
|
|
3203
|
+
* @description Your organization's connections to other cloud accounts, newest first. Each carries its setup: the template that creates the read-only role in your account.
|
|
3204
|
+
*
|
|
3205
|
+
* **Scope:** `read`.
|
|
3206
|
+
*/
|
|
3207
|
+
get: operations["listCloudConnections"];
|
|
3208
|
+
put?: never;
|
|
3209
|
+
/**
|
|
3210
|
+
* Connect a cloud account
|
|
3211
|
+
* @description Starts a connection to an AWS account. Nothing is shared yet: the response's `setup` holds a CloudFormation template (and, when available, a one-click `quick_create_url`) that creates, in your AWS account, a read-only role only Pantech can assume, with short-lived tokens for this one connection. No access keys are ever sent to Pantech.
|
|
3212
|
+
*
|
|
3213
|
+
* Create the stack, then send its `RoleArn` output with `PATCH /public/v1/cloud-connections/{connection_id}`. At most 10 connections per organization. Owners and admins only.
|
|
3214
|
+
*
|
|
3215
|
+
* **Idempotency:** a retry with the same `Idempotency-Key` returns the connection the first request made; the same key with a different name returns `409 IDEMPOTENCY_CONFLICT`.
|
|
3216
|
+
*
|
|
3217
|
+
* **Scope:** `write`.
|
|
3218
|
+
*/
|
|
3219
|
+
post: operations["createCloudConnection"];
|
|
3220
|
+
delete?: never;
|
|
3221
|
+
options?: never;
|
|
3222
|
+
head?: never;
|
|
3223
|
+
patch?: never;
|
|
3224
|
+
trace?: never;
|
|
3225
|
+
};
|
|
3226
|
+
"/public/v1/cloud-connections/{connection_id}": {
|
|
3227
|
+
parameters: {
|
|
3228
|
+
query?: never;
|
|
3229
|
+
header?: never;
|
|
3230
|
+
path?: never;
|
|
3231
|
+
cookie?: never;
|
|
3232
|
+
};
|
|
3233
|
+
/**
|
|
3234
|
+
* Get a cloud connection
|
|
3235
|
+
* @description One connection, with its status and setup. `status` is `awaiting_role` until you send the role ARN, `verifying` while Pantech tries it, then `connected` or `failed` (see `failure`).
|
|
3236
|
+
*
|
|
3237
|
+
* **Scope:** `read`.
|
|
3238
|
+
*/
|
|
3239
|
+
get: operations["getCloudConnection"];
|
|
3240
|
+
put?: never;
|
|
3241
|
+
post?: never;
|
|
3242
|
+
/**
|
|
3243
|
+
* Disconnect a cloud account
|
|
3244
|
+
* @description Removes the connection and its scans from Pantech; migration plans made from it stay. To revoke access on the AWS side too, delete the CloudFormation stack. Disconnecting only takes access away, so it needs `write`, not `delete`. Owners and admins only.
|
|
3245
|
+
*
|
|
3246
|
+
* **Scope:** `write`.
|
|
3247
|
+
*/
|
|
3248
|
+
delete: operations["deleteCloudConnection"];
|
|
3249
|
+
options?: never;
|
|
3250
|
+
head?: never;
|
|
3251
|
+
/**
|
|
3252
|
+
* Update a cloud connection
|
|
3253
|
+
* @description Renames a connection, sets the role ARN your stack created, or retries a failed check (`retry: true`). Setting `role_arn` or `retry` queues a verification: Pantech assumes the role and reads which AWS account it belongs to, usually within a minute. Owners and admins only.
|
|
3254
|
+
*
|
|
3255
|
+
* **Scope:** `write`.
|
|
3256
|
+
*/
|
|
3257
|
+
patch: operations["updateCloudConnection"];
|
|
3258
|
+
trace?: never;
|
|
3259
|
+
};
|
|
3260
|
+
"/public/v1/cloud-connections/{connection_id}/scans": {
|
|
3261
|
+
parameters: {
|
|
3262
|
+
query?: never;
|
|
3263
|
+
header?: never;
|
|
3264
|
+
path?: never;
|
|
3265
|
+
cookie?: never;
|
|
3266
|
+
};
|
|
3267
|
+
/**
|
|
3268
|
+
* List scans
|
|
3269
|
+
* @description A connection's scans, newest first, without their inventories. The 10 newest finished scans are kept.
|
|
3270
|
+
*
|
|
3271
|
+
* **Scope:** `read`.
|
|
3272
|
+
*/
|
|
3273
|
+
get: operations["listCloudScans"];
|
|
3274
|
+
put?: never;
|
|
3275
|
+
/**
|
|
3276
|
+
* Scan a cloud account
|
|
3277
|
+
* @description Queues a read of everything the role can see: servers, disks, networks, firewall groups, public addresses, load balancers, databases, bucket names, users, SSH keys and the last three months of spend, in every enabled region. Follow it with `GET /public/v1/cloud-scans/{scan_id}` until `status` is `succeeded` or `failed`; most accounts take under five minutes. Reading spend costs USD 0.01 on your AWS bill. Owners and admins only.
|
|
3278
|
+
*
|
|
3279
|
+
* **Scope:** `write`.
|
|
3280
|
+
*/
|
|
3281
|
+
post: operations["startCloudScan"];
|
|
3282
|
+
delete?: never;
|
|
3283
|
+
options?: never;
|
|
3284
|
+
head?: never;
|
|
3285
|
+
patch?: never;
|
|
3286
|
+
trace?: never;
|
|
3287
|
+
};
|
|
3288
|
+
"/public/v1/cloud-scans/{scan_id}": {
|
|
3289
|
+
parameters: {
|
|
3290
|
+
query?: never;
|
|
3291
|
+
header?: never;
|
|
3292
|
+
path?: never;
|
|
3293
|
+
cookie?: never;
|
|
3294
|
+
};
|
|
3295
|
+
/**
|
|
3296
|
+
* Get a scan
|
|
3297
|
+
* @description A scan's status, what it found (`counts`, `cost`, `regions`), and the parts it could not read (`warnings`). Add `include=inventory` for every item it found. Names and tags in the inventory are your own text, returned unchanged.
|
|
3298
|
+
*
|
|
3299
|
+
* **Scope:** `read`.
|
|
3300
|
+
*/
|
|
3301
|
+
get: operations["getCloudScan"];
|
|
3302
|
+
put?: never;
|
|
3303
|
+
post?: never;
|
|
3304
|
+
delete?: never;
|
|
3305
|
+
options?: never;
|
|
3306
|
+
head?: never;
|
|
3307
|
+
patch?: never;
|
|
3308
|
+
trace?: never;
|
|
3309
|
+
};
|
|
3310
|
+
"/public/v1/migrations": {
|
|
3311
|
+
parameters: {
|
|
3312
|
+
query?: never;
|
|
3313
|
+
header?: never;
|
|
3314
|
+
path?: never;
|
|
3315
|
+
cookie?: never;
|
|
3316
|
+
};
|
|
3317
|
+
/**
|
|
3318
|
+
* List migrations
|
|
3319
|
+
* @description Your organization's migration plans, newest first, without their items or estimate.
|
|
3320
|
+
*
|
|
3321
|
+
* **Scope:** `read`.
|
|
3322
|
+
*/
|
|
3323
|
+
get: operations["listMigrations"];
|
|
3324
|
+
put?: never;
|
|
3325
|
+
/**
|
|
3326
|
+
* Plan a migration
|
|
3327
|
+
* @description Builds a plan from a scan that succeeded: each server, disk, network, firewall group, database, key and person mapped to its Pantech equivalent, sized against today's plans, with anything that cannot move yet flagged and explained. Nothing is created: the plan is something to review, edit and export. `region` defaults to the first Pantech region. At most 25 migrations per organization. Owners and admins only.
|
|
3328
|
+
*
|
|
3329
|
+
* The response includes a live price comparison: Pantech's monthly price for the planned servers, disks and networks next to the source account's average monthly bill.
|
|
3330
|
+
*
|
|
3331
|
+
* **Scope:** `write`.
|
|
3332
|
+
*/
|
|
3333
|
+
post: operations["createMigration"];
|
|
3334
|
+
delete?: never;
|
|
3335
|
+
options?: never;
|
|
3336
|
+
head?: never;
|
|
3337
|
+
patch?: never;
|
|
3338
|
+
trace?: never;
|
|
3339
|
+
};
|
|
3340
|
+
"/public/v1/migrations/{migration_id}": {
|
|
3341
|
+
parameters: {
|
|
3342
|
+
query?: never;
|
|
3343
|
+
header?: never;
|
|
3344
|
+
path?: never;
|
|
3345
|
+
cookie?: never;
|
|
3346
|
+
};
|
|
3347
|
+
/**
|
|
3348
|
+
* Get a migration
|
|
3349
|
+
* @description A plan with every item and a price comparison computed now, from current prices.
|
|
3350
|
+
*
|
|
3351
|
+
* **Scope:** `read`.
|
|
3352
|
+
*/
|
|
3353
|
+
get: operations["getMigration"];
|
|
3354
|
+
put?: never;
|
|
3355
|
+
post?: never;
|
|
3356
|
+
/**
|
|
3357
|
+
* Delete a migration
|
|
3358
|
+
* @description Deletes a plan. Nothing in Pantech or in your other cloud is touched. Owners and admins only.
|
|
3359
|
+
*
|
|
3360
|
+
* **Scope:** `write`. Destructive: an AI app's key also needs `delete`.
|
|
3361
|
+
*/
|
|
3362
|
+
delete: operations["deleteMigration"];
|
|
3363
|
+
options?: never;
|
|
3364
|
+
head?: never;
|
|
3365
|
+
/**
|
|
3366
|
+
* Rename a migration
|
|
3367
|
+
* @description Changes a plan's name. Owners and admins only.
|
|
3368
|
+
*
|
|
3369
|
+
* **Scope:** `write`.
|
|
3370
|
+
*/
|
|
3371
|
+
patch: operations["renameMigration"];
|
|
3372
|
+
trace?: never;
|
|
3373
|
+
};
|
|
3374
|
+
"/public/v1/migrations/{migration_id}/items": {
|
|
3375
|
+
parameters: {
|
|
3376
|
+
query?: never;
|
|
3377
|
+
header?: never;
|
|
3378
|
+
path?: never;
|
|
3379
|
+
cookie?: never;
|
|
3380
|
+
};
|
|
3381
|
+
get?: never;
|
|
3382
|
+
put?: never;
|
|
3383
|
+
post?: never;
|
|
3384
|
+
delete?: never;
|
|
3385
|
+
options?: never;
|
|
3386
|
+
head?: never;
|
|
3387
|
+
/**
|
|
3388
|
+
* Edit a plan item
|
|
3389
|
+
* @description Changes one item, named by its `key`: leave it out of the move (`excluded`), choose another plan (`plan_slug`, for servers and databases), a size (`storage_gb`, for disks and databases), an address range (`cidr`, for networks and subnets), or a person's `role` and `email`. Items flagged as unsupported stay unsupported. Owners and admins only.
|
|
3390
|
+
*
|
|
3391
|
+
* **Scope:** `write`.
|
|
3392
|
+
*/
|
|
3393
|
+
patch: operations["updateMigrationItem"];
|
|
3394
|
+
trace?: never;
|
|
3395
|
+
};
|
|
3396
|
+
"/public/v1/migrations/{migration_id}/terraform": {
|
|
3397
|
+
parameters: {
|
|
3398
|
+
query?: never;
|
|
3399
|
+
header?: never;
|
|
3400
|
+
path?: never;
|
|
3401
|
+
cookie?: never;
|
|
3402
|
+
};
|
|
3403
|
+
/**
|
|
3404
|
+
* Export a migration as Terraform
|
|
3405
|
+
* @description The plan's planned items as Terraform for the `Pantech-Dynamics/pantechdynamics` provider: `main.tf` and `variables.tf`. Values Pantech cannot know (the image to start from, an SSH key, disk offerings, database passwords) are variables without defaults. Review it, then run `terraform plan`.
|
|
3406
|
+
*
|
|
3407
|
+
* **Scope:** `read`.
|
|
3408
|
+
*/
|
|
3409
|
+
get: operations["exportMigrationTerraform"];
|
|
3410
|
+
put?: never;
|
|
3411
|
+
post?: never;
|
|
3412
|
+
delete?: never;
|
|
3413
|
+
options?: never;
|
|
3414
|
+
head?: never;
|
|
3415
|
+
patch?: never;
|
|
3416
|
+
trace?: never;
|
|
3417
|
+
};
|
|
3189
3418
|
}
|
|
3190
3419
|
interface components {
|
|
3191
3420
|
schemas: {
|
|
@@ -3223,7 +3452,7 @@ interface components {
|
|
|
3223
3452
|
* @default ingress
|
|
3224
3453
|
* @enum {string}
|
|
3225
3454
|
*/
|
|
3226
|
-
direction
|
|
3455
|
+
direction?: "ingress" | "egress";
|
|
3227
3456
|
/**
|
|
3228
3457
|
* @description `tcp`, `udp`, `icmp` or `all`.
|
|
3229
3458
|
* @enum {string}
|
|
@@ -3259,7 +3488,7 @@ interface components {
|
|
|
3259
3488
|
* @default allow
|
|
3260
3489
|
* @enum {string}
|
|
3261
3490
|
*/
|
|
3262
|
-
action
|
|
3491
|
+
action?: "allow" | "deny";
|
|
3263
3492
|
};
|
|
3264
3493
|
CreateInstanceRequest: {
|
|
3265
3494
|
/**
|
|
@@ -3316,6 +3545,12 @@ interface components {
|
|
|
3316
3545
|
tags?: {
|
|
3317
3546
|
[key: string]: string;
|
|
3318
3547
|
};
|
|
3548
|
+
/**
|
|
3549
|
+
* @description Installs the Pantech agent when the instance first boots and connects it to your organization, so agent sessions (`POST /public/v1/instances/{instance_id}/agent-sessions`) can start with no login to the instance. The agent connects out; nothing is opened on the instance. Set at creation only.
|
|
3550
|
+
* @default false
|
|
3551
|
+
* @example true
|
|
3552
|
+
*/
|
|
3553
|
+
agent_enabled?: boolean;
|
|
3319
3554
|
};
|
|
3320
3555
|
CreateNetworkRequest: {
|
|
3321
3556
|
/**
|
|
@@ -3341,12 +3576,18 @@ interface components {
|
|
|
3341
3576
|
*/
|
|
3342
3577
|
name: string;
|
|
3343
3578
|
/**
|
|
3344
|
-
* @description The zone to place the load balancer in.
|
|
3345
|
-
* @example
|
|
3579
|
+
* @description The zone to place the load balancer in, by its code as `GET /public/v1/regions` lists it.
|
|
3580
|
+
* @example af-abj-1
|
|
3346
3581
|
*/
|
|
3347
3582
|
zone_id?: string;
|
|
3348
3583
|
/**
|
|
3349
|
-
* @description
|
|
3584
|
+
* @description The listener protocol. Only `tcp` is offered: HTTP and HTTPS are balanced as `tcp` and reach your instances unchanged, so serve TLS on the instances. Anything else is `422 LOAD_BALANCER_PROTOCOL_NOT_SUPPORTED`.
|
|
3585
|
+
* @default tcp
|
|
3586
|
+
* @enum {string}
|
|
3587
|
+
*/
|
|
3588
|
+
protocol?: "tcp";
|
|
3589
|
+
/**
|
|
3590
|
+
* @description `vpc_native` (a VPC zone: needs `public_ip_id` and `subnet_id`) or `appliance` (a standard zone: needs `zone_id`; a load balancer VM with its own public address, billed as that VM). Left out, it is `vpc_native` when `subnet_id` is given and `appliance` when only `zone_id` is. Anything else is `422 INVALID_LOAD_BALANCER_KIND`; an appliance in a zone that does not offer one fails its operation with `LOAD_BALANCER_APPLIANCE_UNAVAILABLE`, and one whose load balancer never starts serving fails it with `LOAD_BALANCER_APPLIANCE_NOT_READY` and is removed.
|
|
3350
3591
|
* @enum {string}
|
|
3351
3592
|
*/
|
|
3352
3593
|
kind?: "vpc_native" | "appliance";
|
|
@@ -3365,7 +3606,7 @@ interface components {
|
|
|
3365
3606
|
* @default roundrobin
|
|
3366
3607
|
* @enum {string}
|
|
3367
3608
|
*/
|
|
3368
|
-
algorithm
|
|
3609
|
+
algorithm?: "roundrobin" | "leastconn" | "source";
|
|
3369
3610
|
/**
|
|
3370
3611
|
* @description The TCP port clients connect to, 1 to 65535.
|
|
3371
3612
|
* @example 443
|
|
@@ -3426,6 +3667,10 @@ interface components {
|
|
|
3426
3667
|
/** @description e.g. `lb_...`. */
|
|
3427
3668
|
id: string;
|
|
3428
3669
|
name: string;
|
|
3670
|
+
/**
|
|
3671
|
+
* @description The zone's code, as `GET /public/v1/regions` lists it.
|
|
3672
|
+
* @example af-abj-1
|
|
3673
|
+
*/
|
|
3429
3674
|
zone_id: string;
|
|
3430
3675
|
/** @enum {string} */
|
|
3431
3676
|
kind: "vpc_native" | "appliance";
|
|
@@ -3485,6 +3730,15 @@ interface components {
|
|
|
3485
3730
|
data: components["schemas"]["KubernetesVersion"][];
|
|
3486
3731
|
/** @description Zones where a cluster can have 3 control nodes. */
|
|
3487
3732
|
ha_zone_ids: string[];
|
|
3733
|
+
/** @description Zones that build Kubernetes nodes only at fixed sizes, one entry per size, so a zone may appear more than once. There, a cluster, a node plan resize and a node pool take only a plan of exactly one entry's `vcpu` and `memory_mb`; anything else is `422 KUBERNETES_PLAN_NOT_IN_ZONE`. A zone not listed takes any plan that meets the version's minimum. */
|
|
3734
|
+
fixed_node_sizes?: components["schemas"]["KubernetesFixedNodeSize"][];
|
|
3735
|
+
};
|
|
3736
|
+
KubernetesFixedNodeSize: {
|
|
3737
|
+
zone_id: string;
|
|
3738
|
+
/** @description The vCPUs of one node size the zone builds; 0 when the zone takes no plan now. */
|
|
3739
|
+
vcpu: number;
|
|
3740
|
+
/** @description The memory, in MB, of that node size; 0 when the zone takes no plan now. */
|
|
3741
|
+
memory_mb: number;
|
|
3488
3742
|
};
|
|
3489
3743
|
CreateKubernetesClusterRequest: {
|
|
3490
3744
|
/**
|
|
@@ -3492,7 +3746,7 @@ interface components {
|
|
|
3492
3746
|
* @example prod-web
|
|
3493
3747
|
*/
|
|
3494
3748
|
name: string;
|
|
3495
|
-
/** @example
|
|
3749
|
+
/** @example af-abj-2 */
|
|
3496
3750
|
zone_id: string;
|
|
3497
3751
|
/**
|
|
3498
3752
|
* @description From the Kubernetes versions list, in `zone_id`.
|
|
@@ -3505,7 +3759,7 @@ interface components {
|
|
|
3505
3759
|
*/
|
|
3506
3760
|
subnet_id?: string;
|
|
3507
3761
|
/**
|
|
3508
|
-
* @description The plan slug every node uses, from the plans list. In a zone
|
|
3762
|
+
* @description The plan slug every node uses, from the plans list. In a zone listed in `fixed_node_sizes` on the versions list, the plan must be one of that zone's sizes: `422 KUBERNETES_PLAN_NOT_IN_ZONE` on `node_plan`. Change it later with the node plan resize, or add a node pool.
|
|
3509
3763
|
* @example s-2vcpu-4gb
|
|
3510
3764
|
*/
|
|
3511
3765
|
node_plan: string;
|
|
@@ -3514,7 +3768,7 @@ interface components {
|
|
|
3514
3768
|
* @default 1
|
|
3515
3769
|
* @enum {integer}
|
|
3516
3770
|
*/
|
|
3517
|
-
control_nodes
|
|
3771
|
+
control_nodes?: 1 | 3;
|
|
3518
3772
|
/**
|
|
3519
3773
|
* @description Worker nodes, 1 to 10. Required unless `autoscaling` is enabled, when it defaults to `min_workers` and must lie within the range.
|
|
3520
3774
|
* @example 2
|
|
@@ -3535,27 +3789,27 @@ interface components {
|
|
|
3535
3789
|
*/
|
|
3536
3790
|
kind?: "appliance";
|
|
3537
3791
|
/**
|
|
3538
|
-
* @description CNI backend plugin (`flannel`, `wireguard`, or `calico`). Defaults to `flannel`.
|
|
3792
|
+
* @description CNI backend plugin (`flannel`, `wireguard`, or `calico`). Defaults to `flannel`. Cannot be changed after creation.
|
|
3539
3793
|
* @example flannel
|
|
3540
3794
|
*/
|
|
3541
3795
|
cni_plugin?: string;
|
|
3542
3796
|
/**
|
|
3543
|
-
* @description IPv4 CIDR range allocated for cluster pods.
|
|
3797
|
+
* @description IPv4 CIDR range allocated for cluster pods. It must not overlap the cluster's VPC network, its subnet or `service_cidr` (`422 KUBERNETES_POD_CIDR_OVERLAP`). Left out, the first of `10.42.0.0/16`, `10.244.0.0/16`, `172.20.0.0/16` and `192.168.0.0/17` clear of those is used. Cannot be changed after creation.
|
|
3544
3798
|
* @example 10.42.0.0/16
|
|
3545
3799
|
*/
|
|
3546
3800
|
pod_cidr?: string;
|
|
3547
3801
|
/**
|
|
3548
|
-
* @description IPv4 CIDR range allocated for cluster services.
|
|
3802
|
+
* @description IPv4 CIDR range allocated for cluster services. It must not overlap the cluster's VPC network, its subnet or `pod_cidr` (`422 KUBERNETES_SERVICE_CIDR_OVERLAP`). Left out, the first of `10.43.0.0/16`, `10.96.0.0/16`, `172.21.0.0/16` and `192.168.128.0/17` clear of those is used. Cannot be changed after creation.
|
|
3549
3803
|
* @example 10.43.0.0/16
|
|
3550
3804
|
*/
|
|
3551
3805
|
service_cidr?: string;
|
|
3552
3806
|
/**
|
|
3553
|
-
* @description Who can reach the API server. `private` (the default) is reachable only from inside the VPC. `public` and `dual` give the API server a public address of its own, billed as a VPC public IP for every hour it is held.
|
|
3807
|
+
* @description Who can reach the API server. `private` (the default) is reachable only from inside the VPC. `public` and `dual` give the API server a public address of its own, billed as a VPC public IP for every hour it is held, and open its port 6443 on the subnet's network rules to `api_allowed_cidrs` (any address when that is empty). Those rules are numbered from 30000, after your own firewall rules, so a deny rule of yours still applies first; they are removed when the cluster goes private or is deleted.
|
|
3554
3808
|
* @default private
|
|
3555
3809
|
* @example private
|
|
3556
3810
|
* @enum {string}
|
|
3557
3811
|
*/
|
|
3558
|
-
endpoint_access
|
|
3812
|
+
endpoint_access?: "private" | "public" | "dual";
|
|
3559
3813
|
};
|
|
3560
3814
|
/** @description The platform's autoscaler: about once a minute it adds a worker when a pod that a worker could run is waiting for room, and removes the newest worker once it has run nothing but DaemonSet pods for 10 minutes, one step at a time and always within min_workers and max_workers. You pay for the workers that run. */
|
|
3561
3815
|
KubernetesAutoscaling: {
|
|
@@ -3604,17 +3858,17 @@ interface components {
|
|
|
3604
3858
|
};
|
|
3605
3859
|
UpgradeKubernetesNetworkRequest: {
|
|
3606
3860
|
/**
|
|
3607
|
-
* @description The new CNI plugin (`flannel`, `wireguard`, or `calico`).
|
|
3861
|
+
* @description The new CNI plugin (`flannel`, `wireguard`, or `calico`). Fixed at creation: a value different from the cluster's current one is `409 KUBERNETES_NETWORK_NOT_CHANGEABLE`.
|
|
3608
3862
|
* @example wireguard
|
|
3609
3863
|
*/
|
|
3610
3864
|
cni_plugin?: string;
|
|
3611
3865
|
/**
|
|
3612
|
-
* @description The new IPv4 CIDR range allocated for cluster pods.
|
|
3866
|
+
* @description The new IPv4 CIDR range allocated for cluster pods. Fixed at creation: a value different from the cluster's current one is `409 KUBERNETES_NETWORK_NOT_CHANGEABLE`.
|
|
3613
3867
|
* @example 10.42.0.0/16
|
|
3614
3868
|
*/
|
|
3615
3869
|
pod_cidr?: string;
|
|
3616
3870
|
/**
|
|
3617
|
-
* @description The new IPv4 CIDR range allocated for cluster services.
|
|
3871
|
+
* @description The new IPv4 CIDR range allocated for cluster services. Fixed at creation: a value different from the cluster's current one is `409 KUBERNETES_NETWORK_NOT_CHANGEABLE`.
|
|
3618
3872
|
* @example 10.43.0.0/16
|
|
3619
3873
|
*/
|
|
3620
3874
|
service_cidr?: string;
|
|
@@ -3651,7 +3905,7 @@ interface components {
|
|
|
3651
3905
|
/** @enum {string} */
|
|
3652
3906
|
desired_state: "running" | "stopped" | "deleted";
|
|
3653
3907
|
/**
|
|
3654
|
-
* @description `updating` while a scale or upgrade runs.
|
|
3908
|
+
* @description A new cluster reads `provisioning` until every node has joined and its kubeconfig can be downloaded, then `running`. `updating` while a scale or upgrade runs.
|
|
3655
3909
|
* @enum {string}
|
|
3656
3910
|
*/
|
|
3657
3911
|
observed_state: "pending" | "provisioning" | "running" | "updating" | "stopping" | "stopped" | "retired" | "deleted" | "failed" | "unknown";
|
|
@@ -3659,7 +3913,7 @@ interface components {
|
|
|
3659
3913
|
in_sync: boolean;
|
|
3660
3914
|
failure_code: string | null;
|
|
3661
3915
|
failure_reason: string | null;
|
|
3662
|
-
/** @description Versions this cluster can be upgraded to now. */
|
|
3916
|
+
/** @description Versions this cluster can be upgraded to now. Empty for a cluster that runs the version it was created with, which is every cluster today. */
|
|
3663
3917
|
available_upgrades: components["schemas"]["KubernetesVersion"][];
|
|
3664
3918
|
autoscaling: components["schemas"]["KubernetesAutoscaling"];
|
|
3665
3919
|
/** @description Sources allowed to reach the API server; empty is any address. */
|
|
@@ -3676,6 +3930,24 @@ interface components {
|
|
|
3676
3930
|
* @example 6443
|
|
3677
3931
|
*/
|
|
3678
3932
|
public_port?: number | null;
|
|
3933
|
+
/**
|
|
3934
|
+
* @description What Kubernetes last reported of the cluster's nodes while it runs: `healthy` (every node Ready), `degraded` (a node is NotReady, or fewer are Ready than the cluster should run) or `unknown` (the nodes could not be read in the last 15 minutes, for example a private endpoint whose agent is not connected). Read about every 5 minutes; null while the cluster is not running. Always `degraded`, with `node_health_reason`, while the cluster's pod or service range overlaps its own network.
|
|
3935
|
+
* @example healthy
|
|
3936
|
+
* @enum {string|null}
|
|
3937
|
+
*/
|
|
3938
|
+
node_health?: "healthy" | "degraded" | "unknown" | null;
|
|
3939
|
+
/** @description Why `node_health` is `degraded` when the cause is the cluster itself rather than a node's last reading: its `pod_cidr` or `service_cidr` overlaps the network its nodes are on (possible only for a cluster created before such ranges were refused). The ranges are fixed at creation, so the fix is a new cluster. Null otherwise. */
|
|
3940
|
+
node_health_reason?: string | null;
|
|
3941
|
+
/**
|
|
3942
|
+
* @description Nodes Kubernetes reports Ready, as of `nodes_checked_at`; null when `node_health` is unknown or null.
|
|
3943
|
+
* @example 2
|
|
3944
|
+
*/
|
|
3945
|
+
ready_nodes?: number | null;
|
|
3946
|
+
/**
|
|
3947
|
+
* Format: date-time
|
|
3948
|
+
* @description When the nodes were last read; null if never.
|
|
3949
|
+
*/
|
|
3950
|
+
nodes_checked_at?: string | null;
|
|
3679
3951
|
/** @description Storage your workloads' persistent volume claims use, billed with the nodes' disks. */
|
|
3680
3952
|
volume_storage_gb: number;
|
|
3681
3953
|
/**
|
|
@@ -3726,12 +3998,19 @@ interface components {
|
|
|
3726
3998
|
};
|
|
3727
3999
|
KubernetesNodePool: {
|
|
3728
4000
|
/**
|
|
3729
|
-
* @description `provisioning` (workers being built), `ready` (every worker has joined), `updating` (a scale in progress), `deleting`, or `unavailable` (a pool made while node pools were a preview, with no node size: delete it and create it again).
|
|
4001
|
+
* @description `provisioning` (workers being built), `ready` (every worker has joined), `updating` (a scale in progress), `deleting`, or `unavailable` (a pool made while node pools were a preview, with no node size: delete it and create it again). A pool whose workers cannot be built stays `provisioning` or `updating` and is retried; `failure_code` and `failure_reason` say why.
|
|
3730
4002
|
* @enum {string}
|
|
3731
4003
|
*/
|
|
3732
4004
|
status: "provisioning" | "ready" | "updating" | "deleting" | "unavailable";
|
|
3733
4005
|
/** @description The pool's workers that have joined the cluster. This is what is billed, never `workers` alone. */
|
|
3734
4006
|
observed_workers: number;
|
|
4007
|
+
/**
|
|
4008
|
+
* @description Why the pool's workers last failed to build, e.g. `PROVISIONING_CAPACITY_UNAVAILABLE` (the region has no room for them now) or `PROVISIONING_LIMIT_EXCEEDED`. Null while nothing has failed; cleared once the pool is `ready` or is scaled.
|
|
4009
|
+
* @example PROVISIONING_CAPACITY_UNAVAILABLE
|
|
4010
|
+
*/
|
|
4011
|
+
failure_code: string | null;
|
|
4012
|
+
/** @description A sentence saying what failed and what to do. Null when `failure_code` is. */
|
|
4013
|
+
failure_reason: string | null;
|
|
3735
4014
|
/** @description e.g. `k8spool_...`. */
|
|
3736
4015
|
id: string;
|
|
3737
4016
|
cluster_id: string;
|
|
@@ -3768,7 +4047,7 @@ interface components {
|
|
|
3768
4047
|
/** @description Worker nodes, 1 to 10. Required unless autoscaling_enabled, when it defaults to min_workers. */
|
|
3769
4048
|
workers?: number;
|
|
3770
4049
|
/** @default false */
|
|
3771
|
-
autoscaling_enabled
|
|
4050
|
+
autoscaling_enabled?: boolean;
|
|
3772
4051
|
/** @description With autoscaling_enabled: fewest workers, 1 to 10. */
|
|
3773
4052
|
min_workers?: number;
|
|
3774
4053
|
/** @description With autoscaling_enabled: most workers, min_workers to 10. Your credit and limits are checked for this many. */
|
|
@@ -3810,7 +4089,7 @@ interface components {
|
|
|
3810
4089
|
};
|
|
3811
4090
|
ConfigureKubernetesEndpointAccessRequest: {
|
|
3812
4091
|
/**
|
|
3813
|
-
* @description Endpoint access mode.
|
|
4092
|
+
* @description Endpoint access mode. `public` and `dual` open the API server's port 6443 on the subnet's network rules to `api_allowed_cidrs` (any address when empty); `private` removes those rules. The change is in sync (`in_sync` true) once the cluster is routed on its public address, or that address is released.
|
|
3814
4093
|
* @enum {string}
|
|
3815
4094
|
*/
|
|
3816
4095
|
endpoint_access: "public" | "private" | "dual";
|
|
@@ -3860,7 +4139,7 @@ interface components {
|
|
|
3860
4139
|
* @default static_nat
|
|
3861
4140
|
* @enum {string}
|
|
3862
4141
|
*/
|
|
3863
|
-
purpose
|
|
4142
|
+
purpose?: "static_nat" | "port_forwarding" | "load_balancer";
|
|
3864
4143
|
/**
|
|
3865
4144
|
* @description For `static_nat` only: an instance in `network_id` without a public IP. Leave it out to reserve the address now and attach it later (`POST /public/v1/public-ips/{public_ip_id}/attach`). Leave out for `port_forwarding` and `load_balancer`.
|
|
3866
4145
|
* @example vm_06gk3x9tq7m2v8r4y1c5d0zp8w
|
|
@@ -4002,7 +4281,7 @@ interface components {
|
|
|
4002
4281
|
* @default dbadmin
|
|
4003
4282
|
* @example app_admin
|
|
4004
4283
|
*/
|
|
4005
|
-
admin_username
|
|
4284
|
+
admin_username?: string;
|
|
4006
4285
|
/**
|
|
4007
4286
|
* @description Optional admin password: 16 to 128 printable ASCII characters, with no spaces, single quotes (`'`), double quotes (`"`) or backslashes (`\`). Write-only: never stored in plain text, never returned, never logged. Leave it out to have a 32-character password generated and returned once in the response.
|
|
4008
4287
|
* @example c0rrect-H0rse-battery-St4ple
|
|
@@ -5042,12 +5321,12 @@ interface components {
|
|
|
5042
5321
|
* @description How many successful automatic snapshots to keep, 1 to 168; older ones are deleted. Defaults to 7.
|
|
5043
5322
|
* @default 7
|
|
5044
5323
|
*/
|
|
5045
|
-
retention_count
|
|
5324
|
+
retention_count?: number;
|
|
5046
5325
|
/**
|
|
5047
5326
|
* @description False pauses the schedule without forgetting it. Defaults to true.
|
|
5048
5327
|
* @default true
|
|
5049
5328
|
*/
|
|
5050
|
-
enabled
|
|
5329
|
+
enabled?: boolean;
|
|
5051
5330
|
};
|
|
5052
5331
|
RebuildRequest: {
|
|
5053
5332
|
/**
|
|
@@ -5791,41 +6070,409 @@ interface components {
|
|
|
5791
6070
|
/** @description Always null: this list is returned whole. */
|
|
5792
6071
|
next_cursor: string | null;
|
|
5793
6072
|
};
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
|
|
5812
|
-
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
}
|
|
6073
|
+
/** @description Why the last check or scan failed; null when it didn't. */
|
|
6074
|
+
CloudFailure: {
|
|
6075
|
+
/** @enum {string} */
|
|
6076
|
+
code: "assume_role_denied" | "permission_missing" | "provider_unavailable" | "scan_too_large" | "internal";
|
|
6077
|
+
/** @description What to do about it. */
|
|
6078
|
+
message: string;
|
|
6079
|
+
} | null;
|
|
6080
|
+
/** @description What you need to create the role in your account. */
|
|
6081
|
+
CloudConnectionSetup: {
|
|
6082
|
+
/** @description Pantech's identity provider URL, which your role trusts. */
|
|
6083
|
+
issuer_url: string;
|
|
6084
|
+
/** @description The audience every token carries. */
|
|
6085
|
+
audience: string;
|
|
6086
|
+
/** @description The subject your role requires: this connection's id. */
|
|
6087
|
+
subject: string;
|
|
6088
|
+
/** @description Opens AWS's create-stack page with this template and connection filled in; null when not offered. */
|
|
6089
|
+
quick_create_url: string | null;
|
|
6090
|
+
/** @description A CloudFormation template (JSON) for this connection: a read-only role and, unless one exists, the identity provider. */
|
|
6091
|
+
template: string;
|
|
6092
|
+
};
|
|
6093
|
+
CloudConnection: {
|
|
6094
|
+
/** @example ccn_06gk3x9tq7m2v8r4y1c5d0zp8w */
|
|
6095
|
+
id: string;
|
|
6096
|
+
/** @enum {string} */
|
|
6097
|
+
provider: "aws";
|
|
6098
|
+
name: string;
|
|
6099
|
+
/**
|
|
6100
|
+
* @description `awaiting_role`, `verifying`, `connected` or `failed`.
|
|
6101
|
+
* @enum {string}
|
|
6102
|
+
*/
|
|
6103
|
+
status: "awaiting_role" | "verifying" | "connected" | "failed";
|
|
6104
|
+
failure: components["schemas"]["CloudFailure"];
|
|
6105
|
+
role_arn: string | null;
|
|
6106
|
+
aws_account_id: string | null;
|
|
6107
|
+
/** Format: date-time */
|
|
6108
|
+
verified_at: string | null;
|
|
6109
|
+
/** Format: date-time */
|
|
6110
|
+
created_at: string;
|
|
6111
|
+
/** Format: date-time */
|
|
6112
|
+
updated_at: string;
|
|
6113
|
+
setup: components["schemas"]["CloudConnectionSetup"];
|
|
5818
6114
|
};
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5823
|
-
};
|
|
5824
|
-
content: {
|
|
5825
|
-
"application/problem+json": components["schemas"]["Problem"];
|
|
5826
|
-
};
|
|
6115
|
+
CloudConnectionList: {
|
|
6116
|
+
data: components["schemas"]["CloudConnection"][];
|
|
6117
|
+
/** @description Always null: this list is returned whole. */
|
|
6118
|
+
next_cursor: string | null;
|
|
5827
6119
|
};
|
|
5828
|
-
|
|
6120
|
+
CreateCloudConnectionRequest: {
|
|
6121
|
+
/**
|
|
6122
|
+
* @description `aws`, the default.
|
|
6123
|
+
* @enum {string}
|
|
6124
|
+
*/
|
|
6125
|
+
provider?: "aws";
|
|
6126
|
+
/** @description 1 to 100 characters, for example `Production AWS`. */
|
|
6127
|
+
name: string;
|
|
6128
|
+
};
|
|
6129
|
+
UpdateCloudConnectionRequest: {
|
|
6130
|
+
name?: string;
|
|
6131
|
+
/** @description The stack's RoleArn output. */
|
|
6132
|
+
role_arn?: string;
|
|
6133
|
+
/** @description Check the role again. */
|
|
6134
|
+
retry?: boolean;
|
|
6135
|
+
};
|
|
6136
|
+
CloudScanCounts: {
|
|
6137
|
+
instances: number;
|
|
6138
|
+
volumes: number;
|
|
6139
|
+
networks: number;
|
|
6140
|
+
subnets: number;
|
|
6141
|
+
security_groups: number;
|
|
6142
|
+
public_ips: number;
|
|
6143
|
+
load_balancers: number;
|
|
6144
|
+
databases: number;
|
|
6145
|
+
buckets: number;
|
|
6146
|
+
users: number;
|
|
6147
|
+
ssh_keys: number;
|
|
6148
|
+
} | null;
|
|
6149
|
+
CloudCostMonth: {
|
|
6150
|
+
/** @description YYYY-MM. */
|
|
6151
|
+
month: string;
|
|
6152
|
+
amount_minor: number;
|
|
6153
|
+
};
|
|
6154
|
+
/** @description The source account's whole bill, every service. */
|
|
6155
|
+
CloudCost: {
|
|
6156
|
+
currency: string;
|
|
6157
|
+
/** @description Average of the months, in minor units of currency. */
|
|
6158
|
+
average_monthly_minor: number;
|
|
6159
|
+
months: components["schemas"]["CloudCostMonth"][];
|
|
6160
|
+
} | null;
|
|
6161
|
+
CloudScan: {
|
|
6162
|
+
/** @example csn_06gk3x9tq7m2v8r4y1c5d0zp8w */
|
|
6163
|
+
id: string;
|
|
6164
|
+
connection_id: string;
|
|
6165
|
+
/** @enum {string} */
|
|
6166
|
+
status: "queued" | "running" | "succeeded" | "failed";
|
|
6167
|
+
failure: components["schemas"]["CloudFailure"];
|
|
6168
|
+
/** Format: date-time */
|
|
6169
|
+
created_at: string;
|
|
6170
|
+
/** Format: date-time */
|
|
6171
|
+
started_at: string | null;
|
|
6172
|
+
/** Format: date-time */
|
|
6173
|
+
finished_at: string | null;
|
|
6174
|
+
aws_account_id: string | null;
|
|
6175
|
+
/** @description Regions read. */
|
|
6176
|
+
regions: string[];
|
|
6177
|
+
counts: components["schemas"]["CloudScanCounts"];
|
|
6178
|
+
cost: components["schemas"]["CloudCost"];
|
|
6179
|
+
/** @description Parts not read, e.g. `cost_unavailable` or `region_denied:eu-south-1`. */
|
|
6180
|
+
warnings: string[];
|
|
6181
|
+
/** @description Kinds cut at 2,000 items. */
|
|
6182
|
+
truncated: string[];
|
|
6183
|
+
inventory: components["schemas"]["CloudInventory"];
|
|
6184
|
+
};
|
|
6185
|
+
CloudScanList: {
|
|
6186
|
+
data: components["schemas"]["CloudScan"][];
|
|
6187
|
+
/** @description Always null: this list is returned whole. */
|
|
6188
|
+
next_cursor: string | null;
|
|
6189
|
+
};
|
|
6190
|
+
MigrationListener: {
|
|
6191
|
+
protocol: string;
|
|
6192
|
+
port: number;
|
|
6193
|
+
};
|
|
6194
|
+
/** @description Everything a scan found. */
|
|
6195
|
+
CloudInventory: {
|
|
6196
|
+
instances: {
|
|
6197
|
+
id: string;
|
|
6198
|
+
name: string | null;
|
|
6199
|
+
region: string;
|
|
6200
|
+
zone: string | null;
|
|
6201
|
+
instance_type: string;
|
|
6202
|
+
state: string;
|
|
6203
|
+
vcpu: number | null;
|
|
6204
|
+
memory_mib: number | null;
|
|
6205
|
+
architecture: string;
|
|
6206
|
+
platform: string;
|
|
6207
|
+
volume_ids: string[];
|
|
6208
|
+
network_id: string | null;
|
|
6209
|
+
subnet_id: string | null;
|
|
6210
|
+
security_group_ids: string[];
|
|
6211
|
+
public_ip: string | null;
|
|
6212
|
+
private_ip: string | null;
|
|
6213
|
+
key_name: string | null;
|
|
6214
|
+
/** Format: date-time */
|
|
6215
|
+
launched_at: string | null;
|
|
6216
|
+
}[];
|
|
6217
|
+
volumes: {
|
|
6218
|
+
id: string;
|
|
6219
|
+
region: string;
|
|
6220
|
+
zone: string | null;
|
|
6221
|
+
type: string;
|
|
6222
|
+
size_gb: number;
|
|
6223
|
+
attached_to: string | null;
|
|
6224
|
+
device: string | null;
|
|
6225
|
+
encrypted: boolean;
|
|
6226
|
+
}[];
|
|
6227
|
+
networks: {
|
|
6228
|
+
id: string;
|
|
6229
|
+
region: string;
|
|
6230
|
+
name: string | null;
|
|
6231
|
+
cidr: string;
|
|
6232
|
+
is_default: boolean;
|
|
6233
|
+
}[];
|
|
6234
|
+
subnets: {
|
|
6235
|
+
id: string;
|
|
6236
|
+
region: string;
|
|
6237
|
+
network_id: string;
|
|
6238
|
+
name: string | null;
|
|
6239
|
+
cidr: string;
|
|
6240
|
+
zone: string | null;
|
|
6241
|
+
maps_public_ip: boolean;
|
|
6242
|
+
}[];
|
|
6243
|
+
security_groups: {
|
|
6244
|
+
id: string;
|
|
6245
|
+
region: string;
|
|
6246
|
+
network_id: string | null;
|
|
6247
|
+
name: string;
|
|
6248
|
+
description: string | null;
|
|
6249
|
+
rules: {
|
|
6250
|
+
/** @enum {string} */
|
|
6251
|
+
direction: "ingress" | "egress";
|
|
6252
|
+
protocol: string;
|
|
6253
|
+
from_port: number | null;
|
|
6254
|
+
to_port: number | null;
|
|
6255
|
+
cidr: string | null;
|
|
6256
|
+
ipv6_cidr: string | null;
|
|
6257
|
+
source_group_id: string | null;
|
|
6258
|
+
prefix_list_id: string | null;
|
|
6259
|
+
}[];
|
|
6260
|
+
}[];
|
|
6261
|
+
public_ips: {
|
|
6262
|
+
id: string;
|
|
6263
|
+
region: string;
|
|
6264
|
+
address: string;
|
|
6265
|
+
instance_id: string | null;
|
|
6266
|
+
}[];
|
|
6267
|
+
load_balancers: {
|
|
6268
|
+
id: string;
|
|
6269
|
+
region: string;
|
|
6270
|
+
name: string;
|
|
6271
|
+
type: string;
|
|
6272
|
+
scheme: string;
|
|
6273
|
+
network_id: string | null;
|
|
6274
|
+
listeners: components["schemas"]["MigrationListener"][];
|
|
6275
|
+
}[];
|
|
6276
|
+
databases: {
|
|
6277
|
+
id: string;
|
|
6278
|
+
region: string;
|
|
6279
|
+
engine: string;
|
|
6280
|
+
engine_version: string;
|
|
6281
|
+
instance_class: string;
|
|
6282
|
+
vcpu: number | null;
|
|
6283
|
+
memory_mib: number | null;
|
|
6284
|
+
storage_gb: number;
|
|
6285
|
+
multi_az: boolean;
|
|
6286
|
+
publicly_accessible: boolean;
|
|
6287
|
+
}[];
|
|
6288
|
+
buckets: {
|
|
6289
|
+
name: string;
|
|
6290
|
+
region: string | null;
|
|
6291
|
+
/** Format: date-time */
|
|
6292
|
+
created_at: string | null;
|
|
6293
|
+
}[];
|
|
6294
|
+
users: {
|
|
6295
|
+
name: string;
|
|
6296
|
+
email: string | null;
|
|
6297
|
+
is_admin: boolean;
|
|
6298
|
+
/** Format: date-time */
|
|
6299
|
+
created_at: string | null;
|
|
6300
|
+
}[];
|
|
6301
|
+
ssh_keys: {
|
|
6302
|
+
name: string;
|
|
6303
|
+
region: string;
|
|
6304
|
+
fingerprint: string | null;
|
|
6305
|
+
public_key: string | null;
|
|
6306
|
+
}[];
|
|
6307
|
+
} | null;
|
|
6308
|
+
MigrationFlag: {
|
|
6309
|
+
code: string;
|
|
6310
|
+
message: string;
|
|
6311
|
+
/** @description A blocking flag makes the item unsupported. */
|
|
6312
|
+
blocking: boolean;
|
|
6313
|
+
};
|
|
6314
|
+
MigrationRule: {
|
|
6315
|
+
/** @enum {string} */
|
|
6316
|
+
direction: "ingress" | "egress";
|
|
6317
|
+
/** @enum {string} */
|
|
6318
|
+
protocol: "tcp" | "udp" | "icmp" | "all";
|
|
6319
|
+
port_range: string | null;
|
|
6320
|
+
cidr: string;
|
|
6321
|
+
};
|
|
6322
|
+
/** @description What the item becomes on Pantech; fields that don't apply to its kind are null or empty. */
|
|
6323
|
+
MigrationItemTarget: {
|
|
6324
|
+
plan_slug: string | null;
|
|
6325
|
+
disk_gb: number | null;
|
|
6326
|
+
cidr: string | null;
|
|
6327
|
+
network_key: string | null;
|
|
6328
|
+
subnet_key: string | null;
|
|
6329
|
+
instance_key: string | null;
|
|
6330
|
+
rules: components["schemas"]["MigrationRule"][];
|
|
6331
|
+
engine: string | null;
|
|
6332
|
+
engine_version: string | null;
|
|
6333
|
+
storage_gb: number | null;
|
|
6334
|
+
/** @enum {string|null} */
|
|
6335
|
+
role: "admin" | "member" | null;
|
|
6336
|
+
email: string | null;
|
|
6337
|
+
public_key: string | null;
|
|
6338
|
+
listeners: components["schemas"]["MigrationListener"][];
|
|
6339
|
+
};
|
|
6340
|
+
MigrationItemSource: {
|
|
6341
|
+
id: string;
|
|
6342
|
+
name: string | null;
|
|
6343
|
+
region: string | null;
|
|
6344
|
+
summary: string;
|
|
6345
|
+
vcpu: number | null;
|
|
6346
|
+
memory_mib: number | null;
|
|
6347
|
+
disk_gb: number | null;
|
|
6348
|
+
};
|
|
6349
|
+
MigrationItem: {
|
|
6350
|
+
/** @description Stable across edits: kind, region and the source id. */
|
|
6351
|
+
key: string;
|
|
6352
|
+
/** @enum {string} */
|
|
6353
|
+
kind: "network" | "subnet" | "security_group" | "instance" | "volume" | "public_ip" | "load_balancer" | "database" | "ssh_key" | "user" | "bucket";
|
|
6354
|
+
source: components["schemas"]["MigrationItemSource"];
|
|
6355
|
+
/** @enum {string} */
|
|
6356
|
+
status: "planned" | "excluded" | "unsupported";
|
|
6357
|
+
flags: components["schemas"]["MigrationFlag"][];
|
|
6358
|
+
target: components["schemas"]["MigrationItemTarget"];
|
|
6359
|
+
};
|
|
6360
|
+
/** @description Pantech's monthly price for the plan next to the source's monthly bill, computed when read. */
|
|
6361
|
+
MigrationEstimate: {
|
|
6362
|
+
currency: string;
|
|
6363
|
+
/** @description False when part of the plan could not be priced; then pantech_monthly_minor is null. */
|
|
6364
|
+
pantech_priced: boolean;
|
|
6365
|
+
pantech_monthly_minor: number | null;
|
|
6366
|
+
/** @description What the Pantech price includes: servers, volumes, networks. */
|
|
6367
|
+
covers: string[];
|
|
6368
|
+
/** @description Planned items the price leaves out, e.g. databases. */
|
|
6369
|
+
not_covered: string[];
|
|
6370
|
+
source_known: boolean;
|
|
6371
|
+
source_monthly_minor: number | null;
|
|
6372
|
+
source_currency: string | null;
|
|
6373
|
+
source_months: number;
|
|
6374
|
+
/**
|
|
6375
|
+
* @description `whole_account`: the source figure is the whole cloud bill.
|
|
6376
|
+
* @enum {string}
|
|
6377
|
+
*/
|
|
6378
|
+
source_scope: "whole_account";
|
|
6379
|
+
} | null;
|
|
6380
|
+
MigrationSummary: {
|
|
6381
|
+
planned: number;
|
|
6382
|
+
excluded: number;
|
|
6383
|
+
unsupported: number;
|
|
6384
|
+
/** @description Planned items per kind. */
|
|
6385
|
+
by_kind: {
|
|
6386
|
+
[key: string]: number;
|
|
6387
|
+
};
|
|
6388
|
+
};
|
|
6389
|
+
Migration: {
|
|
6390
|
+
/** @example mig_06gk3x9tq7m2v8r4y1c5d0zp8w */
|
|
6391
|
+
id: string;
|
|
6392
|
+
name: string;
|
|
6393
|
+
region: string;
|
|
6394
|
+
connection_id: string;
|
|
6395
|
+
scan_id: string;
|
|
6396
|
+
/**
|
|
6397
|
+
* @description `planning`. Copying arrives in a later release.
|
|
6398
|
+
* @enum {string}
|
|
6399
|
+
*/
|
|
6400
|
+
stage: "planning";
|
|
6401
|
+
version: number;
|
|
6402
|
+
summary: components["schemas"]["MigrationSummary"];
|
|
6403
|
+
estimate: components["schemas"]["MigrationEstimate"];
|
|
6404
|
+
/** @description Null in a list. */
|
|
6405
|
+
items: components["schemas"]["MigrationItem"][] | null;
|
|
6406
|
+
/** Format: date-time */
|
|
6407
|
+
created_at: string;
|
|
6408
|
+
/** Format: date-time */
|
|
6409
|
+
updated_at: string;
|
|
6410
|
+
};
|
|
6411
|
+
MigrationList: {
|
|
6412
|
+
data: components["schemas"]["Migration"][];
|
|
6413
|
+
/** @description Always null: this list is returned whole. */
|
|
6414
|
+
next_cursor: string | null;
|
|
6415
|
+
};
|
|
6416
|
+
CreateMigrationRequest: {
|
|
6417
|
+
scan_id: string;
|
|
6418
|
+
name: string;
|
|
6419
|
+
/** @description A Pantech region code; the first region when left out. */
|
|
6420
|
+
region?: string;
|
|
6421
|
+
};
|
|
6422
|
+
RenameMigrationRequest: {
|
|
6423
|
+
name: string;
|
|
6424
|
+
};
|
|
6425
|
+
UpdateMigrationItemRequest: {
|
|
6426
|
+
key: string;
|
|
6427
|
+
excluded?: boolean;
|
|
6428
|
+
plan_slug?: string;
|
|
6429
|
+
storage_gb?: number;
|
|
6430
|
+
cidr?: string;
|
|
6431
|
+
/** @enum {string} */
|
|
6432
|
+
role?: "member" | "admin";
|
|
6433
|
+
email?: string;
|
|
6434
|
+
};
|
|
6435
|
+
MigrationTerraform: {
|
|
6436
|
+
files: {
|
|
6437
|
+
name: string;
|
|
6438
|
+
content: string;
|
|
6439
|
+
}[];
|
|
6440
|
+
};
|
|
6441
|
+
};
|
|
6442
|
+
responses: {
|
|
6443
|
+
/** @description `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys. */
|
|
6444
|
+
Unauthenticated: {
|
|
6445
|
+
headers: {
|
|
6446
|
+
"WWW-Authenticate"?: string;
|
|
6447
|
+
[name: string]: unknown;
|
|
6448
|
+
};
|
|
6449
|
+
content: {
|
|
6450
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
6451
|
+
};
|
|
6452
|
+
};
|
|
6453
|
+
/**
|
|
6454
|
+
* @description `INSUFFICIENT_SCOPE`: the API key lacks the scope this endpoint needs (`read` for GET, `write` for changes; an AI app's key also needs `delete` for a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.
|
|
6455
|
+
* `FORBIDDEN`: the member who created the key may not do this in the organization. Use a key created by an owner or admin.
|
|
6456
|
+
* `AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (`Pantech-Client: mcp/…`). An owner can turn it on in the console under Organization › AI apps.
|
|
6457
|
+
*/
|
|
6458
|
+
Forbidden: {
|
|
6459
|
+
headers: {
|
|
6460
|
+
[name: string]: unknown;
|
|
6461
|
+
};
|
|
6462
|
+
content: {
|
|
6463
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
6464
|
+
};
|
|
6465
|
+
};
|
|
6466
|
+
/** @description `SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry. */
|
|
6467
|
+
QuotaUnavailable: {
|
|
6468
|
+
headers: {
|
|
6469
|
+
[name: string]: unknown;
|
|
6470
|
+
};
|
|
6471
|
+
content: {
|
|
6472
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
6473
|
+
};
|
|
6474
|
+
};
|
|
6475
|
+
/** @description `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds. */
|
|
5829
6476
|
RateLimited: {
|
|
5830
6477
|
headers: {
|
|
5831
6478
|
"RateLimit-Scope"?: "api_key" | "user" | "organization";
|
|
@@ -6488,6 +7135,7 @@ interface operations {
|
|
|
6488
7135
|
* @description `ACCOUNT_SUSPENDED`: an invoice is overdue, or the organization was suspended for non-payment. Pay the outstanding invoice in the console, then retry.
|
|
6489
7136
|
* `ACCOUNT_NOT_ACTIVE`: the organization's billing account is not active yet. Finish billing setup in the console (verify the organization and add a payment method), then retry.
|
|
6490
7137
|
* `DATABASE_NAME_TAKEN`: you already have a database with this name. Choose a different name.
|
|
7138
|
+
* `IDEMPOTENCY_CONFLICT`: this `Idempotency-Key` was already used to order a different database. Use a new key for a different request; resend the same body to get the original order back.
|
|
6491
7139
|
* `CONCURRENT_UPDATE`: the resource changed while this request was being processed. Retry the request; if it repeats, read the resource first.
|
|
6492
7140
|
*/
|
|
6493
7141
|
409: {
|
|
@@ -8214,6 +8862,7 @@ interface operations {
|
|
|
8214
8862
|
};
|
|
8215
8863
|
/**
|
|
8216
8864
|
* @description `INSTANCE_NAME_TAKEN`: you already have an instance with this name. Choose a different name.
|
|
8865
|
+
* `IDEMPOTENCY_CONFLICT`: this `Idempotency-Key` was already used to order a different instance. Use a new key for a different request; resend the same body to get the original order back.
|
|
8217
8866
|
* `ACCOUNT_SUSPENDED`: an invoice is overdue, or the organization was suspended for non-payment. Pay the outstanding invoice in the console, then retry.
|
|
8218
8867
|
* `ACCOUNT_NOT_ACTIVE`: the organization's billing account is not active yet. Finish billing setup in the console (verify the organization and add a payment method), then retry.
|
|
8219
8868
|
* `PROVIDER_ACCOUNT_NOT_READY`: your organization's cloud account is still being set up, which takes a few minutes after sign-up. Retry shortly.
|
|
@@ -11275,6 +11924,8 @@ interface operations {
|
|
|
11275
11924
|
* `subnet_id` `SUBNET_NOT_IN_NETWORK`: the subnet is not in the public IP's private network.
|
|
11276
11925
|
* `instance_ids` `INSTANCE_NOT_IN_SUBNET`: every instance must be in the load balancer's subnet.
|
|
11277
11926
|
* `instance_ids` `TOO_MANY`: at most 50 instances.
|
|
11927
|
+
* `protocol` `LOAD_BALANCER_PROTOCOL_NOT_SUPPORTED`: only `tcp` listeners are offered. HTTP and HTTPS are balanced as `tcp` and reach your instances unchanged, so serve TLS on the instances.
|
|
11928
|
+
* `public_port` `LOAD_BALANCER_PORT_RESERVED`: an `appliance` load balancer cannot listen on 8404 or 8405; those ports run the load balancer itself.
|
|
11278
11929
|
* `UNKNOWN_FIELD`: the body has a field this endpoint does not take (named in `field`). Remove it or fix its spelling.
|
|
11279
11930
|
*/
|
|
11280
11931
|
422: {
|
|
@@ -11494,6 +12145,7 @@ interface operations {
|
|
|
11494
12145
|
};
|
|
11495
12146
|
/**
|
|
11496
12147
|
* @description `LOAD_BALANCER_NOT_CHANGEABLE`: the load balancer is being deleted or has failed.
|
|
12148
|
+
* `LOAD_BALANCER_NOT_READY`: the load balancer is still being created. Change it once its status is `active`.
|
|
11497
12149
|
* `CONCURRENT_UPDATE`: the resource changed while this request was being processed. Retry the request; if it repeats, read the resource first.
|
|
11498
12150
|
*/
|
|
11499
12151
|
409: {
|
|
@@ -12680,6 +13332,8 @@ interface operations {
|
|
|
12680
13332
|
* `control_nodes` `INVALID_KUBERNETES_CONTROL_NODES` or `KUBERNETES_HA_NOT_AVAILABLE`: 1, or 3 where offered.
|
|
12681
13333
|
* `autoscaling` `INVALID_KUBERNETES_AUTOSCALING`: min_workers and max_workers 1 to 10, min no more than max, and workers within them.
|
|
12682
13334
|
* `api_allowed_cidrs` `INVALID_API_ALLOWED_CIDRS` (at most 20 IPv4 CIDRs) or `API_ALLOWED_CIDRS_VPC_ONLY`.
|
|
13335
|
+
* `pod_cidr` `KUBERNETES_POD_CIDR_OVERLAP`: the pod range overlaps the cluster's VPC network, its subnet or `service_cidr`. Choose a range clear of them, or leave it out.
|
|
13336
|
+
* `service_cidr` `KUBERNETES_SERVICE_CIDR_OVERLAP`: the service range overlaps the cluster's VPC network, its subnet or `pod_cidr`. Choose a range clear of them, or leave it out.
|
|
12683
13337
|
* `subnet_id` `KUBERNETES_SUBNET_REQUIRED`, `KUBERNETES_SUBNET_NOT_ALLOWED` or `KUBERNETES_SUBNET_NOT_FOUND`: an active subnet in a VPC zone, and none in a standard zone.
|
|
12684
13338
|
* `UNKNOWN_FIELD`: the body has a field this endpoint does not take (named in `field`).
|
|
12685
13339
|
*/
|
|
@@ -13035,6 +13689,7 @@ interface operations {
|
|
|
13035
13689
|
* @description `KUBERNETES_CLUSTER_NOT_RUNNING`: start the cluster first.
|
|
13036
13690
|
* `KUBERNETES_CLUSTER_BUSY`: the cluster is already changing. Wait until it is running or stopped.
|
|
13037
13691
|
* `KUBERNETES_CLUSTER_NOT_CHANGEABLE`: the cluster cannot make this change now (stopped, being deleted, or failed).
|
|
13692
|
+
* `KUBERNETES_UPGRADE_NOT_AVAILABLE`: the cluster runs the version it was created with and cannot be upgraded in place. Create a new cluster on the version you need.
|
|
13038
13693
|
* `CONCURRENT_UPDATE`: the cluster changed while this request was being processed. Retry the request; if it repeats, read the cluster first.
|
|
13039
13694
|
*/
|
|
13040
13695
|
409: {
|
|
@@ -13146,6 +13801,8 @@ interface operations {
|
|
|
13146
13801
|
* @description `KUBERNETES_CLUSTER_NOT_RUNNING`: start the cluster first.
|
|
13147
13802
|
* `KUBERNETES_CLUSTER_BUSY`: the cluster is already changing. Wait until it is running or stopped.
|
|
13148
13803
|
* `KUBERNETES_CLUSTER_NOT_CHANGEABLE`: the cluster cannot make this change now (stopped, being deleted, or failed).
|
|
13804
|
+
* `KUBERNETES_NODE_DISK_CANNOT_SHRINK`: the plan's disk is smaller than the disks the cluster's nodes have. Choose a plan with at least the same disk.
|
|
13805
|
+
* `KUBERNETES_NODE_PLAN_NOT_CHANGEABLE`: this cluster's nodes cannot be resized. Add a node pool on the plan you need, or create a new cluster on it.
|
|
13149
13806
|
* `CONCURRENT_UPDATE`: the cluster changed while this request was being processed. Retry the request; if it repeats, read the cluster first.
|
|
13150
13807
|
*/
|
|
13151
13808
|
409: {
|
|
@@ -13257,6 +13914,7 @@ interface operations {
|
|
|
13257
13914
|
* @description `KUBERNETES_CLUSTER_NOT_RUNNING`: start the cluster first.
|
|
13258
13915
|
* `KUBERNETES_CLUSTER_BUSY`: the cluster is already changing. Wait until it is running or stopped.
|
|
13259
13916
|
* `KUBERNETES_CLUSTER_NOT_CHANGEABLE`: the cluster cannot make this change now (stopped, being deleted, or failed).
|
|
13917
|
+
* `KUBERNETES_NETWORK_NOT_CHANGEABLE`: `cni_plugin`, `pod_cidr` and `service_cidr` are set when the cluster is created and cannot be changed. Create a new cluster with the settings you need. Only `api_allowed_cidrs` changes here.
|
|
13260
13918
|
* `CONCURRENT_UPDATE`: the cluster changed while this request was being processed. Retry the request; if it repeats, read the cluster first.
|
|
13261
13919
|
*/
|
|
13262
13920
|
409: {
|
|
@@ -13546,6 +14204,7 @@ interface operations {
|
|
|
13546
14204
|
/**
|
|
13547
14205
|
* @description `SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
|
|
13548
14206
|
* `KUBERNETES_UNAVAILABLE`: managed Kubernetes is not open on this platform yet.
|
|
14207
|
+
* `KUBECONFIG_TEMPORARILY_UNAVAILABLE`: the download could not be recorded, so no kubeconfig was issued. Retry shortly.
|
|
13549
14208
|
*/
|
|
13550
14209
|
503: {
|
|
13551
14210
|
headers: {
|
|
@@ -13937,7 +14596,7 @@ interface operations {
|
|
|
13937
14596
|
"application/problem+json": components["schemas"]["Problem"];
|
|
13938
14597
|
};
|
|
13939
14598
|
};
|
|
13940
|
-
/** @description `PORT_IN_USE`, `KUBERNETES_ROUTING_UNAVAILABLE` or `KUBERNETES_CLUSTER_NOT_RUNNING`. */
|
|
14599
|
+
/** @description `PORT_IN_USE`, `KUBERNETES_ROUTING_UNAVAILABLE`, `IP_POOL_EXHAUSTED` or `KUBERNETES_CLUSTER_NOT_RUNNING`. */
|
|
13941
14600
|
409: {
|
|
13942
14601
|
headers: {
|
|
13943
14602
|
[name: string]: unknown;
|
|
@@ -14017,7 +14676,7 @@ interface operations {
|
|
|
14017
14676
|
"application/problem+json": components["schemas"]["Problem"];
|
|
14018
14677
|
};
|
|
14019
14678
|
};
|
|
14020
|
-
/** @description `PORT_IN_USE`, `KUBERNETES_ROUTING_UNAVAILABLE` or `KUBERNETES_CLUSTER_NOT_RUNNING`. */
|
|
14679
|
+
/** @description `PORT_IN_USE`, `KUBERNETES_ROUTING_UNAVAILABLE`, `IP_POOL_EXHAUSTED` or `KUBERNETES_CLUSTER_NOT_RUNNING`. */
|
|
14021
14680
|
409: {
|
|
14022
14681
|
headers: {
|
|
14023
14682
|
[name: string]: unknown;
|
|
@@ -15618,7 +16277,8 @@ interface operations {
|
|
|
15618
16277
|
};
|
|
15619
16278
|
/**
|
|
15620
16279
|
* @description `INVALID_RESOURCE_STATE`: the subnet still has instances or databases, or is already being deleted. Delete them first.
|
|
15621
|
-
* `SUBNET_HAS_KUBERNETES_CLUSTERS`: Kubernetes clusters still run in this subnet. Delete
|
|
16280
|
+
* `SUBNET_HAS_KUBERNETES_CLUSTERS`: Kubernetes clusters still run in this subnet, or the nodes of a cluster you deleted are still being removed (they are removed in the background, which can take up to an hour after the delete). Delete the clusters first, then retry.
|
|
16281
|
+
* `SUBNET_HAS_LOAD_BALANCERS`: load balancers still sit on this subnet, or one you deleted is still being removed. Delete them first, then retry; a deleted load balancer is removed within a few minutes.
|
|
15622
16282
|
* `CONCURRENT_UPDATE`: the resource changed while this request was being processed. Retry the request; if it repeats, read the resource first.
|
|
15623
16283
|
*/
|
|
15624
16284
|
409: {
|
|
@@ -17774,93 +18434,1016 @@ interface operations {
|
|
|
17774
18434
|
};
|
|
17775
18435
|
};
|
|
17776
18436
|
};
|
|
17777
|
-
|
|
17778
|
-
|
|
17779
|
-
|
|
17780
|
-
|
|
17781
|
-
|
|
17782
|
-
|
|
17783
|
-
|
|
17784
|
-
|
|
17785
|
-
|
|
18437
|
+
listCloudConnections: {
|
|
18438
|
+
parameters: {
|
|
18439
|
+
query?: never;
|
|
18440
|
+
header?: never;
|
|
18441
|
+
path?: never;
|
|
18442
|
+
cookie?: never;
|
|
18443
|
+
};
|
|
18444
|
+
requestBody?: never;
|
|
18445
|
+
responses: {
|
|
18446
|
+
/** @description Cloud connections. */
|
|
18447
|
+
200: {
|
|
18448
|
+
headers: {
|
|
18449
|
+
/** @description Requests allowed per window for this key. */
|
|
18450
|
+
"RateLimit-Limit"?: number;
|
|
18451
|
+
/** @description Requests left in this window. */
|
|
18452
|
+
"RateLimit-Remaining"?: number;
|
|
18453
|
+
/** @description Seconds until the window resets. */
|
|
18454
|
+
"RateLimit-Reset"?: number;
|
|
18455
|
+
/** @description This request's id. */
|
|
18456
|
+
"X-Request-Id"?: string;
|
|
18457
|
+
[name: string]: unknown;
|
|
18458
|
+
};
|
|
18459
|
+
content: {
|
|
18460
|
+
"application/json": components["schemas"]["CloudConnectionList"];
|
|
18461
|
+
};
|
|
18462
|
+
};
|
|
18463
|
+
401: components["responses"]["Unauthenticated"];
|
|
18464
|
+
403: components["responses"]["Forbidden"];
|
|
18465
|
+
429: components["responses"]["RateLimited"];
|
|
18466
|
+
/**
|
|
18467
|
+
* @description `MIGRATE_UNAVAILABLE`: Pantech Migrate is not available on this deployment yet. Try again later.
|
|
18468
|
+
* `SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
|
|
18469
|
+
*/
|
|
18470
|
+
503: {
|
|
18471
|
+
headers: {
|
|
18472
|
+
[name: string]: unknown;
|
|
18473
|
+
};
|
|
18474
|
+
content: {
|
|
18475
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
18476
|
+
};
|
|
18477
|
+
};
|
|
18478
|
+
};
|
|
17786
18479
|
};
|
|
17787
|
-
|
|
17788
|
-
|
|
17789
|
-
|
|
17790
|
-
|
|
17791
|
-
|
|
17792
|
-
|
|
17793
|
-
|
|
17794
|
-
|
|
17795
|
-
|
|
17796
|
-
|
|
17797
|
-
|
|
17798
|
-
|
|
17799
|
-
|
|
17800
|
-
|
|
17801
|
-
|
|
17802
|
-
|
|
17803
|
-
|
|
17804
|
-
|
|
17805
|
-
|
|
17806
|
-
/**
|
|
17807
|
-
|
|
17808
|
-
|
|
17809
|
-
|
|
17810
|
-
|
|
17811
|
-
|
|
17812
|
-
|
|
17813
|
-
|
|
17814
|
-
|
|
17815
|
-
|
|
17816
|
-
|
|
17817
|
-
|
|
17818
|
-
|
|
17819
|
-
|
|
17820
|
-
}
|
|
17821
|
-
|
|
17822
|
-
|
|
17823
|
-
|
|
17824
|
-
|
|
17825
|
-
|
|
17826
|
-
|
|
17827
|
-
|
|
17828
|
-
|
|
17829
|
-
|
|
17830
|
-
|
|
17831
|
-
|
|
17832
|
-
}
|
|
17833
|
-
|
|
17834
|
-
|
|
17835
|
-
|
|
17836
|
-
|
|
17837
|
-
}
|
|
17838
|
-
|
|
17839
|
-
|
|
17840
|
-
|
|
17841
|
-
}
|
|
17842
|
-
|
|
17843
|
-
|
|
17844
|
-
|
|
17845
|
-
|
|
17846
|
-
|
|
17847
|
-
|
|
17848
|
-
|
|
17849
|
-
|
|
17850
|
-
|
|
17851
|
-
|
|
17852
|
-
|
|
17853
|
-
|
|
17854
|
-
|
|
17855
|
-
}
|
|
17856
|
-
|
|
17857
|
-
|
|
17858
|
-
|
|
17859
|
-
|
|
17860
|
-
|
|
17861
|
-
|
|
17862
|
-
|
|
17863
|
-
}
|
|
18480
|
+
createCloudConnection: {
|
|
18481
|
+
parameters: {
|
|
18482
|
+
query?: never;
|
|
18483
|
+
header: {
|
|
18484
|
+
/** @description A unique value per change, e.g. a UUID. Retrying with the same key returns the original result instead of repeating the change; reusing it for a different request is an error. Required on every POST, PUT and DELETE. */
|
|
18485
|
+
"Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
18486
|
+
};
|
|
18487
|
+
path?: never;
|
|
18488
|
+
cookie?: never;
|
|
18489
|
+
};
|
|
18490
|
+
requestBody: {
|
|
18491
|
+
content: {
|
|
18492
|
+
"application/json": components["schemas"]["CreateCloudConnectionRequest"];
|
|
18493
|
+
};
|
|
18494
|
+
};
|
|
18495
|
+
responses: {
|
|
18496
|
+
/** @description The connection, with its setup. */
|
|
18497
|
+
201: {
|
|
18498
|
+
headers: {
|
|
18499
|
+
/** @description Requests allowed per window for this key. */
|
|
18500
|
+
"RateLimit-Limit"?: number;
|
|
18501
|
+
/** @description Requests left in this window. */
|
|
18502
|
+
"RateLimit-Remaining"?: number;
|
|
18503
|
+
/** @description Seconds until the window resets. */
|
|
18504
|
+
"RateLimit-Reset"?: number;
|
|
18505
|
+
/** @description This request's id. */
|
|
18506
|
+
"X-Request-Id"?: string;
|
|
18507
|
+
/** @description Where the new resource is. */
|
|
18508
|
+
Location?: string;
|
|
18509
|
+
[name: string]: unknown;
|
|
18510
|
+
};
|
|
18511
|
+
content: {
|
|
18512
|
+
"application/json": components["schemas"]["CloudConnection"];
|
|
18513
|
+
};
|
|
18514
|
+
};
|
|
18515
|
+
401: components["responses"]["Unauthenticated"];
|
|
18516
|
+
403: components["responses"]["Forbidden"];
|
|
18517
|
+
/** @description `IDEMPOTENCY_CONFLICT`: this Idempotency-Key was used with a different request. */
|
|
18518
|
+
409: {
|
|
18519
|
+
headers: {
|
|
18520
|
+
[name: string]: unknown;
|
|
18521
|
+
};
|
|
18522
|
+
content: {
|
|
18523
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
18524
|
+
};
|
|
18525
|
+
};
|
|
18526
|
+
/** @description `VALIDATION_FAILED`: a field is invalid; `errors` names it. `provider` must be `aws`. */
|
|
18527
|
+
422: {
|
|
18528
|
+
headers: {
|
|
18529
|
+
[name: string]: unknown;
|
|
18530
|
+
};
|
|
18531
|
+
content: {
|
|
18532
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
18533
|
+
};
|
|
18534
|
+
};
|
|
18535
|
+
429: components["responses"]["RateLimited"];
|
|
18536
|
+
/**
|
|
18537
|
+
* @description `MIGRATE_UNAVAILABLE`: Pantech Migrate is not available on this deployment yet. Try again later.
|
|
18538
|
+
* `SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
|
|
18539
|
+
*/
|
|
18540
|
+
503: {
|
|
18541
|
+
headers: {
|
|
18542
|
+
[name: string]: unknown;
|
|
18543
|
+
};
|
|
18544
|
+
content: {
|
|
18545
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
18546
|
+
};
|
|
18547
|
+
};
|
|
18548
|
+
};
|
|
18549
|
+
};
|
|
18550
|
+
getCloudConnection: {
|
|
18551
|
+
parameters: {
|
|
18552
|
+
query?: never;
|
|
18553
|
+
header?: never;
|
|
18554
|
+
path: {
|
|
18555
|
+
connection_id: string;
|
|
18556
|
+
};
|
|
18557
|
+
cookie?: never;
|
|
18558
|
+
};
|
|
18559
|
+
requestBody?: never;
|
|
18560
|
+
responses: {
|
|
18561
|
+
/** @description The connection. */
|
|
18562
|
+
200: {
|
|
18563
|
+
headers: {
|
|
18564
|
+
/** @description Requests allowed per window for this key. */
|
|
18565
|
+
"RateLimit-Limit"?: number;
|
|
18566
|
+
/** @description Requests left in this window. */
|
|
18567
|
+
"RateLimit-Remaining"?: number;
|
|
18568
|
+
/** @description Seconds until the window resets. */
|
|
18569
|
+
"RateLimit-Reset"?: number;
|
|
18570
|
+
/** @description This request's id. */
|
|
18571
|
+
"X-Request-Id"?: string;
|
|
18572
|
+
[name: string]: unknown;
|
|
18573
|
+
};
|
|
18574
|
+
content: {
|
|
18575
|
+
"application/json": components["schemas"]["CloudConnection"];
|
|
18576
|
+
};
|
|
18577
|
+
};
|
|
18578
|
+
401: components["responses"]["Unauthenticated"];
|
|
18579
|
+
403: components["responses"]["Forbidden"];
|
|
18580
|
+
/** @description `CLOUD_CONNECTION_NOT_FOUND`: no cloud connection with this id exists in your organization. */
|
|
18581
|
+
404: {
|
|
18582
|
+
headers: {
|
|
18583
|
+
[name: string]: unknown;
|
|
18584
|
+
};
|
|
18585
|
+
content: {
|
|
18586
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
18587
|
+
};
|
|
18588
|
+
};
|
|
18589
|
+
429: components["responses"]["RateLimited"];
|
|
18590
|
+
/**
|
|
18591
|
+
* @description `MIGRATE_UNAVAILABLE`: Pantech Migrate is not available on this deployment yet. Try again later.
|
|
18592
|
+
* `SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
|
|
18593
|
+
*/
|
|
18594
|
+
503: {
|
|
18595
|
+
headers: {
|
|
18596
|
+
[name: string]: unknown;
|
|
18597
|
+
};
|
|
18598
|
+
content: {
|
|
18599
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
18600
|
+
};
|
|
18601
|
+
};
|
|
18602
|
+
};
|
|
18603
|
+
};
|
|
18604
|
+
deleteCloudConnection: {
|
|
18605
|
+
parameters: {
|
|
18606
|
+
query?: never;
|
|
18607
|
+
header: {
|
|
18608
|
+
/** @description A unique value per change, e.g. a UUID. Retrying with the same key returns the original result instead of repeating the change; reusing it for a different request is an error. Required on every POST, PUT and DELETE. */
|
|
18609
|
+
"Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
18610
|
+
};
|
|
18611
|
+
path: {
|
|
18612
|
+
connection_id: string;
|
|
18613
|
+
};
|
|
18614
|
+
cookie?: never;
|
|
18615
|
+
};
|
|
18616
|
+
requestBody?: never;
|
|
18617
|
+
responses: {
|
|
18618
|
+
/** @description Disconnected. */
|
|
18619
|
+
204: {
|
|
18620
|
+
headers: {
|
|
18621
|
+
/** @description Requests allowed per window for this key. */
|
|
18622
|
+
"RateLimit-Limit"?: number;
|
|
18623
|
+
/** @description Requests left in this window. */
|
|
18624
|
+
"RateLimit-Remaining"?: number;
|
|
18625
|
+
/** @description Seconds until the window resets. */
|
|
18626
|
+
"RateLimit-Reset"?: number;
|
|
18627
|
+
/** @description This request's id. */
|
|
18628
|
+
"X-Request-Id"?: string;
|
|
18629
|
+
[name: string]: unknown;
|
|
18630
|
+
};
|
|
18631
|
+
content?: never;
|
|
18632
|
+
};
|
|
18633
|
+
401: components["responses"]["Unauthenticated"];
|
|
18634
|
+
403: components["responses"]["Forbidden"];
|
|
18635
|
+
/** @description `CLOUD_CONNECTION_NOT_FOUND`: no cloud connection with this id exists in your organization. */
|
|
18636
|
+
404: {
|
|
18637
|
+
headers: {
|
|
18638
|
+
[name: string]: unknown;
|
|
18639
|
+
};
|
|
18640
|
+
content: {
|
|
18641
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
18642
|
+
};
|
|
18643
|
+
};
|
|
18644
|
+
429: components["responses"]["RateLimited"];
|
|
18645
|
+
/**
|
|
18646
|
+
* @description `MIGRATE_UNAVAILABLE`: Pantech Migrate is not available on this deployment yet. Try again later.
|
|
18647
|
+
* `SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
|
|
18648
|
+
*/
|
|
18649
|
+
503: {
|
|
18650
|
+
headers: {
|
|
18651
|
+
[name: string]: unknown;
|
|
18652
|
+
};
|
|
18653
|
+
content: {
|
|
18654
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
18655
|
+
};
|
|
18656
|
+
};
|
|
18657
|
+
};
|
|
18658
|
+
};
|
|
18659
|
+
updateCloudConnection: {
|
|
18660
|
+
parameters: {
|
|
18661
|
+
query?: never;
|
|
18662
|
+
header: {
|
|
18663
|
+
/** @description A unique value per change, e.g. a UUID. Retrying with the same key returns the original result instead of repeating the change; reusing it for a different request is an error. Required on every POST, PUT and DELETE. */
|
|
18664
|
+
"Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
18665
|
+
};
|
|
18666
|
+
path: {
|
|
18667
|
+
connection_id: string;
|
|
18668
|
+
};
|
|
18669
|
+
cookie?: never;
|
|
18670
|
+
};
|
|
18671
|
+
requestBody: {
|
|
18672
|
+
content: {
|
|
18673
|
+
"application/json": components["schemas"]["UpdateCloudConnectionRequest"];
|
|
18674
|
+
};
|
|
18675
|
+
};
|
|
18676
|
+
responses: {
|
|
18677
|
+
/** @description The connection. */
|
|
18678
|
+
200: {
|
|
18679
|
+
headers: {
|
|
18680
|
+
/** @description Requests allowed per window for this key. */
|
|
18681
|
+
"RateLimit-Limit"?: number;
|
|
18682
|
+
/** @description Requests left in this window. */
|
|
18683
|
+
"RateLimit-Remaining"?: number;
|
|
18684
|
+
/** @description Seconds until the window resets. */
|
|
18685
|
+
"RateLimit-Reset"?: number;
|
|
18686
|
+
/** @description This request's id. */
|
|
18687
|
+
"X-Request-Id"?: string;
|
|
18688
|
+
[name: string]: unknown;
|
|
18689
|
+
};
|
|
18690
|
+
content: {
|
|
18691
|
+
"application/json": components["schemas"]["CloudConnection"];
|
|
18692
|
+
};
|
|
18693
|
+
};
|
|
18694
|
+
401: components["responses"]["Unauthenticated"];
|
|
18695
|
+
403: components["responses"]["Forbidden"];
|
|
18696
|
+
/** @description `CLOUD_CONNECTION_NOT_FOUND`: no cloud connection with this id exists in your organization. */
|
|
18697
|
+
404: {
|
|
18698
|
+
headers: {
|
|
18699
|
+
[name: string]: unknown;
|
|
18700
|
+
};
|
|
18701
|
+
content: {
|
|
18702
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
18703
|
+
};
|
|
18704
|
+
};
|
|
18705
|
+
/** @description `CONFLICT`: the connection changed at the same time. Read it again and retry. */
|
|
18706
|
+
409: {
|
|
18707
|
+
headers: {
|
|
18708
|
+
[name: string]: unknown;
|
|
18709
|
+
};
|
|
18710
|
+
content: {
|
|
18711
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
18712
|
+
};
|
|
18713
|
+
};
|
|
18714
|
+
/** @description `VALIDATION_FAILED`: a field is invalid; `errors` names it. `role_arn` must be the stack's RoleArn output, like `arn:aws:iam::123456789012:role/name`. */
|
|
18715
|
+
422: {
|
|
18716
|
+
headers: {
|
|
18717
|
+
[name: string]: unknown;
|
|
18718
|
+
};
|
|
18719
|
+
content: {
|
|
18720
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
18721
|
+
};
|
|
18722
|
+
};
|
|
18723
|
+
429: components["responses"]["RateLimited"];
|
|
18724
|
+
/**
|
|
18725
|
+
* @description `MIGRATE_UNAVAILABLE`: Pantech Migrate is not available on this deployment yet. Try again later.
|
|
18726
|
+
* `SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
|
|
18727
|
+
*/
|
|
18728
|
+
503: {
|
|
18729
|
+
headers: {
|
|
18730
|
+
[name: string]: unknown;
|
|
18731
|
+
};
|
|
18732
|
+
content: {
|
|
18733
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
18734
|
+
};
|
|
18735
|
+
};
|
|
18736
|
+
};
|
|
18737
|
+
};
|
|
18738
|
+
listCloudScans: {
|
|
18739
|
+
parameters: {
|
|
18740
|
+
query?: never;
|
|
18741
|
+
header?: never;
|
|
18742
|
+
path: {
|
|
18743
|
+
connection_id: string;
|
|
18744
|
+
};
|
|
18745
|
+
cookie?: never;
|
|
18746
|
+
};
|
|
18747
|
+
requestBody?: never;
|
|
18748
|
+
responses: {
|
|
18749
|
+
/** @description Scans. */
|
|
18750
|
+
200: {
|
|
18751
|
+
headers: {
|
|
18752
|
+
/** @description Requests allowed per window for this key. */
|
|
18753
|
+
"RateLimit-Limit"?: number;
|
|
18754
|
+
/** @description Requests left in this window. */
|
|
18755
|
+
"RateLimit-Remaining"?: number;
|
|
18756
|
+
/** @description Seconds until the window resets. */
|
|
18757
|
+
"RateLimit-Reset"?: number;
|
|
18758
|
+
/** @description This request's id. */
|
|
18759
|
+
"X-Request-Id"?: string;
|
|
18760
|
+
[name: string]: unknown;
|
|
18761
|
+
};
|
|
18762
|
+
content: {
|
|
18763
|
+
"application/json": components["schemas"]["CloudScanList"];
|
|
18764
|
+
};
|
|
18765
|
+
};
|
|
18766
|
+
401: components["responses"]["Unauthenticated"];
|
|
18767
|
+
403: components["responses"]["Forbidden"];
|
|
18768
|
+
/** @description `CLOUD_CONNECTION_NOT_FOUND`: no cloud connection with this id exists in your organization. */
|
|
18769
|
+
404: {
|
|
18770
|
+
headers: {
|
|
18771
|
+
[name: string]: unknown;
|
|
18772
|
+
};
|
|
18773
|
+
content: {
|
|
18774
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
18775
|
+
};
|
|
18776
|
+
};
|
|
18777
|
+
429: components["responses"]["RateLimited"];
|
|
18778
|
+
/**
|
|
18779
|
+
* @description `MIGRATE_UNAVAILABLE`: Pantech Migrate is not available on this deployment yet. Try again later.
|
|
18780
|
+
* `SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
|
|
18781
|
+
*/
|
|
18782
|
+
503: {
|
|
18783
|
+
headers: {
|
|
18784
|
+
[name: string]: unknown;
|
|
18785
|
+
};
|
|
18786
|
+
content: {
|
|
18787
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
18788
|
+
};
|
|
18789
|
+
};
|
|
18790
|
+
};
|
|
18791
|
+
};
|
|
18792
|
+
startCloudScan: {
|
|
18793
|
+
parameters: {
|
|
18794
|
+
query?: never;
|
|
18795
|
+
header: {
|
|
18796
|
+
/** @description A unique value per change, e.g. a UUID. Retrying with the same key returns the original result instead of repeating the change; reusing it for a different request is an error. Required on every POST, PUT and DELETE. */
|
|
18797
|
+
"Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
18798
|
+
};
|
|
18799
|
+
path: {
|
|
18800
|
+
connection_id: string;
|
|
18801
|
+
};
|
|
18802
|
+
cookie?: never;
|
|
18803
|
+
};
|
|
18804
|
+
requestBody?: never;
|
|
18805
|
+
responses: {
|
|
18806
|
+
/** @description The queued scan. */
|
|
18807
|
+
202: {
|
|
18808
|
+
headers: {
|
|
18809
|
+
/** @description Requests allowed per window for this key. */
|
|
18810
|
+
"RateLimit-Limit"?: number;
|
|
18811
|
+
/** @description Requests left in this window. */
|
|
18812
|
+
"RateLimit-Remaining"?: number;
|
|
18813
|
+
/** @description Seconds until the window resets. */
|
|
18814
|
+
"RateLimit-Reset"?: number;
|
|
18815
|
+
/** @description This request's id. */
|
|
18816
|
+
"X-Request-Id"?: string;
|
|
18817
|
+
/** @description Where the new resource is. */
|
|
18818
|
+
Location?: string;
|
|
18819
|
+
[name: string]: unknown;
|
|
18820
|
+
};
|
|
18821
|
+
content: {
|
|
18822
|
+
"application/json": components["schemas"]["CloudScan"];
|
|
18823
|
+
};
|
|
18824
|
+
};
|
|
18825
|
+
401: components["responses"]["Unauthenticated"];
|
|
18826
|
+
403: components["responses"]["Forbidden"];
|
|
18827
|
+
/** @description `CLOUD_CONNECTION_NOT_FOUND`: no cloud connection with this id exists in your organization. */
|
|
18828
|
+
404: {
|
|
18829
|
+
headers: {
|
|
18830
|
+
[name: string]: unknown;
|
|
18831
|
+
};
|
|
18832
|
+
content: {
|
|
18833
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
18834
|
+
};
|
|
18835
|
+
};
|
|
18836
|
+
/** @description `CLOUD_CONNECTION_NOT_CONNECTED`: finish connecting first. `CLOUD_CONNECTION_VERIFYING`: the connection is still being checked. `CLOUD_SCAN_IN_PROGRESS`: a scan is already running. `IDEMPOTENCY_CONFLICT`: this Idempotency-Key was used for another connection. */
|
|
18837
|
+
409: {
|
|
18838
|
+
headers: {
|
|
18839
|
+
[name: string]: unknown;
|
|
18840
|
+
};
|
|
18841
|
+
content: {
|
|
18842
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
18843
|
+
};
|
|
18844
|
+
};
|
|
18845
|
+
429: components["responses"]["RateLimited"];
|
|
18846
|
+
/**
|
|
18847
|
+
* @description `MIGRATE_UNAVAILABLE`: Pantech Migrate is not available on this deployment yet. Try again later.
|
|
18848
|
+
* `SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
|
|
18849
|
+
*/
|
|
18850
|
+
503: {
|
|
18851
|
+
headers: {
|
|
18852
|
+
[name: string]: unknown;
|
|
18853
|
+
};
|
|
18854
|
+
content: {
|
|
18855
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
18856
|
+
};
|
|
18857
|
+
};
|
|
18858
|
+
};
|
|
18859
|
+
};
|
|
18860
|
+
getCloudScan: {
|
|
18861
|
+
parameters: {
|
|
18862
|
+
query?: {
|
|
18863
|
+
/** @description `inventory` returns everything the scan found. */
|
|
18864
|
+
include?: "inventory";
|
|
18865
|
+
};
|
|
18866
|
+
header?: never;
|
|
18867
|
+
path: {
|
|
18868
|
+
scan_id: string;
|
|
18869
|
+
};
|
|
18870
|
+
cookie?: never;
|
|
18871
|
+
};
|
|
18872
|
+
requestBody?: never;
|
|
18873
|
+
responses: {
|
|
18874
|
+
/** @description The scan. */
|
|
18875
|
+
200: {
|
|
18876
|
+
headers: {
|
|
18877
|
+
/** @description Requests allowed per window for this key. */
|
|
18878
|
+
"RateLimit-Limit"?: number;
|
|
18879
|
+
/** @description Requests left in this window. */
|
|
18880
|
+
"RateLimit-Remaining"?: number;
|
|
18881
|
+
/** @description Seconds until the window resets. */
|
|
18882
|
+
"RateLimit-Reset"?: number;
|
|
18883
|
+
/** @description This request's id. */
|
|
18884
|
+
"X-Request-Id"?: string;
|
|
18885
|
+
[name: string]: unknown;
|
|
18886
|
+
};
|
|
18887
|
+
content: {
|
|
18888
|
+
"application/json": components["schemas"]["CloudScan"];
|
|
18889
|
+
};
|
|
18890
|
+
};
|
|
18891
|
+
401: components["responses"]["Unauthenticated"];
|
|
18892
|
+
403: components["responses"]["Forbidden"];
|
|
18893
|
+
/** @description `CLOUD_SCAN_NOT_FOUND`: no scan with this id exists in your organization. */
|
|
18894
|
+
404: {
|
|
18895
|
+
headers: {
|
|
18896
|
+
[name: string]: unknown;
|
|
18897
|
+
};
|
|
18898
|
+
content: {
|
|
18899
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
18900
|
+
};
|
|
18901
|
+
};
|
|
18902
|
+
429: components["responses"]["RateLimited"];
|
|
18903
|
+
/**
|
|
18904
|
+
* @description `MIGRATE_UNAVAILABLE`: Pantech Migrate is not available on this deployment yet. Try again later.
|
|
18905
|
+
* `SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
|
|
18906
|
+
*/
|
|
18907
|
+
503: {
|
|
18908
|
+
headers: {
|
|
18909
|
+
[name: string]: unknown;
|
|
18910
|
+
};
|
|
18911
|
+
content: {
|
|
18912
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
18913
|
+
};
|
|
18914
|
+
};
|
|
18915
|
+
};
|
|
18916
|
+
};
|
|
18917
|
+
listMigrations: {
|
|
18918
|
+
parameters: {
|
|
18919
|
+
query?: never;
|
|
18920
|
+
header?: never;
|
|
18921
|
+
path?: never;
|
|
18922
|
+
cookie?: never;
|
|
18923
|
+
};
|
|
18924
|
+
requestBody?: never;
|
|
18925
|
+
responses: {
|
|
18926
|
+
/** @description Migrations. */
|
|
18927
|
+
200: {
|
|
18928
|
+
headers: {
|
|
18929
|
+
/** @description Requests allowed per window for this key. */
|
|
18930
|
+
"RateLimit-Limit"?: number;
|
|
18931
|
+
/** @description Requests left in this window. */
|
|
18932
|
+
"RateLimit-Remaining"?: number;
|
|
18933
|
+
/** @description Seconds until the window resets. */
|
|
18934
|
+
"RateLimit-Reset"?: number;
|
|
18935
|
+
/** @description This request's id. */
|
|
18936
|
+
"X-Request-Id"?: string;
|
|
18937
|
+
[name: string]: unknown;
|
|
18938
|
+
};
|
|
18939
|
+
content: {
|
|
18940
|
+
"application/json": components["schemas"]["MigrationList"];
|
|
18941
|
+
};
|
|
18942
|
+
};
|
|
18943
|
+
401: components["responses"]["Unauthenticated"];
|
|
18944
|
+
403: components["responses"]["Forbidden"];
|
|
18945
|
+
429: components["responses"]["RateLimited"];
|
|
18946
|
+
/**
|
|
18947
|
+
* @description `MIGRATE_UNAVAILABLE`: Pantech Migrate is not available on this deployment yet. Try again later.
|
|
18948
|
+
* `SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
|
|
18949
|
+
*/
|
|
18950
|
+
503: {
|
|
18951
|
+
headers: {
|
|
18952
|
+
[name: string]: unknown;
|
|
18953
|
+
};
|
|
18954
|
+
content: {
|
|
18955
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
18956
|
+
};
|
|
18957
|
+
};
|
|
18958
|
+
};
|
|
18959
|
+
};
|
|
18960
|
+
createMigration: {
|
|
18961
|
+
parameters: {
|
|
18962
|
+
query?: never;
|
|
18963
|
+
header: {
|
|
18964
|
+
/** @description A unique value per change, e.g. a UUID. Retrying with the same key returns the original result instead of repeating the change; reusing it for a different request is an error. Required on every POST, PUT and DELETE. */
|
|
18965
|
+
"Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
18966
|
+
};
|
|
18967
|
+
path?: never;
|
|
18968
|
+
cookie?: never;
|
|
18969
|
+
};
|
|
18970
|
+
requestBody: {
|
|
18971
|
+
content: {
|
|
18972
|
+
"application/json": components["schemas"]["CreateMigrationRequest"];
|
|
18973
|
+
};
|
|
18974
|
+
};
|
|
18975
|
+
responses: {
|
|
18976
|
+
/** @description The plan. */
|
|
18977
|
+
201: {
|
|
18978
|
+
headers: {
|
|
18979
|
+
/** @description Requests allowed per window for this key. */
|
|
18980
|
+
"RateLimit-Limit"?: number;
|
|
18981
|
+
/** @description Requests left in this window. */
|
|
18982
|
+
"RateLimit-Remaining"?: number;
|
|
18983
|
+
/** @description Seconds until the window resets. */
|
|
18984
|
+
"RateLimit-Reset"?: number;
|
|
18985
|
+
/** @description This request's id. */
|
|
18986
|
+
"X-Request-Id"?: string;
|
|
18987
|
+
/** @description Where the new resource is. */
|
|
18988
|
+
Location?: string;
|
|
18989
|
+
[name: string]: unknown;
|
|
18990
|
+
};
|
|
18991
|
+
content: {
|
|
18992
|
+
"application/json": components["schemas"]["Migration"];
|
|
18993
|
+
};
|
|
18994
|
+
};
|
|
18995
|
+
401: components["responses"]["Unauthenticated"];
|
|
18996
|
+
403: components["responses"]["Forbidden"];
|
|
18997
|
+
/** @description `CLOUD_SCAN_NOT_FOUND`: no scan with this id exists in your organization. */
|
|
18998
|
+
404: {
|
|
18999
|
+
headers: {
|
|
19000
|
+
[name: string]: unknown;
|
|
19001
|
+
};
|
|
19002
|
+
content: {
|
|
19003
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
19004
|
+
};
|
|
19005
|
+
};
|
|
19006
|
+
/** @description `CLOUD_SCAN_NOT_READY`: the scan has not succeeded. `IDEMPOTENCY_CONFLICT`: this Idempotency-Key was used with another scan. */
|
|
19007
|
+
409: {
|
|
19008
|
+
headers: {
|
|
19009
|
+
[name: string]: unknown;
|
|
19010
|
+
};
|
|
19011
|
+
content: {
|
|
19012
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
19013
|
+
};
|
|
19014
|
+
};
|
|
19015
|
+
/** @description `VALIDATION_FAILED`: a field is invalid; `errors` names it. `region` must be a Pantech region code. */
|
|
19016
|
+
422: {
|
|
19017
|
+
headers: {
|
|
19018
|
+
[name: string]: unknown;
|
|
19019
|
+
};
|
|
19020
|
+
content: {
|
|
19021
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
19022
|
+
};
|
|
19023
|
+
};
|
|
19024
|
+
429: components["responses"]["RateLimited"];
|
|
19025
|
+
/**
|
|
19026
|
+
* @description `MIGRATE_UNAVAILABLE`: Pantech Migrate is not available on this deployment yet. Try again later.
|
|
19027
|
+
* `SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
|
|
19028
|
+
*/
|
|
19029
|
+
503: {
|
|
19030
|
+
headers: {
|
|
19031
|
+
[name: string]: unknown;
|
|
19032
|
+
};
|
|
19033
|
+
content: {
|
|
19034
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
19035
|
+
};
|
|
19036
|
+
};
|
|
19037
|
+
};
|
|
19038
|
+
};
|
|
19039
|
+
getMigration: {
|
|
19040
|
+
parameters: {
|
|
19041
|
+
query?: never;
|
|
19042
|
+
header?: never;
|
|
19043
|
+
path: {
|
|
19044
|
+
migration_id: string;
|
|
19045
|
+
};
|
|
19046
|
+
cookie?: never;
|
|
19047
|
+
};
|
|
19048
|
+
requestBody?: never;
|
|
19049
|
+
responses: {
|
|
19050
|
+
/** @description The plan. */
|
|
19051
|
+
200: {
|
|
19052
|
+
headers: {
|
|
19053
|
+
/** @description Requests allowed per window for this key. */
|
|
19054
|
+
"RateLimit-Limit"?: number;
|
|
19055
|
+
/** @description Requests left in this window. */
|
|
19056
|
+
"RateLimit-Remaining"?: number;
|
|
19057
|
+
/** @description Seconds until the window resets. */
|
|
19058
|
+
"RateLimit-Reset"?: number;
|
|
19059
|
+
/** @description This request's id. */
|
|
19060
|
+
"X-Request-Id"?: string;
|
|
19061
|
+
[name: string]: unknown;
|
|
19062
|
+
};
|
|
19063
|
+
content: {
|
|
19064
|
+
"application/json": components["schemas"]["Migration"];
|
|
19065
|
+
};
|
|
19066
|
+
};
|
|
19067
|
+
401: components["responses"]["Unauthenticated"];
|
|
19068
|
+
403: components["responses"]["Forbidden"];
|
|
19069
|
+
/** @description `MIGRATION_NOT_FOUND`: no migration with this id exists in your organization. */
|
|
19070
|
+
404: {
|
|
19071
|
+
headers: {
|
|
19072
|
+
[name: string]: unknown;
|
|
19073
|
+
};
|
|
19074
|
+
content: {
|
|
19075
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
19076
|
+
};
|
|
19077
|
+
};
|
|
19078
|
+
429: components["responses"]["RateLimited"];
|
|
19079
|
+
/**
|
|
19080
|
+
* @description `MIGRATE_UNAVAILABLE`: Pantech Migrate is not available on this deployment yet. Try again later.
|
|
19081
|
+
* `SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
|
|
19082
|
+
*/
|
|
19083
|
+
503: {
|
|
19084
|
+
headers: {
|
|
19085
|
+
[name: string]: unknown;
|
|
19086
|
+
};
|
|
19087
|
+
content: {
|
|
19088
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
19089
|
+
};
|
|
19090
|
+
};
|
|
19091
|
+
};
|
|
19092
|
+
};
|
|
19093
|
+
deleteMigration: {
|
|
19094
|
+
parameters: {
|
|
19095
|
+
query?: never;
|
|
19096
|
+
header: {
|
|
19097
|
+
/** @description A unique value per change, e.g. a UUID. Retrying with the same key returns the original result instead of repeating the change; reusing it for a different request is an error. Required on every POST, PUT and DELETE. */
|
|
19098
|
+
"Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
19099
|
+
};
|
|
19100
|
+
path: {
|
|
19101
|
+
migration_id: string;
|
|
19102
|
+
};
|
|
19103
|
+
cookie?: never;
|
|
19104
|
+
};
|
|
19105
|
+
requestBody?: never;
|
|
19106
|
+
responses: {
|
|
19107
|
+
/** @description Deleted. */
|
|
19108
|
+
204: {
|
|
19109
|
+
headers: {
|
|
19110
|
+
/** @description Requests allowed per window for this key. */
|
|
19111
|
+
"RateLimit-Limit"?: number;
|
|
19112
|
+
/** @description Requests left in this window. */
|
|
19113
|
+
"RateLimit-Remaining"?: number;
|
|
19114
|
+
/** @description Seconds until the window resets. */
|
|
19115
|
+
"RateLimit-Reset"?: number;
|
|
19116
|
+
/** @description This request's id. */
|
|
19117
|
+
"X-Request-Id"?: string;
|
|
19118
|
+
[name: string]: unknown;
|
|
19119
|
+
};
|
|
19120
|
+
content?: never;
|
|
19121
|
+
};
|
|
19122
|
+
401: components["responses"]["Unauthenticated"];
|
|
19123
|
+
403: components["responses"]["Forbidden"];
|
|
19124
|
+
/** @description `MIGRATION_NOT_FOUND`: no migration with this id exists in your organization. */
|
|
19125
|
+
404: {
|
|
19126
|
+
headers: {
|
|
19127
|
+
[name: string]: unknown;
|
|
19128
|
+
};
|
|
19129
|
+
content: {
|
|
19130
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
19131
|
+
};
|
|
19132
|
+
};
|
|
19133
|
+
429: components["responses"]["RateLimited"];
|
|
19134
|
+
/**
|
|
19135
|
+
* @description `MIGRATE_UNAVAILABLE`: Pantech Migrate is not available on this deployment yet. Try again later.
|
|
19136
|
+
* `SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
|
|
19137
|
+
*/
|
|
19138
|
+
503: {
|
|
19139
|
+
headers: {
|
|
19140
|
+
[name: string]: unknown;
|
|
19141
|
+
};
|
|
19142
|
+
content: {
|
|
19143
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
19144
|
+
};
|
|
19145
|
+
};
|
|
19146
|
+
};
|
|
19147
|
+
};
|
|
19148
|
+
renameMigration: {
|
|
19149
|
+
parameters: {
|
|
19150
|
+
query?: never;
|
|
19151
|
+
header: {
|
|
19152
|
+
/** @description A unique value per change, e.g. a UUID. Retrying with the same key returns the original result instead of repeating the change; reusing it for a different request is an error. Required on every POST, PUT and DELETE. */
|
|
19153
|
+
"Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
19154
|
+
};
|
|
19155
|
+
path: {
|
|
19156
|
+
migration_id: string;
|
|
19157
|
+
};
|
|
19158
|
+
cookie?: never;
|
|
19159
|
+
};
|
|
19160
|
+
requestBody: {
|
|
19161
|
+
content: {
|
|
19162
|
+
"application/json": components["schemas"]["RenameMigrationRequest"];
|
|
19163
|
+
};
|
|
19164
|
+
};
|
|
19165
|
+
responses: {
|
|
19166
|
+
/** @description The plan. */
|
|
19167
|
+
200: {
|
|
19168
|
+
headers: {
|
|
19169
|
+
/** @description Requests allowed per window for this key. */
|
|
19170
|
+
"RateLimit-Limit"?: number;
|
|
19171
|
+
/** @description Requests left in this window. */
|
|
19172
|
+
"RateLimit-Remaining"?: number;
|
|
19173
|
+
/** @description Seconds until the window resets. */
|
|
19174
|
+
"RateLimit-Reset"?: number;
|
|
19175
|
+
/** @description This request's id. */
|
|
19176
|
+
"X-Request-Id"?: string;
|
|
19177
|
+
[name: string]: unknown;
|
|
19178
|
+
};
|
|
19179
|
+
content: {
|
|
19180
|
+
"application/json": components["schemas"]["Migration"];
|
|
19181
|
+
};
|
|
19182
|
+
};
|
|
19183
|
+
401: components["responses"]["Unauthenticated"];
|
|
19184
|
+
403: components["responses"]["Forbidden"];
|
|
19185
|
+
/** @description `MIGRATION_NOT_FOUND`: no migration with this id exists in your organization. */
|
|
19186
|
+
404: {
|
|
19187
|
+
headers: {
|
|
19188
|
+
[name: string]: unknown;
|
|
19189
|
+
};
|
|
19190
|
+
content: {
|
|
19191
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
19192
|
+
};
|
|
19193
|
+
};
|
|
19194
|
+
/** @description `CONFLICT`: the plan changed at the same time. Read it again and retry. */
|
|
19195
|
+
409: {
|
|
19196
|
+
headers: {
|
|
19197
|
+
[name: string]: unknown;
|
|
19198
|
+
};
|
|
19199
|
+
content: {
|
|
19200
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
19201
|
+
};
|
|
19202
|
+
};
|
|
19203
|
+
/** @description `VALIDATION_FAILED`: a field is invalid; `errors` names it. */
|
|
19204
|
+
422: {
|
|
19205
|
+
headers: {
|
|
19206
|
+
[name: string]: unknown;
|
|
19207
|
+
};
|
|
19208
|
+
content: {
|
|
19209
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
19210
|
+
};
|
|
19211
|
+
};
|
|
19212
|
+
429: components["responses"]["RateLimited"];
|
|
19213
|
+
/**
|
|
19214
|
+
* @description `MIGRATE_UNAVAILABLE`: Pantech Migrate is not available on this deployment yet. Try again later.
|
|
19215
|
+
* `SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
|
|
19216
|
+
*/
|
|
19217
|
+
503: {
|
|
19218
|
+
headers: {
|
|
19219
|
+
[name: string]: unknown;
|
|
19220
|
+
};
|
|
19221
|
+
content: {
|
|
19222
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
19223
|
+
};
|
|
19224
|
+
};
|
|
19225
|
+
};
|
|
19226
|
+
};
|
|
19227
|
+
updateMigrationItem: {
|
|
19228
|
+
parameters: {
|
|
19229
|
+
query?: never;
|
|
19230
|
+
header: {
|
|
19231
|
+
/** @description A unique value per change, e.g. a UUID. Retrying with the same key returns the original result instead of repeating the change; reusing it for a different request is an error. Required on every POST, PUT and DELETE. */
|
|
19232
|
+
"Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
19233
|
+
};
|
|
19234
|
+
path: {
|
|
19235
|
+
migration_id: string;
|
|
19236
|
+
};
|
|
19237
|
+
cookie?: never;
|
|
19238
|
+
};
|
|
19239
|
+
requestBody: {
|
|
19240
|
+
content: {
|
|
19241
|
+
"application/json": components["schemas"]["UpdateMigrationItemRequest"];
|
|
19242
|
+
};
|
|
19243
|
+
};
|
|
19244
|
+
responses: {
|
|
19245
|
+
/** @description The plan. */
|
|
19246
|
+
200: {
|
|
19247
|
+
headers: {
|
|
19248
|
+
/** @description Requests allowed per window for this key. */
|
|
19249
|
+
"RateLimit-Limit"?: number;
|
|
19250
|
+
/** @description Requests left in this window. */
|
|
19251
|
+
"RateLimit-Remaining"?: number;
|
|
19252
|
+
/** @description Seconds until the window resets. */
|
|
19253
|
+
"RateLimit-Reset"?: number;
|
|
19254
|
+
/** @description This request's id. */
|
|
19255
|
+
"X-Request-Id"?: string;
|
|
19256
|
+
[name: string]: unknown;
|
|
19257
|
+
};
|
|
19258
|
+
content: {
|
|
19259
|
+
"application/json": components["schemas"]["Migration"];
|
|
19260
|
+
};
|
|
19261
|
+
};
|
|
19262
|
+
401: components["responses"]["Unauthenticated"];
|
|
19263
|
+
403: components["responses"]["Forbidden"];
|
|
19264
|
+
/** @description `MIGRATION_NOT_FOUND`: no migration with this id exists in your organization. */
|
|
19265
|
+
404: {
|
|
19266
|
+
headers: {
|
|
19267
|
+
[name: string]: unknown;
|
|
19268
|
+
};
|
|
19269
|
+
content: {
|
|
19270
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
19271
|
+
};
|
|
19272
|
+
};
|
|
19273
|
+
/** @description `CONFLICT`: the plan changed at the same time. Read it again and retry. */
|
|
19274
|
+
409: {
|
|
19275
|
+
headers: {
|
|
19276
|
+
[name: string]: unknown;
|
|
19277
|
+
};
|
|
19278
|
+
content: {
|
|
19279
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
19280
|
+
};
|
|
19281
|
+
};
|
|
19282
|
+
/** @description `VALIDATION_FAILED`: `key` names no item (`UNKNOWN_ITEM`), or the change doesn't apply to it (`INVALID_TARGET`). */
|
|
19283
|
+
422: {
|
|
19284
|
+
headers: {
|
|
19285
|
+
[name: string]: unknown;
|
|
19286
|
+
};
|
|
19287
|
+
content: {
|
|
19288
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
19289
|
+
};
|
|
19290
|
+
};
|
|
19291
|
+
429: components["responses"]["RateLimited"];
|
|
19292
|
+
/**
|
|
19293
|
+
* @description `MIGRATE_UNAVAILABLE`: Pantech Migrate is not available on this deployment yet. Try again later.
|
|
19294
|
+
* `SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
|
|
19295
|
+
*/
|
|
19296
|
+
503: {
|
|
19297
|
+
headers: {
|
|
19298
|
+
[name: string]: unknown;
|
|
19299
|
+
};
|
|
19300
|
+
content: {
|
|
19301
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
19302
|
+
};
|
|
19303
|
+
};
|
|
19304
|
+
};
|
|
19305
|
+
};
|
|
19306
|
+
exportMigrationTerraform: {
|
|
19307
|
+
parameters: {
|
|
19308
|
+
query?: never;
|
|
19309
|
+
header?: never;
|
|
19310
|
+
path: {
|
|
19311
|
+
migration_id: string;
|
|
19312
|
+
};
|
|
19313
|
+
cookie?: never;
|
|
19314
|
+
};
|
|
19315
|
+
requestBody?: never;
|
|
19316
|
+
responses: {
|
|
19317
|
+
/** @description The files. */
|
|
19318
|
+
200: {
|
|
19319
|
+
headers: {
|
|
19320
|
+
/** @description Requests allowed per window for this key. */
|
|
19321
|
+
"RateLimit-Limit"?: number;
|
|
19322
|
+
/** @description Requests left in this window. */
|
|
19323
|
+
"RateLimit-Remaining"?: number;
|
|
19324
|
+
/** @description Seconds until the window resets. */
|
|
19325
|
+
"RateLimit-Reset"?: number;
|
|
19326
|
+
/** @description This request's id. */
|
|
19327
|
+
"X-Request-Id"?: string;
|
|
19328
|
+
[name: string]: unknown;
|
|
19329
|
+
};
|
|
19330
|
+
content: {
|
|
19331
|
+
"application/json": components["schemas"]["MigrationTerraform"];
|
|
19332
|
+
};
|
|
19333
|
+
};
|
|
19334
|
+
401: components["responses"]["Unauthenticated"];
|
|
19335
|
+
403: components["responses"]["Forbidden"];
|
|
19336
|
+
/** @description `MIGRATION_NOT_FOUND`: no migration with this id exists in your organization. */
|
|
19337
|
+
404: {
|
|
19338
|
+
headers: {
|
|
19339
|
+
[name: string]: unknown;
|
|
19340
|
+
};
|
|
19341
|
+
content: {
|
|
19342
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
19343
|
+
};
|
|
19344
|
+
};
|
|
19345
|
+
429: components["responses"]["RateLimited"];
|
|
19346
|
+
/**
|
|
19347
|
+
* @description `MIGRATE_UNAVAILABLE`: Pantech Migrate is not available on this deployment yet. Try again later.
|
|
19348
|
+
* `SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
|
|
19349
|
+
*/
|
|
19350
|
+
503: {
|
|
19351
|
+
headers: {
|
|
19352
|
+
[name: string]: unknown;
|
|
19353
|
+
};
|
|
19354
|
+
content: {
|
|
19355
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
19356
|
+
};
|
|
19357
|
+
};
|
|
19358
|
+
};
|
|
19359
|
+
};
|
|
19360
|
+
}
|
|
19361
|
+
|
|
19362
|
+
/** Every schema in the public API spec, by name. */
|
|
19363
|
+
type Schemas = components["schemas"];
|
|
19364
|
+
/** The `operationId` of every endpoint in the spec. */
|
|
19365
|
+
type OperationId = keyof operations;
|
|
19366
|
+
type JSONContent<R> = R extends {
|
|
19367
|
+
content: {
|
|
19368
|
+
"application/json": infer T;
|
|
19369
|
+
};
|
|
19370
|
+
} ? T : never;
|
|
19371
|
+
type Responses<K extends OperationId> = operations[K]["responses"];
|
|
19372
|
+
/** The JSON body of an operation's success response (200, 201 or 202). */
|
|
19373
|
+
type ResponseOf<K extends OperationId> = {
|
|
19374
|
+
[C in keyof Responses<K>]: C extends 200 | 201 | 202 ? JSONContent<Responses<K>[C]> : never;
|
|
19375
|
+
}[keyof Responses<K>];
|
|
19376
|
+
/** The JSON request body an operation takes. */
|
|
19377
|
+
type BodyOf<K extends OperationId> = JSONContent<NonNullable<operations[K]["requestBody"]>>;
|
|
19378
|
+
/** The query parameters an operation takes. */
|
|
19379
|
+
type QueryOf<K extends OperationId> = NonNullable<operations[K]["parameters"]["query"]>;
|
|
19380
|
+
/**
|
|
19381
|
+
* The parameters of a list method. Every list returns `next_cursor`, so a
|
|
19382
|
+
* `cursor` is accepted even where the spec documents no other filter.
|
|
19383
|
+
*/
|
|
19384
|
+
type ListParams<K extends OperationId> = [QueryOf<K>] extends [never] ? {
|
|
19385
|
+
cursor?: string | null;
|
|
19386
|
+
} : QueryOf<K>;
|
|
19387
|
+
/** The parameters of a `listAll` method: a list's filters, without the cursor. */
|
|
19388
|
+
type ListAllParams<K extends OperationId> = Omit<ListParams<K>, "cursor">;
|
|
19389
|
+
/** One item of a list response's `data`. */
|
|
19390
|
+
type ItemOf<K extends OperationId> = ResponseOf<K> extends {
|
|
19391
|
+
data: Array<infer T>;
|
|
19392
|
+
} ? T : never;
|
|
19393
|
+
|
|
19394
|
+
/** Your credit, and whether it covers your next invoice. */
|
|
19395
|
+
declare class Billing extends APIResource {
|
|
19396
|
+
readonly credit: Credit;
|
|
19397
|
+
readonly receipts: Receipts;
|
|
19398
|
+
}
|
|
19399
|
+
declare class Credit extends APIResource {
|
|
19400
|
+
readonly purchases: CreditPurchases;
|
|
19401
|
+
/** Your credit balance and whether it covers the next invoice. */
|
|
19402
|
+
get(options?: RequestOptions): Promise<ResponseOf<"getCredit">>;
|
|
19403
|
+
}
|
|
19404
|
+
declare class CreditPurchases extends APIResource {
|
|
19405
|
+
/** Creates a payment link that adds credit: send its `checkout_url` to whoever pays. */
|
|
19406
|
+
create(body: BodyOf<"createCreditPurchase">, options?: RequestOptions): Promise<ResponseOf<"createCreditPurchase">>;
|
|
19407
|
+
get(purchaseId: string, options?: RequestOptions): Promise<ResponseOf<"getCreditPurchase">>;
|
|
19408
|
+
}
|
|
19409
|
+
declare class Receipts extends APIResource {
|
|
19410
|
+
list(params?: ListParams<"listReceipts">, options?: RequestOptions): Promise<ResponseOf<"listReceipts">>;
|
|
19411
|
+
listAll(params?: ListAllParams<"listReceipts">, options?: RequestOptions): AsyncGenerator<ItemOf<"listReceipts">>;
|
|
19412
|
+
get(receiptId: string, options?: RequestOptions): Promise<ResponseOf<"getReceipt">>;
|
|
19413
|
+
/** The receipt as a PDF document. */
|
|
19414
|
+
getPdf(receiptId: string, options?: RequestOptions): Promise<ArrayBuffer>;
|
|
19415
|
+
}
|
|
19416
|
+
|
|
19417
|
+
declare class Regions extends APIResource {
|
|
19418
|
+
list(params?: ListParams<"listRegions">, options?: RequestOptions): Promise<ResponseOf<"listRegions">>;
|
|
19419
|
+
listAll(params?: ListAllParams<"listRegions">, options?: RequestOptions): AsyncGenerator<ItemOf<"listRegions">>;
|
|
19420
|
+
}
|
|
19421
|
+
declare class Plans extends APIResource {
|
|
19422
|
+
list(params?: ListParams<"listPlans">, options?: RequestOptions): Promise<ResponseOf<"listPlans">>;
|
|
19423
|
+
listAll(params?: ListAllParams<"listPlans">, options?: RequestOptions): AsyncGenerator<ItemOf<"listPlans">>;
|
|
19424
|
+
}
|
|
19425
|
+
declare class Images extends APIResource {
|
|
19426
|
+
list(params?: ListParams<"listImages">, options?: RequestOptions): Promise<ResponseOf<"listImages">>;
|
|
19427
|
+
listAll(params?: ListAllParams<"listImages">, options?: RequestOptions): AsyncGenerator<ItemOf<"listImages">>;
|
|
19428
|
+
}
|
|
19429
|
+
declare class DiskOfferings extends APIResource {
|
|
19430
|
+
list(params?: ListParams<"listDiskOfferings">, options?: RequestOptions): Promise<ResponseOf<"listDiskOfferings">>;
|
|
19431
|
+
listAll(params?: ListAllParams<"listDiskOfferings">, options?: RequestOptions): AsyncGenerator<ItemOf<"listDiskOfferings">>;
|
|
19432
|
+
/** What a volume of this offering costs. */
|
|
19433
|
+
quote(slug: string, params?: QueryOf<"quoteDiskOffering">, options?: RequestOptions): Promise<ResponseOf<"quoteDiskOffering">>;
|
|
19434
|
+
}
|
|
19435
|
+
declare class DatabaseEngines extends APIResource {
|
|
19436
|
+
list(params?: ListParams<"listDatabaseEngines">, options?: RequestOptions): Promise<ResponseOf<"listDatabaseEngines">>;
|
|
19437
|
+
listAll(params?: ListAllParams<"listDatabaseEngines">, options?: RequestOptions): AsyncGenerator<ItemOf<"listDatabaseEngines">>;
|
|
19438
|
+
}
|
|
19439
|
+
declare class KubernetesVersions extends APIResource {
|
|
19440
|
+
/** The Kubernetes versions a new cluster can run, and the zones that offer high availability. */
|
|
19441
|
+
list(params?: QueryOf<"listKubernetesVersions">, options?: RequestOptions): Promise<ResponseOf<"listKubernetesVersions">>;
|
|
19442
|
+
}
|
|
19443
|
+
declare class Pricing extends APIResource {
|
|
19444
|
+
/** Prices a set of instances, volumes and other resources. Changes nothing. */
|
|
19445
|
+
estimate(body: BodyOf<"estimatePricing">, options?: RequestOptions): Promise<ResponseOf<"estimatePricing">>;
|
|
19446
|
+
}
|
|
17864
19447
|
|
|
17865
19448
|
interface WaitOptions<T = unknown> {
|
|
17866
19449
|
/** Give up after this many milliseconds. Default 20 minutes. */
|
|
@@ -18066,6 +19649,7 @@ type LoadBalancer = components["schemas"]["LoadBalancer"];
|
|
|
18066
19649
|
type LoadBalancerList = components["schemas"]["LoadBalancerList"];
|
|
18067
19650
|
type KubernetesVersion = components["schemas"]["KubernetesVersion"];
|
|
18068
19651
|
type KubernetesVersionList = components["schemas"]["KubernetesVersionList"];
|
|
19652
|
+
type KubernetesFixedNodeSize = components["schemas"]["KubernetesFixedNodeSize"];
|
|
18069
19653
|
type CreateKubernetesClusterRequest = components["schemas"]["CreateKubernetesClusterRequest"];
|
|
18070
19654
|
type KubernetesAutoscaling = components["schemas"]["KubernetesAutoscaling"];
|
|
18071
19655
|
type UpdateKubernetesClusterRequest = components["schemas"]["UpdateKubernetesClusterRequest"];
|
|
@@ -18181,6 +19765,32 @@ type WebhookDeliveryList = components["schemas"]["WebhookDeliveryList"];
|
|
|
18181
19765
|
type WebhookEvent = components["schemas"]["WebhookEvent"];
|
|
18182
19766
|
type WebhookEventType = components["schemas"]["WebhookEventType"];
|
|
18183
19767
|
type WebhookEventTypeList = components["schemas"]["WebhookEventTypeList"];
|
|
19768
|
+
type CloudFailure = components["schemas"]["CloudFailure"];
|
|
19769
|
+
type CloudConnectionSetup = components["schemas"]["CloudConnectionSetup"];
|
|
19770
|
+
type CloudConnection = components["schemas"]["CloudConnection"];
|
|
19771
|
+
type CloudConnectionList = components["schemas"]["CloudConnectionList"];
|
|
19772
|
+
type CreateCloudConnectionRequest = components["schemas"]["CreateCloudConnectionRequest"];
|
|
19773
|
+
type UpdateCloudConnectionRequest = components["schemas"]["UpdateCloudConnectionRequest"];
|
|
19774
|
+
type CloudScanCounts = components["schemas"]["CloudScanCounts"];
|
|
19775
|
+
type CloudCostMonth = components["schemas"]["CloudCostMonth"];
|
|
19776
|
+
type CloudCost = components["schemas"]["CloudCost"];
|
|
19777
|
+
type CloudScan = components["schemas"]["CloudScan"];
|
|
19778
|
+
type CloudScanList = components["schemas"]["CloudScanList"];
|
|
19779
|
+
type MigrationListener = components["schemas"]["MigrationListener"];
|
|
19780
|
+
type CloudInventory = components["schemas"]["CloudInventory"];
|
|
19781
|
+
type MigrationFlag = components["schemas"]["MigrationFlag"];
|
|
19782
|
+
type MigrationRule = components["schemas"]["MigrationRule"];
|
|
19783
|
+
type MigrationItemTarget = components["schemas"]["MigrationItemTarget"];
|
|
19784
|
+
type MigrationItemSource = components["schemas"]["MigrationItemSource"];
|
|
19785
|
+
type MigrationItem = components["schemas"]["MigrationItem"];
|
|
19786
|
+
type MigrationEstimate = components["schemas"]["MigrationEstimate"];
|
|
19787
|
+
type MigrationSummary = components["schemas"]["MigrationSummary"];
|
|
19788
|
+
type Migration = components["schemas"]["Migration"];
|
|
19789
|
+
type MigrationList = components["schemas"]["MigrationList"];
|
|
19790
|
+
type CreateMigrationRequest = components["schemas"]["CreateMigrationRequest"];
|
|
19791
|
+
type RenameMigrationRequest = components["schemas"]["RenameMigrationRequest"];
|
|
19792
|
+
type UpdateMigrationItemRequest = components["schemas"]["UpdateMigrationItemRequest"];
|
|
19793
|
+
type MigrationTerraform = components["schemas"]["MigrationTerraform"];
|
|
18184
19794
|
|
|
18185
19795
|
type SpecMe = components["schemas"]["Me"];
|
|
18186
19796
|
/** The kind of API key: a standard key, or one handed to an AI app when it was connected. */
|
|
@@ -18208,6 +19818,72 @@ declare class MeResource extends APIResource {
|
|
|
18208
19818
|
revoke(options?: RequestOptions): Promise<void>;
|
|
18209
19819
|
}
|
|
18210
19820
|
|
|
19821
|
+
/**
|
|
19822
|
+
* Move from another cloud: connect an AWS account through a read-only role
|
|
19823
|
+
* (no access keys are shared), scan what runs there, and plan the move to
|
|
19824
|
+
* Pantech with a price comparison and a Terraform export.
|
|
19825
|
+
*/
|
|
19826
|
+
declare class Migrate extends APIResource {
|
|
19827
|
+
/** Connections to AWS accounts through a read-only role only Pantech can assume. */
|
|
19828
|
+
readonly connections: CloudConnections;
|
|
19829
|
+
/** Reads of everything a connection's role can see. */
|
|
19830
|
+
readonly scans: CloudScans;
|
|
19831
|
+
/** Plans to move what a scan found to Pantech. Nothing is created until you apply the Terraform. */
|
|
19832
|
+
readonly migrations: Migrations;
|
|
19833
|
+
}
|
|
19834
|
+
declare class CloudConnections extends APIResource {
|
|
19835
|
+
list(params?: ListParams<"listCloudConnections">, options?: RequestOptions): Promise<ResponseOf<"listCloudConnections">>;
|
|
19836
|
+
listAll(params?: ListAllParams<"listCloudConnections">, options?: RequestOptions): AsyncGenerator<ItemOf<"listCloudConnections">>;
|
|
19837
|
+
/**
|
|
19838
|
+
* Starts a connection. Its `setup` holds the CloudFormation template (and,
|
|
19839
|
+
* when offered, a one-click `quick_create_url`) that creates the read-only
|
|
19840
|
+
* role in your AWS account; send the stack's `RoleArn` output with `update`.
|
|
19841
|
+
*/
|
|
19842
|
+
create(body: BodyOf<"createCloudConnection">, options?: RequestOptions): Promise<ResponseOf<"createCloudConnection">>;
|
|
19843
|
+
get(connectionId: string, options?: RequestOptions): Promise<ResponseOf<"getCloudConnection">>;
|
|
19844
|
+
/** Renames the connection, sets its `role_arn`, or retries a failed check (`retry: true`). */
|
|
19845
|
+
update(connectionId: string, body: BodyOf<"updateCloudConnection">, options?: RequestOptions): Promise<ResponseOf<"updateCloudConnection">>;
|
|
19846
|
+
/** Removes the connection and its scans; plans made from it stay. Delete the stack in AWS to revoke the role there. */
|
|
19847
|
+
delete(connectionId: string, options?: RequestOptions): Promise<void>;
|
|
19848
|
+
/**
|
|
19849
|
+
* Polls the connection until it is `connected` (resolves with it) or its
|
|
19850
|
+
* check fails (rejects with CloudFailedError). Set the role ARN with
|
|
19851
|
+
* `update` first. Default timeout 10 minutes, polling every 5 seconds.
|
|
19852
|
+
*/
|
|
19853
|
+
wait(connectionId: string, options?: WaitOptions<CloudConnection>): Promise<CloudConnection>;
|
|
19854
|
+
}
|
|
19855
|
+
declare class CloudScans extends APIResource {
|
|
19856
|
+
/** A connection's scans, newest first, without their inventories. */
|
|
19857
|
+
list(connectionId: string, params?: ListParams<"listCloudScans">, options?: RequestOptions): Promise<ResponseOf<"listCloudScans">>;
|
|
19858
|
+
listAll(connectionId: string, params?: ListAllParams<"listCloudScans">, options?: RequestOptions): AsyncGenerator<ItemOf<"listCloudScans">>;
|
|
19859
|
+
/** Queues a scan of a connected account. Follow it with `wait`. */
|
|
19860
|
+
start(connectionId: string, options?: RequestOptions): Promise<ResponseOf<"startCloudScan">>;
|
|
19861
|
+
/** A scan's status and counts. Pass `{ include: "inventory" }` for everything it found. */
|
|
19862
|
+
get(scanId: string, params?: QueryOf<"getCloudScan">, options?: RequestOptions): Promise<ResponseOf<"getCloudScan">>;
|
|
19863
|
+
/**
|
|
19864
|
+
* Polls the scan until it `succeeded` (resolves with it, without its
|
|
19865
|
+
* inventory) or failed (rejects with CloudFailedError). Default timeout 30
|
|
19866
|
+
* minutes, polling every 10 seconds.
|
|
19867
|
+
*/
|
|
19868
|
+
wait(scanId: string, options?: WaitOptions<CloudScan>): Promise<CloudScan>;
|
|
19869
|
+
}
|
|
19870
|
+
declare class Migrations extends APIResource {
|
|
19871
|
+
/** Your migration plans, newest first, without their items or estimate. */
|
|
19872
|
+
list(params?: ListParams<"listMigrations">, options?: RequestOptions): Promise<ResponseOf<"listMigrations">>;
|
|
19873
|
+
listAll(params?: ListAllParams<"listMigrations">, options?: RequestOptions): AsyncGenerator<ItemOf<"listMigrations">>;
|
|
19874
|
+
/** Builds a plan, with a price comparison, from a scan that succeeded. Nothing is created on Pantech. */
|
|
19875
|
+
create(body: BodyOf<"createMigration">, options?: RequestOptions): Promise<ResponseOf<"createMigration">>;
|
|
19876
|
+
/** A plan with every item, and a price comparison computed now. */
|
|
19877
|
+
get(migrationId: string, options?: RequestOptions): Promise<ResponseOf<"getMigration">>;
|
|
19878
|
+
rename(migrationId: string, body: BodyOf<"renameMigration">, options?: RequestOptions): Promise<ResponseOf<"renameMigration">>;
|
|
19879
|
+
/** Deletes the plan. Nothing on Pantech or in the other cloud is touched. */
|
|
19880
|
+
delete(migrationId: string, options?: RequestOptions): Promise<void>;
|
|
19881
|
+
/** Changes one item, named by its `key`: exclude it, or change its plan, size, range, role or email. */
|
|
19882
|
+
updateItem(migrationId: string, body: BodyOf<"updateMigrationItem">, options?: RequestOptions): Promise<ResponseOf<"updateMigrationItem">>;
|
|
19883
|
+
/** The plan's planned items as Terraform: `main.tf` and `variables.tf`. */
|
|
19884
|
+
exportTerraform(migrationId: string, options?: RequestOptions): Promise<ResponseOf<"exportMigrationTerraform">>;
|
|
19885
|
+
}
|
|
19886
|
+
|
|
18211
19887
|
/** VPC networks. */
|
|
18212
19888
|
declare class Networks extends APIResource {
|
|
18213
19889
|
/** A network's subnets: `client.networks.subnets.list(networkId)`. */
|
|
@@ -18344,6 +20020,15 @@ declare class OrderFailedError extends PantechError {
|
|
|
18344
20020
|
constructor(message: string, order: unknown, init?: PantechErrorInit);
|
|
18345
20021
|
}
|
|
18346
20022
|
/** Waiting for an operation or order took longer than `timeoutMs`. */
|
|
20023
|
+
/** A cloud connection's check or a scan ended `failed`. `code` is stable; `detail` says what to do. */
|
|
20024
|
+
declare class CloudFailedError extends PantechError {
|
|
20025
|
+
name: string;
|
|
20026
|
+
/** `connection` or `scan`. */
|
|
20027
|
+
readonly kind: "connection" | "scan";
|
|
20028
|
+
/** The failed connection or scan, as the API returned it. */
|
|
20029
|
+
readonly resource: unknown;
|
|
20030
|
+
constructor(message: string, kind: "connection" | "scan", resource: unknown, init?: PantechErrorInit);
|
|
20031
|
+
}
|
|
18347
20032
|
declare class WaitTimeoutError extends PantechError {
|
|
18348
20033
|
name: string;
|
|
18349
20034
|
}
|
|
@@ -18592,6 +20277,8 @@ declare class Pantech {
|
|
|
18592
20277
|
readonly databaseOrders: DatabaseOrders;
|
|
18593
20278
|
readonly sshKeys: SshKeys;
|
|
18594
20279
|
readonly webhooks: Webhooks;
|
|
20280
|
+
/** Move from another cloud: connections, scans and migration plans. */
|
|
20281
|
+
readonly migrate: Migrate;
|
|
18595
20282
|
readonly operations: Operations;
|
|
18596
20283
|
constructor(options?: ClientOptions);
|
|
18597
20284
|
/**
|
|
@@ -18614,7 +20301,7 @@ interface Page<T> {
|
|
|
18614
20301
|
declare function paginate<T>(fetchPage: (cursor: string | undefined) => Promise<Page<T>>, startCursor?: string | null): AsyncGenerator<T, void, undefined>;
|
|
18615
20302
|
|
|
18616
20303
|
/** The SDK's version, sent in `User-Agent: pantech-js/<version>`. Kept in step with package.json. */
|
|
18617
|
-
declare const VERSION = "0.
|
|
20304
|
+
declare const VERSION = "0.3.0";
|
|
18618
20305
|
|
|
18619
20306
|
/** The header a delivery's signature arrives in. */
|
|
18620
20307
|
declare const WEBHOOK_SIGNATURE_HEADER = "Pantech-Signature";
|
|
@@ -18649,4 +20336,4 @@ declare function signWebhook(options: {
|
|
|
18649
20336
|
timestamp?: number;
|
|
18650
20337
|
}): Promise<string>;
|
|
18651
20338
|
|
|
18652
|
-
export { APIConnectionError, type APIKeyKind, type APIKeyScope, type APIRequest, APITimeoutError, type Accepted, type AttachPublicIPRequest, type AttachVolumeRequest, AuthenticationError, BadRequestError, type BodyOf, type ChangeDatabasePasswordRequest, type ChangeSSHKeyRequest, type ChangeSecurityGroupRequest, type ClientOptions, type ConfigureKubernetesEndpointAccessRequest, ConflictError, type CreateCreditPurchaseRequest, type CreateDatabaseRequest, type CreateFirewallRuleRequest, type CreateInstanceRequest, type CreateKubernetesClusterRequest, type CreateKubernetesNodePoolRequest, type CreateLoadBalancerRequest, type CreateNetworkRequest, type CreatePortForwardingRuleRequest, type CreatePublicIPRequest, type CreateSSHKeyRequest, type CreateSecurityGroupRequest, type CreateSnapshotRequest, type CreateSubnetRequest, type CreateVolumeRequest, type CreateWebhookRequest, type CreditOutlook, type CreditPurchase, DEFAULT_BASE_URL, DEFAULT_WEBHOOK_TOLERANCE_SECONDS, type Database, type DatabaseAccessRule, type DatabaseAccessRuleRequest, type DatabaseEffectiveAccessRule, type DatabaseEngine, type DatabaseEngineList, type DatabaseIgnoredSecurityGroupRule, type DatabaseList, type DatabaseOrder, type DatabaseOrderAccepted, type DatabaseOrderList, type DatabasePasswordAccepted, type DiskOffering, type DiskOfferingList, type Failure, type FieldError, type FirewallRule, type FirewallRuleFields, type FirewallRuleList, type GeneratedSSHKey, type HTTPMethod, type Image, type ImageList, type Instance, type InstanceList, type InstanceOrder, type InstanceOrderList, InternalServerError, type ItemOf, type Kubeconfig, type KubernetesAutoscaling, type KubernetesCluster, type KubernetesClusterAddon, type KubernetesClusterAddonList, type KubernetesClusterList, type KubernetesNode, type KubernetesNodePool, type KubernetesNodePoolList, type KubernetesNodePoolTaint, type KubernetesVersion, type KubernetesVersionList, type ListAllParams, type ListParams, type LoadBalancer, type LoadBalancerList, type LoadBalancerMember, type Me, type MetricsSeries, type MonthlyQuote, type Network, type NetworkList, NotFoundError, type Operation, OperationFailedError, type OperationId, type OperationRef, type OptionalQuote, type OrderAccepted, OrderFailedError, type OrderRef, type OrderWaitOptions, type Page, Pantech, PantechError, type PantechErrorInit, PaymentRequiredError, PermissionDeniedError, type Plan, type PlanList, type PortForwardingRule, type PortForwardingRuleList, type PricingEstimate, type PricingEstimateRequest, type Problem, type PublicIP, type PublicIPList, type PutSnapshotScheduleRequest, type QueryOf, RateLimitError, type RebuildRequest, type Receipt, type ReceiptList, type Region, type RegionList, type RenameRequest, type ReplaceDatabaseAccessRulesRequest, type ReplaceSecurityGroupRulesRequest, type RequestOptions, type ResizeDatabaseStorageRequest, type ResizeKubernetesClusterPlanRequest, type ResizeRequest, type ResizeVolumeRequest, type ResponseOf, type RestoreRequest, type RestoreSnapshotRequest, type SSHAccessGrant, type SSHKey, type SSHKeyList, type ScaleKubernetesNodePoolRequest, type Schemas, type SecurityGroup, type SecurityGroupList, type SecurityGroupRule, type SetDatabaseSecurityGroupsRequest, type Snapshot, type SnapshotList, type SnapshotSchedule, type Subnet, type SubnetList, type ToggleKubernetesAddonRequest, type UpdateKubernetesClusterRequest, type UpdateLoadBalancerRequest, type UpdateWebhookRequest, type UpgradeKubernetesClusterRequest, type UpgradeKubernetesNetworkRequest, type UsageByResource, type UsageSummary, VERSION, ValidationError, type VerifyWebhookOptions, type Volume, type VolumeList, WEBHOOK_SIGNATURE_HEADER, type WaitOptions, WaitTimeoutError, type Webhook, type WebhookBody, type WebhookDelivery, type WebhookDeliveryDetail, type WebhookDeliveryList, type WebhookEvent, type WebhookEventType, type WebhookEventTypeList, type WebhookList, WebhookVerificationError, type WebhookWithSecret, type components, isPantechError, type operations, paginate, type paths, signWebhook, verifyWebhook };
|
|
20339
|
+
export { APIConnectionError, type APIKeyKind, type APIKeyScope, type APIRequest, APITimeoutError, type Accepted, type AttachPublicIPRequest, type AttachVolumeRequest, AuthenticationError, BadRequestError, type BodyOf, type ChangeDatabasePasswordRequest, type ChangeSSHKeyRequest, type ChangeSecurityGroupRequest, type ClientOptions, type CloudConnection, type CloudConnectionList, type CloudConnectionSetup, type CloudCost, type CloudCostMonth, CloudFailedError, type CloudFailure, type CloudInventory, type CloudScan, type CloudScanCounts, type CloudScanList, type ConfigureKubernetesEndpointAccessRequest, ConflictError, type CreateCloudConnectionRequest, type CreateCreditPurchaseRequest, type CreateDatabaseRequest, type CreateFirewallRuleRequest, type CreateInstanceRequest, type CreateKubernetesClusterRequest, type CreateKubernetesNodePoolRequest, type CreateLoadBalancerRequest, type CreateMigrationRequest, type CreateNetworkRequest, type CreatePortForwardingRuleRequest, type CreatePublicIPRequest, type CreateSSHKeyRequest, type CreateSecurityGroupRequest, type CreateSnapshotRequest, type CreateSubnetRequest, type CreateVolumeRequest, type CreateWebhookRequest, type CreditOutlook, type CreditPurchase, DEFAULT_BASE_URL, DEFAULT_WEBHOOK_TOLERANCE_SECONDS, type Database, type DatabaseAccessRule, type DatabaseAccessRuleRequest, type DatabaseEffectiveAccessRule, type DatabaseEngine, type DatabaseEngineList, type DatabaseIgnoredSecurityGroupRule, type DatabaseList, type DatabaseOrder, type DatabaseOrderAccepted, type DatabaseOrderList, type DatabasePasswordAccepted, type DiskOffering, type DiskOfferingList, type Failure, type FieldError, type FirewallRule, type FirewallRuleFields, type FirewallRuleList, type GeneratedSSHKey, type HTTPMethod, type Image, type ImageList, type Instance, type InstanceList, type InstanceOrder, type InstanceOrderList, InternalServerError, type ItemOf, type Kubeconfig, type KubernetesAutoscaling, type KubernetesCluster, type KubernetesClusterAddon, type KubernetesClusterAddonList, type KubernetesClusterList, type KubernetesFixedNodeSize, type KubernetesNode, type KubernetesNodePool, type KubernetesNodePoolList, type KubernetesNodePoolTaint, type KubernetesVersion, type KubernetesVersionList, type ListAllParams, type ListParams, type LoadBalancer, type LoadBalancerList, type LoadBalancerMember, type Me, type MetricsSeries, type Migration, type MigrationEstimate, type MigrationFlag, type MigrationItem, type MigrationItemSource, type MigrationItemTarget, type MigrationList, type MigrationListener, type MigrationRule, type MigrationSummary, type MigrationTerraform, type MonthlyQuote, type Network, type NetworkList, NotFoundError, type Operation, OperationFailedError, type OperationId, type OperationRef, type OptionalQuote, type OrderAccepted, OrderFailedError, type OrderRef, type OrderWaitOptions, type Page, Pantech, PantechError, type PantechErrorInit, PaymentRequiredError, PermissionDeniedError, type Plan, type PlanList, type PortForwardingRule, type PortForwardingRuleList, type PricingEstimate, type PricingEstimateRequest, type Problem, type PublicIP, type PublicIPList, type PutSnapshotScheduleRequest, type QueryOf, RateLimitError, type RebuildRequest, type Receipt, type ReceiptList, type Region, type RegionList, type RenameMigrationRequest, type RenameRequest, type ReplaceDatabaseAccessRulesRequest, type ReplaceSecurityGroupRulesRequest, type RequestOptions, type ResizeDatabaseStorageRequest, type ResizeKubernetesClusterPlanRequest, type ResizeRequest, type ResizeVolumeRequest, type ResponseOf, type RestoreRequest, type RestoreSnapshotRequest, type SSHAccessGrant, type SSHKey, type SSHKeyList, type ScaleKubernetesNodePoolRequest, type Schemas, type SecurityGroup, type SecurityGroupList, type SecurityGroupRule, type SetDatabaseSecurityGroupsRequest, type Snapshot, type SnapshotList, type SnapshotSchedule, type Subnet, type SubnetList, type ToggleKubernetesAddonRequest, type UpdateCloudConnectionRequest, type UpdateKubernetesClusterRequest, type UpdateLoadBalancerRequest, type UpdateMigrationItemRequest, type UpdateWebhookRequest, type UpgradeKubernetesClusterRequest, type UpgradeKubernetesNetworkRequest, type UsageByResource, type UsageSummary, VERSION, ValidationError, type VerifyWebhookOptions, type Volume, type VolumeList, WEBHOOK_SIGNATURE_HEADER, type WaitOptions, WaitTimeoutError, type Webhook, type WebhookBody, type WebhookDelivery, type WebhookDeliveryDetail, type WebhookDeliveryList, type WebhookEvent, type WebhookEventType, type WebhookEventTypeList, type WebhookList, WebhookVerificationError, type WebhookWithSecret, type components, isPantechError, type operations, paginate, type paths, signWebhook, verifyWebhook };
|