OKS API v1.0
The OKS API enables you to interact with OUTSCALE Kubernetes as a Service (OKS), a managed Kubernetes service on the OUTSCALE Cloud.
In OKS, each cluster is linked to a project. In a project, you can have several clusters. Templates are also available for different resources.
For more information about the service, see About OKS.
An OpenAPI description of this API is also available for download here: oks.yaml.
Endpoints
Base URL |
---|
https://api.eu-west-2.oks.outscale.com/api/v2 |
https://api.cloudgouv-eu-west-1.oks.outscale.com/api/v2 |
Authentication Schemes
There are 3 possible ways to authenticate your requests with the OKS API:
Basic Authentication
Element | Description |
---|---|
Authorization header |
A header in the form Basic XXXX , where XXXX is the Base64 encoding of your root account's login and password joined by a colon (: ). Note that with Curl, you can use the --user LOGIN:PASSWORD option as a shortcut for this and Curl will format the header for you. |
X-OTP-Code header |
(optional) If multi-factor authentication (MFA) is set up on your account, a header with your OTP token. |
Access Key/Secret Key
Element | Description |
---|---|
AccessKey header |
A header with an access key of your root acount. You cannot use EIM users' access keys with OKS. |
SecretKey header |
A header with the corresponding secret key of the access key. |
X-OTP-Code header |
(optional) If multi-factor authentication (MFA) is set up on your account, a header with your OTP token. |
Access Token/Refresh Token
Element | Description |
---|---|
AccessToken header |
In the case of JWT authentication, a header with an access token. |
RefreshToken header |
In the case of JWT authentication, a header with the corresponding refresh token. |
Clusters
CreateCluster
POST /clusters
Creates a cluster with the provided configuration.
Request Parameters
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
curl -X POST 'https://api.'$OSC_REGION'.oks.outscale.com/api/v2/clusters' \
--header 'AccessKey: '$OSC_ACCESS_KEY \
--header 'SecretKey: '$OSC_SECRET_KEY \
--header 'Content-Type: application/json' \
--data '{
"name": "awesome-cluster",
"project_id": "string",
"description": "string",
"cp_subregions": ["2a"],
"version": "1.30",
"admin_lbu": false,
"admission_flags": {
"disable_admission_plugins": [],
"enable_admission_plugins": []
},
"cidr_pods": "10.91.0.0/16",
"cidr_service": "10.92.0.0/16",
"cluster_dns": "10.92.0.10",
"tags": {
"key": "value"
},
"auto_maintenances": {
"minor_upgrade_maintenance": {
"enabled": true,
"duration_hours": 0,
"start_hour": 12,
"week_day": "Mon",
"tz": "UTC"
},
"patch_upgrade_maintenance": {
"enabled": true,
"duration_hours": 0,
"start_hour": 12,
"week_day": "Mon",
"tz": "UTC"
}
},
"control_planes": "cp.3.masters.small",
"admin_whitelist": ["string"],
"quirks": ["string"],
"disable_api_termination": false
}'
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
POST /api/v2/clusters HTTP/1.1
Host: api.eu-west-2.oks.outscale.com
Content-Type: application/json
AccessKey: XXXX
SecretKey: YYYY
{
"name": "awesome-cluster",
"project_id": "string",
"description": "string",
"cp_subregions": ["2a"],
"version": "1.30",
"admin_lbu": false,
"admission_flags": {
"disable_admission_plugins": [],
"enable_admission_plugins": []
},
"cidr_pods": "10.91.0.0/16",
"cidr_service": "10.92.0.0/16",
"cluster_dns": "10.92.0.10",
"tags": {
"key": "value"
},
"auto_maintenances": {
"minor_upgrade_maintenance": {
"enabled": true,
"duration_hours": 0,
"start_hour": 12,
"week_day": "Mon",
"tz": "UTC"
},
"patch_upgrade_maintenance": {
"enabled": true,
"duration_hours": 0,
"start_hour": 12,
"week_day": "Mon",
"tz": "UTC"
}
},
"control_planes": "cp.3.masters.small",
"admin_whitelist": ["string"],
"quirks": ["string"],
"disable_api_termination": false
}
Body (ClusterInput-Input object):
Body Parameter | Type | Description |
---|---|---|
name (required) | string | A unique name for the cluster within the project. Length: 1 to 40 characters. Pattern: ^[a-z][a-z0-9-]*[a-z0-9]$ .Example: awesome-cluster . |
project_id (required) | string | The ID of the project in which you want to create a cluster. |
description | string, or null | A description of the cluster. |
cp_subregions | [string] | The list of Subregions where control plane components are deployed. Default: ["2a"] . |
version | string | The Kubernetes version to be deployed for the cluster. For more information, see GetKubernetesVersions. Default: 1.30 . |
admin_lbu | boolean | If true, load balancer administration is enabled for cluster management. If false, it is disabled. Default: false. |
admission_flags | AdmissionFlagsInput object | |
disable_admission_plugins | [string] | The list of Kubernetes admission plugins to disable. Default: [] . |
enable_admission_plugins | [string] | The list of Kubernetes admission plugins to enable. Default: [] . |
cidr_pods | string | The CIDR block for Kubernetes pods' network. Example: 10.91.0.0/16 . |
cidr_service | string | The CIDR block for the Kubernetes services' network. Example: 10.92.0.0/16 . |
cluster_dns | string | The IP address for the cluster's DNS service. Example: 10.92.0.10 . |
tags | object | The key/value combinations of the tags associated with the cluster's metadata, in the following format: "tags":{"TAGKEY1":"TAGVALUE1","TAGKEY2":"TAGVALUE2"}. Example: {"key": "value"} . |
additional properties | string | Additional information about tags. |
auto_maintenances (required) | AutoMaintenances object | |
minor_upgrade_maintenance (required) | MaintenanceWindow object | |
enabled | boolean | If true, a maintenance window is enabled. Default: true. |
duration_hours | integer | The duration of the maintenance window, in hours. Maximum value: 23 . Default: 0 . |
start_hour | integer | The starting time of the maintenance window, in hours. Maximum value: 23 . Default: 12 . |
week_day | string | The weekday on which the maintenance window begins. Possible values: Mon | Tue | Wed | Thu | Fri | Sat | Sun | string . Default: Tue . |
tz | string | The timezone for the maintenance window. Default: UTC . |
patch_upgrade_maintenance (required) | MaintenanceWindow object | |
enabled | boolean | If true, a maintenance window is enabled. Default: true. |
duration_hours | integer | The duration of the maintenance window, in hours. Maximum value: 23 . Default: 0 . |
start_hour | integer | The starting time of the maintenance window, in hours. Maximum value: 23 . Default: 12 . |
week_day | string | The weekday on which the maintenance window begins. Possible values: Mon | Tue | Wed | Thu | Fri | Sat | Sun | string . Default: Tue . |
tz | string | The timezone for the maintenance window. Default: UTC . |
control_planes | string | The size of control plane deployment for the cluster. For more information, see About OKS > Control Planes. Default: cp.3.masters.small . |
admin_whitelist (required) | [string] | The list of CIDR blocks or IP addresses allowed to access the cluster via the Kubernetes API. |
quirks | [string], or null | The list of special configurations or behaviors for the cluster. |
disable_api_termination | boolean | If true, cluster deletion through the API is disabled. If false, it is enabled. Default: false. |
Response Elements
{
"ResponseContext": {
"RequestId": "string"
},
"Cluster": {
"project_id": "string",
"id": "string",
"name": "string",
"description": "string",
"cp_subregions": [
"string"
],
"version": "string",
"cni": "string",
"admin_lbu": true,
"admission_flags": {
"disable_admission_plugins": [],
"enable_admission_plugins": [],
"applied_admission_plugins": [
"CertificateApproval",
"CertificateSigning",
"CertificateSubjectRestriction",
"ClusterTrustBundleAttest",
"DefaultIngressClass",
"DefaultStorageClass",
"DefaultTolerationSeconds",
"LimitRanger",
"MutatingAdmissionWebhook",
"NamespaceLifecycle",
"PersistentVolumeClaimResize",
"PodSecurity",
"Priority",
"ResourceQuota",
"RuntimeClass",
"ServiceAccount",
"StorageObjectInUseProtection",
"TaintNodesByCondition",
"ValidatingAdmissionPolicy",
"ValidatingAdmissionWebhook"
]
},
"cidr_pods": "string",
"cidr_service": "string",
"cluster_dns": "string",
"tags": {
"key": "value"
},
"auto_maintenances": {
"minor_upgrade_maintenance": {
"enabled": true,
"duration_hours": 0,
"start_hour": 12,
"week_day": "Mon",
"tz": "UTC"
},
"patch_upgrade_maintenance": {
"enabled": true,
"duration_hours": 0,
"start_hour": 12,
"week_day": "Mon",
"tz": "UTC"
}
},
"control_planes": "string",
"admin_whitelist": [
"string"
],
"statuses": {
"created_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"status": "string",
"available_upgrade": ""
},
"disable_api_termination": false
}
}
200 response (ClusterResponse object):
Response Element | Type | Description |
---|---|---|
ResponseContext | clusters__cluster_schema__ResponseContext object | |
RequestId | string | The ID of the API request. |
Cluster | Cluster object | |
project_id | string | The ID of the project this cluster belongs to. |
id | string | The Universally Unique Identifier (UUID) of the cluster. |
name | string | A unique name for the cluster within the project. |
description | string, or null | An optional description of the cluster. |
cp_subregions | [string] | The Subregions on which the control plane components are deployed. |
version | string | The Kubernetes version deployed for the cluster. For more information, see GetKubernetesVersions. |
cni | string | The Container Network Interface (CNI) used in the cluster. |
admin_lbu | boolean | If true, load balancer administration is enabled for cluster management. If false, it is disabled. |
admission_flags | AdmissionFlags object | |
disable_admission_plugins | [string] | The list of Kubernetes admission plugins that are disabled. Default: [] . |
enable_admission_plugins | [string] | The list of Kubernetes admission plugins that are enabled. Default: [] . |
applied_admission_plugins | [string] | The list of admission plugins that are currently applied to the cluster. Default: ["CertificateApproval", "CertificateSigning", "CertificateSubjectRestriction", "ClusterTrustBundleAttest", "DefaultIngressClass", "DefaultStorageClass", "DefaultTolerationSeconds", "LimitRanger", "MutatingAdmissionWebhook", "NamespaceLifecycle", "PersistentVolumeClaimResize", "PodSecurity", "Priority", "ResourceQuota", "RuntimeClass", "ServiceAccount", "StorageObjectInUseProtection", "TaintNodesByCondition", "ValidatingAdmissionPolicy", "ValidatingAdmissionWebhook"] . |
cidr_pods | string, or null | The CIDR block of the Kubernetes pods' network. |
cidr_service | string, or null | The CIDR block of the Kubernetes services' network. |
cluster_dns | string, or null | The IP address of the cluster's DNS service. |
tags | object | The key/value combinations of the tags associated with the cluster, in the following format: "tags":{"TAGKEY1":"TAGVALUE1","TAGKEY2":"TAGVALUE2"}. Example: {"key": "value"} . |
additional properties | string | Additional information about tags. |
auto_maintenances | AutoMaintenances object | |
minor_upgrade_maintenance | MaintenanceWindow object | |
enabled | boolean | If true, a maintenance window is enabled. Default: true. |
duration_hours | integer | The duration of the maintenance window, in hours. Maximum value: 23 . Default: 0 . |
start_hour | integer | The starting time of the maintenance window, in hours. Maximum value: 23 . Default: 12 . |
week_day | string | The weekday on which the maintenance window begins. Possible values: Mon | Tue | Wed | Thu | Fri | Sat | Sun | string . Default: Tue . |
tz | string | The timezone for the maintenance window. Default: UTC . |
patch_upgrade_maintenance | MaintenanceWindow object | |
enabled | boolean | If true, a maintenance window is enabled. Default: true. |
duration_hours | integer | The duration of the maintenance window, in hours. Maximum value: 23 . Default: 0 . |
start_hour | integer | The starting time of the maintenance window, in hours. Maximum value: 23 . Default: 12 . |
week_day | string | The weekday on which the maintenance window begins. Possible values: Mon | Tue | Wed | Thu | Fri | Sat | Sun | string . Default: Tue . |
tz | string | The timezone for the maintenance window. Default: UTC . |
control_planes | string | The control plane sizing of the cluster. |
admin_whitelist | [string] | The list of CIDR blocks or IP addresses allowed to access the cluster via the Kubernetes API. |
statuses | Statuses object | |
created_at | string (date-time) | The timestamp when the cluster was created. |
deleted_at | string (date-time), or null | The timestamp when the cluster was deleted (if applicable). |
updated_at | string (date-time), or null | The timestamp when the cluster was last updated. |
status | string, or null | The status of the cluster. |
available_upgrade | string | Any available version of Kubernetes for upgrade (if applicable). For more information, see GetKubernetesVersions. Default: . |
disable_api_termination | boolean | If true, cluster deletion through the API is disabled. If false, it is enabled. Default: false. |
Other responses:
- 422 response (HTTPValidationError object): The HTTP 422 response (Validation Error).
ListClustersByProjectID
GET /clusters
Lists one or more clusters associated with a project. The response can be filtered using the parameters.
Request Parameters
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
curl -X GET 'https://api.'$OSC_REGION'.oks.outscale.com/api/v2/clusters?project_id=string&name=string&status=string&version=string&deleted=true' \
--header 'AccessKey: '$OSC_ACCESS_KEY \
--header 'SecretKey: '$OSC_SECRET_KEY
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
GET /api/v2/clusters?project_id=string&name=string&status=string&version=string&deleted=true HTTP/1.1
Host: api.eu-west-2.oks.outscale.com
AccessKey: XXXX
SecretKey: YYYY
Query:
Query Parameter | Type | Description |
---|---|---|
project_id | string | The ID of the project. |
name | string | The name of the clusters. |
status | string | The status of the clusters. |
version | string | The version of the clusters. |
deleted | boolean | If true, returns deleted clusters. |
Response Elements
{
"ResponseContext": {
"RequestId": "string"
},
"Clusters": [
{
"project_id": "string",
"id": "string",
"name": "string",
"description": "string",
"cp_subregions": [
"string"
],
"version": "string",
"cni": "string",
"admin_lbu": true,
"admission_flags": {
"disable_admission_plugins": [],
"enable_admission_plugins": [],
"applied_admission_plugins": [
"CertificateApproval",
"CertificateSigning",
"CertificateSubjectRestriction",
"ClusterTrustBundleAttest",
"DefaultIngressClass",
"DefaultStorageClass",
"DefaultTolerationSeconds",
"LimitRanger",
"MutatingAdmissionWebhook",
"NamespaceLifecycle",
"PersistentVolumeClaimResize",
"PodSecurity",
"Priority",
"ResourceQuota",
"RuntimeClass",
"ServiceAccount",
"StorageObjectInUseProtection",
"TaintNodesByCondition",
"ValidatingAdmissionPolicy",
"ValidatingAdmissionWebhook"
]
},
"cidr_pods": "string",
"cidr_service": "string",
"cluster_dns": "string",
"tags": {
"key": "value"
},
"auto_maintenances": {
"minor_upgrade_maintenance": {
"enabled": true,
"duration_hours": 0,
"start_hour": 12,
"week_day": "Mon",
"tz": "UTC"
},
"patch_upgrade_maintenance": {
"enabled": true,
"duration_hours": 0,
"start_hour": 12,
"week_day": "Mon",
"tz": "UTC"
}
},
"control_planes": "string",
"admin_whitelist": [
"string"
],
"statuses": {
"created_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"status": "string",
"available_upgrade": ""
},
"disable_api_termination": false
}
]
}
200 response (ClusterResponseList object):
Response Element | Type | Description |
---|---|---|
ResponseContext | clusters__cluster_schema__ResponseContext object | |
RequestId | string | The ID of the API request. |
Clusters | [Cluster object] | |
project_id | string | The ID of the project this cluster belongs to. |
id | string | The Universally Unique Identifier (UUID) of the cluster. |
name | string | A unique name for the cluster within the project. |
description | string, or null | An optional description of the cluster. |
cp_subregions | [string] | The Subregions on which the control plane components are deployed. |
version | string | The Kubernetes version deployed for the cluster. For more information, see GetKubernetesVersions. |
cni | string | The Container Network Interface (CNI) used in the cluster. |
admin_lbu | boolean | If true, load balancer administration is enabled for cluster management. If false, it is disabled. |
admission_flags | AdmissionFlags object | |
disable_admission_plugins | [string] | The list of Kubernetes admission plugins that are disabled. Default: [] . |
enable_admission_plugins | [string] | The list of Kubernetes admission plugins that are enabled. Default: [] . |
applied_admission_plugins | [string] | The list of admission plugins that are currently applied to the cluster. Default: ["CertificateApproval", "CertificateSigning", "CertificateSubjectRestriction", "ClusterTrustBundleAttest", "DefaultIngressClass", "DefaultStorageClass", "DefaultTolerationSeconds", "LimitRanger", "MutatingAdmissionWebhook", "NamespaceLifecycle", "PersistentVolumeClaimResize", "PodSecurity", "Priority", "ResourceQuota", "RuntimeClass", "ServiceAccount", "StorageObjectInUseProtection", "TaintNodesByCondition", "ValidatingAdmissionPolicy", "ValidatingAdmissionWebhook"] . |
cidr_pods | string, or null | The CIDR block of the Kubernetes pods' network. |
cidr_service | string, or null | The CIDR block of the Kubernetes services' network. |
cluster_dns | string, or null | The IP address of the cluster's DNS service. |
tags | object | The key/value combinations of the tags associated with the cluster, in the following format: "tags":{"TAGKEY1":"TAGVALUE1","TAGKEY2":"TAGVALUE2"}. Example: {"key": "value"} . |
additional properties | string | Additional information about tags. |
auto_maintenances | AutoMaintenances object | |
minor_upgrade_maintenance | MaintenanceWindow object | |
enabled | boolean | If true, a maintenance window is enabled. Default: true. |
duration_hours | integer | The duration of the maintenance window, in hours. Maximum value: 23 . Default: 0 . |
start_hour | integer | The starting time of the maintenance window, in hours. Maximum value: 23 . Default: 12 . |
week_day | string | The weekday on which the maintenance window begins. Possible values: Mon | Tue | Wed | Thu | Fri | Sat | Sun | string . Default: Tue . |
tz | string | The timezone for the maintenance window. Default: UTC . |
patch_upgrade_maintenance | MaintenanceWindow object | |
enabled | boolean | If true, a maintenance window is enabled. Default: true. |
duration_hours | integer | The duration of the maintenance window, in hours. Maximum value: 23 . Default: 0 . |
start_hour | integer | The starting time of the maintenance window, in hours. Maximum value: 23 . Default: 12 . |
week_day | string | The weekday on which the maintenance window begins. Possible values: Mon | Tue | Wed | Thu | Fri | Sat | Sun | string . Default: Tue . |
tz | string | The timezone for the maintenance window. Default: UTC . |
control_planes | string | The control plane sizing of the cluster. |
admin_whitelist | [string] | The list of CIDR blocks or IP addresses allowed to access the cluster via the Kubernetes API. |
statuses | Statuses object | |
created_at | string (date-time) | The timestamp when the cluster was created. |
deleted_at | string (date-time), or null | The timestamp when the cluster was deleted (if applicable). |
updated_at | string (date-time), or null | The timestamp when the cluster was last updated. |
status | string, or null | The status of the cluster. |
available_upgrade | string | Any available version of Kubernetes for upgrade (if applicable). For more information, see GetKubernetesVersions. Default: . |
disable_api_termination | boolean | If true, cluster deletion through the API is disabled. If false, it is enabled. Default: false. |
Other responses:
- 422 response (HTTPValidationError object): The HTTP 422 response (Validation Error).
ListAllClusters
GET /clusters/all
Lists one or more of your clusters. The response can be filtered using the parameters.
Request Parameters
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
curl -X GET 'https://api.'$OSC_REGION'.oks.outscale.com/api/v2/clusters/all?name=string&status=string&version=string&deleted=true' \
--header 'AccessKey: '$OSC_ACCESS_KEY \
--header 'SecretKey: '$OSC_SECRET_KEY
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
GET /api/v2/clusters/all?name=string&status=string&version=string&deleted=true HTTP/1.1
Host: api.eu-west-2.oks.outscale.com
AccessKey: XXXX
SecretKey: YYYY
Query:
Query Parameter | Type | Description |
---|---|---|
name | string | The name of the clusters. |
status | string | The status of the clusters. |
version | string | The version of the clusters. |
deleted | boolean | If true, returns deleted clusters. |
Response Elements
{
"ResponseContext": {
"RequestId": "string"
},
"Clusters": [
{
"project_id": "string",
"id": "string",
"name": "string",
"description": "string",
"cp_subregions": [
"string"
],
"version": "string",
"cni": "string",
"admin_lbu": true,
"admission_flags": {
"disable_admission_plugins": [],
"enable_admission_plugins": [],
"applied_admission_plugins": [
"CertificateApproval",
"CertificateSigning",
"CertificateSubjectRestriction",
"ClusterTrustBundleAttest",
"DefaultIngressClass",
"DefaultStorageClass",
"DefaultTolerationSeconds",
"LimitRanger",
"MutatingAdmissionWebhook",
"NamespaceLifecycle",
"PersistentVolumeClaimResize",
"PodSecurity",
"Priority",
"ResourceQuota",
"RuntimeClass",
"ServiceAccount",
"StorageObjectInUseProtection",
"TaintNodesByCondition",
"ValidatingAdmissionPolicy",
"ValidatingAdmissionWebhook"
]
},
"cidr_pods": "string",
"cidr_service": "string",
"cluster_dns": "string",
"tags": {
"key": "value"
},
"auto_maintenances": {
"minor_upgrade_maintenance": {
"enabled": true,
"duration_hours": 0,
"start_hour": 12,
"week_day": "Mon",
"tz": "UTC"
},
"patch_upgrade_maintenance": {
"enabled": true,
"duration_hours": 0,
"start_hour": 12,
"week_day": "Mon",
"tz": "UTC"
}
},
"control_planes": "string",
"admin_whitelist": [
"string"
],
"statuses": {
"created_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"status": "string",
"available_upgrade": ""
},
"disable_api_termination": false
}
]
}
200 response (ClusterResponseList object):
Response Element | Type | Description |
---|---|---|
ResponseContext | clusters__cluster_schema__ResponseContext object | |
RequestId | string | The ID of the API request. |
Clusters | [Cluster object] | |
project_id | string | The ID of the project this cluster belongs to. |
id | string | The Universally Unique Identifier (UUID) of the cluster. |
name | string | A unique name for the cluster within the project. |
description | string, or null | An optional description of the cluster. |
cp_subregions | [string] | The Subregions on which the control plane components are deployed. |
version | string | The Kubernetes version deployed for the cluster. For more information, see GetKubernetesVersions. |
cni | string | The Container Network Interface (CNI) used in the cluster. |
admin_lbu | boolean | If true, load balancer administration is enabled for cluster management. If false, it is disabled. |
admission_flags | AdmissionFlags object | |
disable_admission_plugins | [string] | The list of Kubernetes admission plugins that are disabled. Default: [] . |
enable_admission_plugins | [string] | The list of Kubernetes admission plugins that are enabled. Default: [] . |
applied_admission_plugins | [string] | The list of admission plugins that are currently applied to the cluster. Default: ["CertificateApproval", "CertificateSigning", "CertificateSubjectRestriction", "ClusterTrustBundleAttest", "DefaultIngressClass", "DefaultStorageClass", "DefaultTolerationSeconds", "LimitRanger", "MutatingAdmissionWebhook", "NamespaceLifecycle", "PersistentVolumeClaimResize", "PodSecurity", "Priority", "ResourceQuota", "RuntimeClass", "ServiceAccount", "StorageObjectInUseProtection", "TaintNodesByCondition", "ValidatingAdmissionPolicy", "ValidatingAdmissionWebhook"] . |
cidr_pods | string, or null | The CIDR block of the Kubernetes pods' network. |
cidr_service | string, or null | The CIDR block of the Kubernetes services' network. |
cluster_dns | string, or null | The IP address of the cluster's DNS service. |
tags | object | The key/value combinations of the tags associated with the cluster, in the following format: "tags":{"TAGKEY1":"TAGVALUE1","TAGKEY2":"TAGVALUE2"}. Example: {"key": "value"} . |
additional properties | string | Additional information about tags. |
auto_maintenances | AutoMaintenances object | |
minor_upgrade_maintenance | MaintenanceWindow object | |
enabled | boolean | If true, a maintenance window is enabled. Default: true. |
duration_hours | integer | The duration of the maintenance window, in hours. Maximum value: 23 . Default: 0 . |
start_hour | integer | The starting time of the maintenance window, in hours. Maximum value: 23 . Default: 12 . |
week_day | string | The weekday on which the maintenance window begins. Possible values: Mon | Tue | Wed | Thu | Fri | Sat | Sun | string . Default: Tue . |
tz | string | The timezone for the maintenance window. Default: UTC . |
patch_upgrade_maintenance | MaintenanceWindow object | |
enabled | boolean | If true, a maintenance window is enabled. Default: true. |
duration_hours | integer | The duration of the maintenance window, in hours. Maximum value: 23 . Default: 0 . |
start_hour | integer | The starting time of the maintenance window, in hours. Maximum value: 23 . Default: 12 . |
week_day | string | The weekday on which the maintenance window begins. Possible values: Mon | Tue | Wed | Thu | Fri | Sat | Sun | string . Default: Tue . |
tz | string | The timezone for the maintenance window. Default: UTC . |
control_planes | string | The control plane sizing of the cluster. |
admin_whitelist | [string] | The list of CIDR blocks or IP addresses allowed to access the cluster via the Kubernetes API. |
statuses | Statuses object | |
created_at | string (date-time) | The timestamp when the cluster was created. |
deleted_at | string (date-time), or null | The timestamp when the cluster was deleted (if applicable). |
updated_at | string (date-time), or null | The timestamp when the cluster was last updated. |
status | string, or null | The status of the cluster. |
available_upgrade | string | Any available version of Kubernetes for upgrade (if applicable). For more information, see GetKubernetesVersions. Default: . |
disable_api_termination | boolean | If true, cluster deletion through the API is disabled. If false, it is enabled. Default: false. |
Other responses:
- 422 response (HTTPValidationError object): The HTTP 422 response (Validation Error).
GetCluster
GET /clusters/{cluster_id}
Gets information about a specific cluster.
Request Parameters
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
curl -X GET 'https://api.'$OSC_REGION'.oks.outscale.com/api/v2/clusters/{cluster_id}' \
--header 'AccessKey: '$OSC_ACCESS_KEY \
--header 'SecretKey: '$OSC_SECRET_KEY
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
GET /api/v2/clusters/{cluster_id} HTTP/1.1
Host: api.eu-west-2.oks.outscale.com
AccessKey: XXXX
SecretKey: YYYY
Path:
Path Parameter | Type | Description |
---|---|---|
cluster_id (required) | string | The name of the cluster. |
Response Elements
{
"ResponseContext": {
"RequestId": "string"
},
"Cluster": {
"project_id": "string",
"id": "string",
"name": "string",
"description": "string",
"cp_subregions": [
"string"
],
"version": "string",
"cni": "string",
"admin_lbu": true,
"admission_flags": {
"disable_admission_plugins": [],
"enable_admission_plugins": [],
"applied_admission_plugins": [
"CertificateApproval",
"CertificateSigning",
"CertificateSubjectRestriction",
"ClusterTrustBundleAttest",
"DefaultIngressClass",
"DefaultStorageClass",
"DefaultTolerationSeconds",
"LimitRanger",
"MutatingAdmissionWebhook",
"NamespaceLifecycle",
"PersistentVolumeClaimResize",
"PodSecurity",
"Priority",
"ResourceQuota",
"RuntimeClass",
"ServiceAccount",
"StorageObjectInUseProtection",
"TaintNodesByCondition",
"ValidatingAdmissionPolicy",
"ValidatingAdmissionWebhook"
]
},
"cidr_pods": "string",
"cidr_service": "string",
"cluster_dns": "string",
"tags": {
"key": "value"
},
"auto_maintenances": {
"minor_upgrade_maintenance": {
"enabled": true,
"duration_hours": 0,
"start_hour": 12,
"week_day": "Mon",
"tz": "UTC"
},
"patch_upgrade_maintenance": {
"enabled": true,
"duration_hours": 0,
"start_hour": 12,
"week_day": "Mon",
"tz": "UTC"
}
},
"control_planes": "string",
"admin_whitelist": [
"string"
],
"statuses": {
"created_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"status": "string",
"available_upgrade": ""
},
"disable_api_termination": false
}
}
200 response (ClusterResponse object):
Response Element | Type | Description |
---|---|---|
ResponseContext | clusters__cluster_schema__ResponseContext object | |
RequestId | string | The ID of the API request. |
Cluster | Cluster object | |
project_id | string | The ID of the project this cluster belongs to. |
id | string | The Universally Unique Identifier (UUID) of the cluster. |
name | string | A unique name for the cluster within the project. |
description | string, or null | An optional description of the cluster. |
cp_subregions | [string] | The Subregions on which the control plane components are deployed. |
version | string | The Kubernetes version deployed for the cluster. For more information, see GetKubernetesVersions. |
cni | string | The Container Network Interface (CNI) used in the cluster. |
admin_lbu | boolean | If true, load balancer administration is enabled for cluster management. If false, it is disabled. |
admission_flags | AdmissionFlags object | |
disable_admission_plugins | [string] | The list of Kubernetes admission plugins that are disabled. Default: [] . |
enable_admission_plugins | [string] | The list of Kubernetes admission plugins that are enabled. Default: [] . |
applied_admission_plugins | [string] | The list of admission plugins that are currently applied to the cluster. Default: ["CertificateApproval", "CertificateSigning", "CertificateSubjectRestriction", "ClusterTrustBundleAttest", "DefaultIngressClass", "DefaultStorageClass", "DefaultTolerationSeconds", "LimitRanger", "MutatingAdmissionWebhook", "NamespaceLifecycle", "PersistentVolumeClaimResize", "PodSecurity", "Priority", "ResourceQuota", "RuntimeClass", "ServiceAccount", "StorageObjectInUseProtection", "TaintNodesByCondition", "ValidatingAdmissionPolicy", "ValidatingAdmissionWebhook"] . |
cidr_pods | string, or null | The CIDR block of the Kubernetes pods' network. |
cidr_service | string, or null | The CIDR block of the Kubernetes services' network. |
cluster_dns | string, or null | The IP address of the cluster's DNS service. |
tags | object | The key/value combinations of the tags associated with the cluster, in the following format: "tags":{"TAGKEY1":"TAGVALUE1","TAGKEY2":"TAGVALUE2"}. Example: {"key": "value"} . |
additional properties | string | Additional information about tags. |
auto_maintenances | AutoMaintenances object | |
minor_upgrade_maintenance | MaintenanceWindow object | |
enabled | boolean | If true, a maintenance window is enabled. Default: true. |
duration_hours | integer | The duration of the maintenance window, in hours. Maximum value: 23 . Default: 0 . |
start_hour | integer | The starting time of the maintenance window, in hours. Maximum value: 23 . Default: 12 . |
week_day | string | The weekday on which the maintenance window begins. Possible values: Mon | Tue | Wed | Thu | Fri | Sat | Sun | string . Default: Tue . |
tz | string | The timezone for the maintenance window. Default: UTC . |
patch_upgrade_maintenance | MaintenanceWindow object | |
enabled | boolean | If true, a maintenance window is enabled. Default: true. |
duration_hours | integer | The duration of the maintenance window, in hours. Maximum value: 23 . Default: 0 . |
start_hour | integer | The starting time of the maintenance window, in hours. Maximum value: 23 . Default: 12 . |
week_day | string | The weekday on which the maintenance window begins. Possible values: Mon | Tue | Wed | Thu | Fri | Sat | Sun | string . Default: Tue . |
tz | string | The timezone for the maintenance window. Default: UTC . |
control_planes | string | The control plane sizing of the cluster. |
admin_whitelist | [string] | The list of CIDR blocks or IP addresses allowed to access the cluster via the Kubernetes API. |
statuses | Statuses object | |
created_at | string (date-time) | The timestamp when the cluster was created. |
deleted_at | string (date-time), or null | The timestamp when the cluster was deleted (if applicable). |
updated_at | string (date-time), or null | The timestamp when the cluster was last updated. |
status | string, or null | The status of the cluster. |
available_upgrade | string | Any available version of Kubernetes for upgrade (if applicable). For more information, see GetKubernetesVersions. Default: . |
disable_api_termination | boolean | If true, cluster deletion through the API is disabled. If false, it is enabled. Default: false. |
Other responses:
- 422 response (HTTPValidationError object): The HTTP 422 response (Validation Error).
UpdateCluster
PATCH /clusters/{cluster_id}
Updates the configuration of an existing cluster.
Request Parameters
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
curl -X PATCH 'https://api.'$OSC_REGION'.oks.outscale.com/api/v2/clusters/{cluster_id}' \
--header 'AccessKey: '$OSC_ACCESS_KEY \
--header 'SecretKey: '$OSC_SECRET_KEY \
--header 'Content-Type: application/json' \
--data '{
"description": "string",
"admission_flags": {
"disable_admission_plugins": [],
"enable_admission_plugins": []
},
"tags": {
"property1": "string",
"property2": "string"
},
"auto_maintenances": {
"minor_upgrade_maintenance": {
"enabled": true,
"duration_hours": 0,
"start_hour": 12,
"week_day": "Mon",
"tz": "UTC"
},
"patch_upgrade_maintenance": {
"enabled": true,
"duration_hours": 0,
"start_hour": 12,
"week_day": "Mon",
"tz": "UTC"
}
},
"admin_whitelist": ["string"],
"quirks": ["string"],
"disable_api_termination": true,
"version": "string"
}'
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
PATCH /api/v2/clusters/{cluster_id} HTTP/1.1
Host: api.eu-west-2.oks.outscale.com
Content-Type: application/json
AccessKey: XXXX
SecretKey: YYYY
{
"description": "string",
"admission_flags": {
"disable_admission_plugins": [],
"enable_admission_plugins": []
},
"tags": {
"property1": "string",
"property2": "string"
},
"auto_maintenances": {
"minor_upgrade_maintenance": {
"enabled": true,
"duration_hours": 0,
"start_hour": 12,
"week_day": "Mon",
"tz": "UTC"
},
"patch_upgrade_maintenance": {
"enabled": true,
"duration_hours": 0,
"start_hour": 12,
"week_day": "Mon",
"tz": "UTC"
}
},
"admin_whitelist": ["string"],
"quirks": ["string"],
"disable_api_termination": true,
"version": "string"
}
Path:
Path Parameter | Type | Description |
---|---|---|
cluster_id (required) | string | The ID of the cluster. |
Body (ClusterUpdate object):
Body Parameter | Type | Description |
---|---|---|
description | string, or null | The updated description of the cluster. |
admission_flags | AdmissionFlagsInput object | |
disable_admission_plugins | [string] | The list of Kubernetes admission plugins to disable. Default: [] . |
enable_admission_plugins | [string] | The list of Kubernetes admission plugins to enable. Default: [] . |
tags | object, or null | The updated key/value combinations of the tags associated with the cluster's metadata, in the following format: "tags":{"TAGKEY1":"TAGVALUE1","TAGKEY2":"TAGVALUE2"}. |
additional properties | string | Additional information about tags. |
auto_maintenances | AutoMaintenances object | |
minor_upgrade_maintenance (required) | MaintenanceWindow object | |
enabled | boolean | If true, a maintenance window is enabled. Default: true. |
duration_hours | integer | The duration of the maintenance window, in hours. Maximum value: 23 . Default: 0 . |
start_hour | integer | The starting time of the maintenance window, in hours. Maximum value: 23 . Default: 12 . |
week_day | string | The weekday on which the maintenance window begins. Possible values: Mon | Tue | Wed | Thu | Fri | Sat | Sun | string . Default: Tue . |
tz | string | The timezone for the maintenance window. Default: UTC . |
patch_upgrade_maintenance (required) | MaintenanceWindow object | |
enabled | boolean | If true, a maintenance window is enabled. Default: true. |
duration_hours | integer | The duration of the maintenance window, in hours. Maximum value: 23 . Default: 0 . |
start_hour | integer | The starting time of the maintenance window, in hours. Maximum value: 23 . Default: 12 . |
week_day | string | The weekday on which the maintenance window begins. Possible values: Mon | Tue | Wed | Thu | Fri | Sat | Sun | string . Default: Tue . |
tz | string | The timezone for the maintenance window. Default: UTC . |
admin_whitelist | [string], or null | The updated list of CIDR blocks or IP addresses allowed to access the cluster via the Kubernetes API. |
quirks | [string], or null | The updated list of special configurations or behaviors for the cluster. |
disable_api_termination | boolean, or null | If true, cluster deletion through the API is disabled. If false, it is enabled. |
version | string, or null | The updated version of Kubernetes for the cluster. For more information, see GetKubernetesVersions. |
Response Elements
{
"ResponseContext": {
"RequestId": "string"
},
"Cluster": {
"project_id": "string",
"id": "string",
"name": "string",
"description": "string",
"cp_subregions": [
"string"
],
"version": "string",
"cni": "string",
"admin_lbu": true,
"admission_flags": {
"disable_admission_plugins": [],
"enable_admission_plugins": [],
"applied_admission_plugins": [
"CertificateApproval",
"CertificateSigning",
"CertificateSubjectRestriction",
"ClusterTrustBundleAttest",
"DefaultIngressClass",
"DefaultStorageClass",
"DefaultTolerationSeconds",
"LimitRanger",
"MutatingAdmissionWebhook",
"NamespaceLifecycle",
"PersistentVolumeClaimResize",
"PodSecurity",
"Priority",
"ResourceQuota",
"RuntimeClass",
"ServiceAccount",
"StorageObjectInUseProtection",
"TaintNodesByCondition",
"ValidatingAdmissionPolicy",
"ValidatingAdmissionWebhook"
]
},
"cidr_pods": "string",
"cidr_service": "string",
"cluster_dns": "string",
"tags": {
"key": "value"
},
"auto_maintenances": {
"minor_upgrade_maintenance": {
"enabled": true,
"duration_hours": 0,
"start_hour": 12,
"week_day": "Mon",
"tz": "UTC"
},
"patch_upgrade_maintenance": {
"enabled": true,
"duration_hours": 0,
"start_hour": 12,
"week_day": "Mon",
"tz": "UTC"
}
},
"control_planes": "string",
"admin_whitelist": [
"string"
],
"statuses": {
"created_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"status": "string",
"available_upgrade": ""
},
"disable_api_termination": false
}
}
200 response (ClusterResponse object):
Response Element | Type | Description |
---|---|---|
ResponseContext | clusters__cluster_schema__ResponseContext object | |
RequestId | string | The ID of the API request. |
Cluster | Cluster object | |
project_id | string | The ID of the project this cluster belongs to. |
id | string | The Universally Unique Identifier (UUID) of the cluster. |
name | string | A unique name for the cluster within the project. |
description | string, or null | An optional description of the cluster. |
cp_subregions | [string] | The Subregions on which the control plane components are deployed. |
version | string | The Kubernetes version deployed for the cluster. For more information, see GetKubernetesVersions. |
cni | string | The Container Network Interface (CNI) used in the cluster. |
admin_lbu | boolean | If true, load balancer administration is enabled for cluster management. If false, it is disabled. |
admission_flags | AdmissionFlags object | |
disable_admission_plugins | [string] | The list of Kubernetes admission plugins that are disabled. Default: [] . |
enable_admission_plugins | [string] | The list of Kubernetes admission plugins that are enabled. Default: [] . |
applied_admission_plugins | [string] | The list of admission plugins that are currently applied to the cluster. Default: ["CertificateApproval", "CertificateSigning", "CertificateSubjectRestriction", "ClusterTrustBundleAttest", "DefaultIngressClass", "DefaultStorageClass", "DefaultTolerationSeconds", "LimitRanger", "MutatingAdmissionWebhook", "NamespaceLifecycle", "PersistentVolumeClaimResize", "PodSecurity", "Priority", "ResourceQuota", "RuntimeClass", "ServiceAccount", "StorageObjectInUseProtection", "TaintNodesByCondition", "ValidatingAdmissionPolicy", "ValidatingAdmissionWebhook"] . |
cidr_pods | string, or null | The CIDR block of the Kubernetes pods' network. |
cidr_service | string, or null | The CIDR block of the Kubernetes services' network. |
cluster_dns | string, or null | The IP address of the cluster's DNS service. |
tags | object | The key/value combinations of the tags associated with the cluster, in the following format: "tags":{"TAGKEY1":"TAGVALUE1","TAGKEY2":"TAGVALUE2"}. Example: {"key": "value"} . |
additional properties | string | Additional information about tags. |
auto_maintenances | AutoMaintenances object | |
minor_upgrade_maintenance | MaintenanceWindow object | |
enabled | boolean | If true, a maintenance window is enabled. Default: true. |
duration_hours | integer | The duration of the maintenance window, in hours. Maximum value: 23 . Default: 0 . |
start_hour | integer | The starting time of the maintenance window, in hours. Maximum value: 23 . Default: 12 . |
week_day | string | The weekday on which the maintenance window begins. Possible values: Mon | Tue | Wed | Thu | Fri | Sat | Sun | string . Default: Tue . |
tz | string | The timezone for the maintenance window. Default: UTC . |
patch_upgrade_maintenance | MaintenanceWindow object | |
enabled | boolean | If true, a maintenance window is enabled. Default: true. |
duration_hours | integer | The duration of the maintenance window, in hours. Maximum value: 23 . Default: 0 . |
start_hour | integer | The starting time of the maintenance window, in hours. Maximum value: 23 . Default: 12 . |
week_day | string | The weekday on which the maintenance window begins. Possible values: Mon | Tue | Wed | Thu | Fri | Sat | Sun | string . Default: Tue . |
tz | string | The timezone for the maintenance window. Default: UTC . |
control_planes | string | The control plane sizing of the cluster. |
admin_whitelist | [string] | The list of CIDR blocks or IP addresses allowed to access the cluster via the Kubernetes API. |
statuses | Statuses object | |
created_at | string (date-time) | The timestamp when the cluster was created. |
deleted_at | string (date-time), or null | The timestamp when the cluster was deleted (if applicable). |
updated_at | string (date-time), or null | The timestamp when the cluster was last updated. |
status | string, or null | The status of the cluster. |
available_upgrade | string | Any available version of Kubernetes for upgrade (if applicable). For more information, see GetKubernetesVersions. Default: . |
disable_api_termination | boolean | If true, cluster deletion through the API is disabled. If false, it is enabled. Default: false. |
Other responses:
- 422 response (HTTPValidationError object): The HTTP 422 response (Validation Error).
DeleteCluster
DELETE /clusters/{cluster_id}
Deletes a specific cluster.
Request Parameters
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
curl -X DELETE 'https://api.'$OSC_REGION'.oks.outscale.com/api/v2/clusters/{cluster_id}' \
--header 'AccessKey: '$OSC_ACCESS_KEY \
--header 'SecretKey: '$OSC_SECRET_KEY
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
DELETE /api/v2/clusters/{cluster_id} HTTP/1.1
Host: api.eu-west-2.oks.outscale.com
AccessKey: XXXX
SecretKey: YYYY
Path:
Path Parameter | Type | Description |
---|---|---|
cluster_id (required) | string | The ID of the cluster. |
Response Elements
{
"ResponseContext": {
"RequestId": "string"
},
"detail": "string"
}
200 response (DetailResponse object):
Response Element | Type | Description |
---|---|---|
ResponseContext | projects__project_schema__ResponseContext object | |
RequestId | string | The ID of the API request. |
detail | string | A detailed message related to the API response. |
Other responses:
- 422 response (HTTPValidationError object): The HTTP 422 response (Validation Error).
GetKubeconfig
GET /clusters/{cluster_id}/kubeconfig
Gets the kubeconfig file for a specific cluster. You can specify query parameters for the kubeconfig file.
Request Parameters
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
curl -X GET 'https://api.'$OSC_REGION'.oks.outscale.com/api/v2/clusters/{cluster_id}/kubeconfig?user=string&group=string&ttl=string' \
--header 'AccessKey: '$OSC_ACCESS_KEY \
--header 'SecretKey: '$OSC_SECRET_KEY
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
GET /api/v2/clusters/{cluster_id}/kubeconfig?user=string&group=string&ttl=string HTTP/1.1
Host: api.eu-west-2.oks.outscale.com
AccessKey: XXXX
SecretKey: YYYY
Path:
Path Parameter | Type | Description |
---|---|---|
cluster_id (required) | string | The ID of the cluster. |
Query:
Query Parameter | Type | Description |
---|---|---|
user | string | The user of the kubeconfig file. |
group | string | The group of the kubeconfig file. |
ttl | string | The time to live (TTL) of the kubeconfig file. |
Response Elements
{
"ResponseContext": {
"RequestId": "string"
},
"Cluster": {
"request_id": "string",
"data": {
"name": "string",
"kubeconfig": "string"
}
}
}
200 response (KubeconfigResponse object):
Response Element | Type | Description |
---|---|---|
ResponseContext | clusters__cluster_schema__ResponseContext object | |
RequestId | string | The ID of the API request. |
Cluster | clusters__cluster_schema__RPCResponse object | |
request_id | string | The ID of the API request. |
data | KubeconfigData object | |
name | string | The name of the cluster. |
kubeconfig | string | A file containing access configuration to the cluster. |
Other responses:
- 422 response (HTTPValidationError object): The HTTP 422 response (Validation Error).
GetKubeconfigWithPubkeyNACL
POST /clusters/{cluster_id}/kubeconfig
Gets the kubeconfig file for a specific cluster, optionally encrypted with a NaCl public key. For more information, see the NaCl website. You can specify query parameters for the kubeconfig file.
Request Parameters
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
curl -X POST 'https://api.'$OSC_REGION'.oks.outscale.com/api/v2/clusters/{cluster_id}/kubeconfig?user=string&group=string&ttl=string' \
--header 'AccessKey: '$OSC_ACCESS_KEY \
--header 'SecretKey: '$OSC_SECRET_KEY \
--header 'x-encrypt-nacl: string'
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
POST /api/v2/clusters/{cluster_id}/kubeconfig?user=string&group=string&ttl=string HTTP/1.1
Host: api.eu-west-2.oks.outscale.com
x-encrypt-nacl: string
AccessKey: XXXX
SecretKey: YYYY
Path:
Path Parameter | Type | Description |
---|---|---|
cluster_id (required) | string | The ID of the cluster. |
Query:
Query Parameter | Type | Description |
---|---|---|
user | string | The user of the kubeconfig file. |
group | string | The group of the kubeconfig file. |
ttl | string | The time to live (TTL) of the kubeconfig file. |
Headers:
Header Parameter | Type | Description |
---|---|---|
x-encrypt-nacl | string | The header to encrypt the kubeconfig file. |
Response Elements
{
"ResponseContext": {
"RequestId": "string"
},
"Cluster": {
"request_id": "string",
"data": {
"name": "string",
"kubeconfig": "string"
}
}
}
200 response (KubeconfigResponse object):
Response Element | Type | Description |
---|---|---|
ResponseContext | clusters__cluster_schema__ResponseContext object | |
RequestId | string | The ID of the API request. |
Cluster | clusters__cluster_schema__RPCResponse object | |
request_id | string | The ID of the API request. |
data | KubeconfigData object | |
name | string | The name of the cluster. |
kubeconfig | string | A file containing access configuration to the cluster. |
Other responses:
- 422 response (HTTPValidationError object): The HTTP 422 response (Validation Error).
UpgradeCluster
PATCH /clusters/{cluster_id}/upgrade
Upgrades a specific cluster to the latest available version of Kubernetes. For more information, see GetKubernetesVersions.
Request Parameters
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
curl -X PATCH 'https://api.'$OSC_REGION'.oks.outscale.com/api/v2/clusters/{cluster_id}/upgrade' \
--header 'AccessKey: '$OSC_ACCESS_KEY \
--header 'SecretKey: '$OSC_SECRET_KEY
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
PATCH /api/v2/clusters/{cluster_id}/upgrade HTTP/1.1
Host: api.eu-west-2.oks.outscale.com
AccessKey: XXXX
SecretKey: YYYY
Path:
Path Parameter | Type | Description |
---|---|---|
cluster_id (required) | string | The ID of the cluster. |
Response Elements
{
"ResponseContext": {
"RequestId": "string"
},
"Cluster": {
"project_id": "string",
"id": "string",
"name": "string",
"description": "string",
"cp_subregions": [
"string"
],
"version": "string",
"cni": "string",
"admin_lbu": true,
"admission_flags": {
"disable_admission_plugins": [],
"enable_admission_plugins": [],
"applied_admission_plugins": [
"CertificateApproval",
"CertificateSigning",
"CertificateSubjectRestriction",
"ClusterTrustBundleAttest",
"DefaultIngressClass",
"DefaultStorageClass",
"DefaultTolerationSeconds",
"LimitRanger",
"MutatingAdmissionWebhook",
"NamespaceLifecycle",
"PersistentVolumeClaimResize",
"PodSecurity",
"Priority",
"ResourceQuota",
"RuntimeClass",
"ServiceAccount",
"StorageObjectInUseProtection",
"TaintNodesByCondition",
"ValidatingAdmissionPolicy",
"ValidatingAdmissionWebhook"
]
},
"cidr_pods": "string",
"cidr_service": "string",
"cluster_dns": "string",
"tags": {
"key": "value"
},
"auto_maintenances": {
"minor_upgrade_maintenance": {
"enabled": true,
"duration_hours": 0,
"start_hour": 12,
"week_day": "Mon",
"tz": "UTC"
},
"patch_upgrade_maintenance": {
"enabled": true,
"duration_hours": 0,
"start_hour": 12,
"week_day": "Mon",
"tz": "UTC"
}
},
"control_planes": "string",
"admin_whitelist": [
"string"
],
"statuses": {
"created_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"status": "string",
"available_upgrade": ""
},
"disable_api_termination": false
}
}
200 response (ClusterResponse object):
Response Element | Type | Description |
---|---|---|
ResponseContext | clusters__cluster_schema__ResponseContext object | |
RequestId | string | The ID of the API request. |
Cluster | Cluster object | |
project_id | string | The ID of the project this cluster belongs to. |
id | string | The Universally Unique Identifier (UUID) of the cluster. |
name | string | A unique name for the cluster within the project. |
description | string, or null | An optional description of the cluster. |
cp_subregions | [string] | The Subregions on which the control plane components are deployed. |
version | string | The Kubernetes version deployed for the cluster. For more information, see GetKubernetesVersions. |
cni | string | The Container Network Interface (CNI) used in the cluster. |
admin_lbu | boolean | If true, load balancer administration is enabled for cluster management. If false, it is disabled. |
admission_flags | AdmissionFlags object | |
disable_admission_plugins | [string] | The list of Kubernetes admission plugins that are disabled. Default: [] . |
enable_admission_plugins | [string] | The list of Kubernetes admission plugins that are enabled. Default: [] . |
applied_admission_plugins | [string] | The list of admission plugins that are currently applied to the cluster. Default: ["CertificateApproval", "CertificateSigning", "CertificateSubjectRestriction", "ClusterTrustBundleAttest", "DefaultIngressClass", "DefaultStorageClass", "DefaultTolerationSeconds", "LimitRanger", "MutatingAdmissionWebhook", "NamespaceLifecycle", "PersistentVolumeClaimResize", "PodSecurity", "Priority", "ResourceQuota", "RuntimeClass", "ServiceAccount", "StorageObjectInUseProtection", "TaintNodesByCondition", "ValidatingAdmissionPolicy", "ValidatingAdmissionWebhook"] . |
cidr_pods | string, or null | The CIDR block of the Kubernetes pods' network. |
cidr_service | string, or null | The CIDR block of the Kubernetes services' network. |
cluster_dns | string, or null | The IP address of the cluster's DNS service. |
tags | object | The key/value combinations of the tags associated with the cluster, in the following format: "tags":{"TAGKEY1":"TAGVALUE1","TAGKEY2":"TAGVALUE2"}. Example: {"key": "value"} . |
additional properties | string | Additional information about tags. |
auto_maintenances | AutoMaintenances object | |
minor_upgrade_maintenance | MaintenanceWindow object | |
enabled | boolean | If true, a maintenance window is enabled. Default: true. |
duration_hours | integer | The duration of the maintenance window, in hours. Maximum value: 23 . Default: 0 . |
start_hour | integer | The starting time of the maintenance window, in hours. Maximum value: 23 . Default: 12 . |
week_day | string | The weekday on which the maintenance window begins. Possible values: Mon | Tue | Wed | Thu | Fri | Sat | Sun | string . Default: Tue . |
tz | string | The timezone for the maintenance window. Default: UTC . |
patch_upgrade_maintenance | MaintenanceWindow object | |
enabled | boolean | If true, a maintenance window is enabled. Default: true. |
duration_hours | integer | The duration of the maintenance window, in hours. Maximum value: 23 . Default: 0 . |
start_hour | integer | The starting time of the maintenance window, in hours. Maximum value: 23 . Default: 12 . |
week_day | string | The weekday on which the maintenance window begins. Possible values: Mon | Tue | Wed | Thu | Fri | Sat | Sun | string . Default: Tue . |
tz | string | The timezone for the maintenance window. Default: UTC . |
control_planes | string | The control plane sizing of the cluster. |
admin_whitelist | [string] | The list of CIDR blocks or IP addresses allowed to access the cluster via the Kubernetes API. |
statuses | Statuses object | |
created_at | string (date-time) | The timestamp when the cluster was created. |
deleted_at | string (date-time), or null | The timestamp when the cluster was deleted (if applicable). |
updated_at | string (date-time), or null | The timestamp when the cluster was last updated. |
status | string, or null | The status of the cluster. |
available_upgrade | string | Any available version of Kubernetes for upgrade (if applicable). For more information, see GetKubernetesVersions. Default: . |
disable_api_termination | boolean | If true, cluster deletion through the API is disabled. If false, it is enabled. Default: false. |
Other responses:
- 422 response (HTTPValidationError object): The HTTP 422 response (Validation Error).
GetKubenetesVersions
GET /clusters/limits/kubernetes_versions
Gets the available Kubernetes versions for cluster creation or upgrades.
Request Parameters
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
curl -X GET 'https://api.'$OSC_REGION'.oks.outscale.com/api/v2/clusters/limits/kubernetes_versions' \
--header 'AccessKey: '$OSC_ACCESS_KEY \
--header 'SecretKey: '$OSC_SECRET_KEY
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
GET /api/v2/clusters/limits/kubernetes_versions HTTP/1.1
Host: api.eu-west-2.oks.outscale.com
AccessKey: XXXX
SecretKey: YYYY
Response Elements
{
"ResponseContext": {
"RequestId": "string"
},
"Versions": [
"string"
]
}
200 response (KubernetesVersionsResponse object):
Response Element | Type | Description |
---|---|---|
ResponseContext | clusters__cluster_schema__ResponseContext object | |
RequestId | string | The ID of the API request. |
Versions | [string] | A list of available Kubernetes versions. |
Other responses:
- 422 response (HTTPValidationError object): The HTTP 422 response (Validation Error).
GetCPSubregions
GET /clusters/limits/cp_subregions
Gets the Subregions where you can deploy control planes for your clusters.
Request Parameters
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
curl -X GET 'https://api.'$OSC_REGION'.oks.outscale.com/api/v2/clusters/limits/cp_subregions' \
--header 'AccessKey: '$OSC_ACCESS_KEY \
--header 'SecretKey: '$OSC_SECRET_KEY
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
GET /api/v2/clusters/limits/cp_subregions HTTP/1.1
Host: api.eu-west-2.oks.outscale.com
AccessKey: XXXX
SecretKey: YYYY
Response Elements
{
"ResponseContext": {
"RequestId": "string"
},
"CPSubregions": [
"string"
]
}
200 response (CPSubregionsResponse object):
Response Element | Type | Description |
---|---|---|
ResponseContext | clusters__cluster_schema__ResponseContext object | |
RequestId | string | The ID of the API request. |
CPSubregions | [string] | The list of Subregions where you can deploy control planes for your clusters. |
Other responses:
- 422 response (HTTPValidationError object): The HTTP 422 response (Validation Error).
GetControlPlanePlans
GET /clusters/limits/control_plane_plans
Gets the control plane types that you can use to create your clusters.
Request Parameters
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
curl -X GET 'https://api.'$OSC_REGION'.oks.outscale.com/api/v2/clusters/limits/control_plane_plans' \
--header 'AccessKey: '$OSC_ACCESS_KEY \
--header 'SecretKey: '$OSC_SECRET_KEY
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
GET /api/v2/clusters/limits/control_plane_plans HTTP/1.1
Host: api.eu-west-2.oks.outscale.com
AccessKey: XXXX
SecretKey: YYYY
Response Elements
{
"ResponseContext": {
"RequestId": "string"
},
"ControlPlanes": [
"string"
]
}
200 response (ControlPlanesResponse object):
Response Element | Type | Description |
---|---|---|
ResponseContext | clusters__cluster_schema__ResponseContext object | |
RequestId | string | The ID of the API request. |
ControlPlanes | [string] | The list of available control plane types. |
Other responses:
- 422 response (HTTPValidationError object): The HTTP 422 response (Validation Error).
Projects
CreateProject
POST /projects
Creates a new project.
Request Parameters
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
curl -X POST 'https://api.'$OSC_REGION'.oks.outscale.com/api/v2/projects' \
--header 'AccessKey: '$OSC_ACCESS_KEY \
--header 'SecretKey: '$OSC_SECRET_KEY \
--header 'Content-Type: application/json' \
--data '{
"name": "awesome-project",
"description": "string",
"cidr": "string",
"region": "string",
"tags": {
"key": "value"
},
"quirks": ["string"],
"disable_api_termination": false
}'
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
POST /api/v2/projects HTTP/1.1
Host: api.eu-west-2.oks.outscale.com
Content-Type: application/json
AccessKey: XXXX
SecretKey: YYYY
{
"name": "awesome-project",
"description": "string",
"cidr": "string",
"region": "string",
"tags": {
"key": "value"
},
"quirks": ["string"],
"disable_api_termination": false
}
Body (ProjectInput object):
Body Parameter | Type | Description |
---|---|---|
name (required) | string | A unique name for the project. Must start with a letter and contain only lowercase letters, numbers, or hyphens. Length: 1 to 40 characters. Pattern: ^[a-z][a-z0-9-]*[a-z0-9]$ .Example: awesome-project . |
description | string | A description for the project. |
cidr (required) | string | The CIDR block to associate with the Net of the project. |
region (required) | string | The Region on which the project is deployed. |
tags | object | The key/value combinations of the tags associated with the resource, in the following format: "tags":{"TAGKEY1":"TAGVALUE1","TAGKEY2":"TAGVALUE2"}. Example: {"key": "value"} . |
quirks | [string], or null | A list of special configurations or behaviors for the project. |
disable_api_termination | boolean | If true, project deletion through the API is disabled. If false, it is enabled. Default: false. |
Response Elements
{
"ResponseContext": {
"RequestId": "string"
},
"Project": {
"id": "string",
"name": "string",
"description": "string",
"cidr": "string",
"region": "string",
"status": "string",
"tags": {
"property1": "string",
"property2": "string"
},
"disable_api_termination": false,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z"
}
}
200 response (ProjectResponse object):
Response Element | Type | Description |
---|---|---|
ResponseContext | projects__project_schema__ResponseContext object | |
RequestId | string | The ID of the API request. |
Project | Project object | |
id | string | The ID of the project. |
name | string | The name of the project. |
description | string, or null | A description for the project. |
cidr | string | The CIDR block associated with the Net of the project. |
region | string | The Region on which the project is deployed. |
status | string | The status of the project. |
tags | object | The key/value combinations of the tags associated with the resource, in the following format: "tags":{"TAGKEY1":"TAGVALUE1","TAGKEY2":"TAGVALUE2"}. |
additional properties | string | Additional information about tags. |
disable_api_termination | boolean | If true, project deletion through the API is disabled. If false, it is enabled. Default: false. |
created_at | string (date-time) | The timestamp when the project was created. |
updated_at | string (date-time) | The timestamp when the project was last updated. |
deleted_at | string (date-time), or null | The timestamp when the project was deleted (if applicable). |
Other responses:
- 422 response (HTTPValidationError object): The HTTP 422 response (Validation Error).
ListProjects
GET /projects
Lists one or more of your projects. The response can be filtered using the parameters.
Request Parameters
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
curl -X GET 'https://api.'$OSC_REGION'.oks.outscale.com/api/v2/projects?name=string&status=pending&cidr=10.50.0.0%2F16&deleted=true' \
--header 'AccessKey: '$OSC_ACCESS_KEY \
--header 'SecretKey: '$OSC_SECRET_KEY
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
GET /api/v2/projects?name=string&status=pending&cidr=10.50.0.0%2F16&deleted=true HTTP/1.1
Host: api.eu-west-2.oks.outscale.com
AccessKey: XXXX
SecretKey: YYYY
Query:
Query Parameter | Type | Description |
---|---|---|
name | string | The name of the projects. |
status | string | The status of the projects. Possible values: pending | ready | deploying | updating | upgrading | failed | deleting . |
cidr | string | The IP ranges for the projects, IN CIDR notation (for example, 192.0.2.0/16 ).Default: 10.50.0.0/16 . |
deleted | boolean | If true, returns deleted projects. |
Response Elements
{
"ResponseContext": {
"RequestId": "string"
},
"Projects": [
{
"id": "string",
"name": "string",
"description": "string",
"cidr": "string",
"region": "string",
"status": "string",
"tags": {
"property1": "string",
"property2": "string"
},
"disable_api_termination": false,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z"
}
]
}
200 response (ProjectResponseList object):
Response Element | Type | Description |
---|---|---|
ResponseContext | projects__project_schema__ResponseContext object | |
RequestId | string | The ID of the API request. |
Projects | [Project object] | The list of retrieved projects. |
id | string | The ID of the project. |
name | string | The name of the project. |
description | string, or null | A description for the project. |
cidr | string | The CIDR block associated with the Net of the project. |
region | string | The Region on which the project is deployed. |
status | string | The status of the project. |
tags | object | The key/value combinations of the tags associated with the resource, in the following format: "tags":{"TAGKEY1":"TAGVALUE1","TAGKEY2":"TAGVALUE2"}. |
additional properties | string | Additional information about tags. |
disable_api_termination | boolean | If true, project deletion through the API is disabled. If false, it is enabled. Default: false. |
created_at | string (date-time) | The timestamp when the project was created. |
updated_at | string (date-time) | The timestamp when the project was last updated. |
deleted_at | string (date-time), or null | The timestamp when the project was deleted (if applicable). |
Other responses:
- 422 response (HTTPValidationError object): The HTTP 422 response (Validation Error).
GetProject
GET /projects/{project_id}
Gets information about a specific project.
Request Parameters
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
curl -X GET 'https://api.'$OSC_REGION'.oks.outscale.com/api/v2/projects/{project_id}' \
--header 'AccessKey: '$OSC_ACCESS_KEY \
--header 'SecretKey: '$OSC_SECRET_KEY
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
GET /api/v2/projects/{project_id} HTTP/1.1
Host: api.eu-west-2.oks.outscale.com
AccessKey: XXXX
SecretKey: YYYY
Path:
Path Parameter | Type | Description |
---|---|---|
project_id (required) | string | The ID of the project. |
Response Elements
{
"ResponseContext": {
"RequestId": "string"
},
"Project": {
"id": "string",
"name": "string",
"description": "string",
"cidr": "string",
"region": "string",
"status": "string",
"tags": {
"property1": "string",
"property2": "string"
},
"disable_api_termination": false,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z"
}
}
200 response (ProjectResponse object):
Response Element | Type | Description |
---|---|---|
ResponseContext | projects__project_schema__ResponseContext object | |
RequestId | string | The ID of the API request. |
Project | Project object | |
id | string | The ID of the project. |
name | string | The name of the project. |
description | string, or null | A description for the project. |
cidr | string | The CIDR block associated with the Net of the project. |
region | string | The Region on which the project is deployed. |
status | string | The status of the project. |
tags | object | The key/value combinations of the tags associated with the resource, in the following format: "tags":{"TAGKEY1":"TAGVALUE1","TAGKEY2":"TAGVALUE2"}. |
additional properties | string | Additional information about tags. |
disable_api_termination | boolean | If true, project deletion through the API is disabled. If false, it is enabled. Default: false. |
created_at | string (date-time) | The timestamp when the project was created. |
updated_at | string (date-time) | The timestamp when the project was last updated. |
deleted_at | string (date-time), or null | The timestamp when the project was deleted (if applicable). |
Other responses:
- 422 response (HTTPValidationError object): The HTTP 422 response (Validation Error).
UpdateProject
PATCH /projects/{project_id}
Updates the details of an existing project.
Request Parameters
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
curl -X PATCH 'https://api.'$OSC_REGION'.oks.outscale.com/api/v2/projects/{project_id}' \
--header 'AccessKey: '$OSC_ACCESS_KEY \
--header 'SecretKey: '$OSC_SECRET_KEY \
--header 'Content-Type: application/json' \
--data '{
"description": "string",
"tags": {
"key": "value"
},
"quirks": ["string"],
"disable_api_termination": true
}'
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
PATCH /api/v2/projects/{project_id} HTTP/1.1
Host: api.eu-west-2.oks.outscale.com
Content-Type: application/json
AccessKey: XXXX
SecretKey: YYYY
{
"description": "string",
"tags": {
"key": "value"
},
"quirks": ["string"],
"disable_api_termination": true
}
Path:
Path Parameter | Type | Description |
---|---|---|
project_id (required) | string | The ID of the project. |
Body (ProjectUpdate object):
Body Parameter | Type | Description |
---|---|---|
description | string, or null | The updated description for the project. |
tags | object, or null | The updated key/value combinations of the tags associated with the project’s metadata, in the following format: "tags":{"TAGKEY1":"TAGVALUE1","TAGKEY2":"TAGVALUE2"}. Example: {"key": "value"} . |
additional properties | string | Additional information about tags. |
quirks | [string], or null | The updated list of special configurations or behaviors for the project. |
disable_api_termination | boolean, or null | If true, project deletion through the API is disabled. If false, it is enabled. |
Response Elements
{
"ResponseContext": {
"RequestId": "string"
},
"Project": {
"id": "string",
"name": "string",
"description": "string",
"cidr": "string",
"region": "string",
"status": "string",
"tags": {
"property1": "string",
"property2": "string"
},
"disable_api_termination": false,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z"
}
}
200 response (ProjectResponse object):
Response Element | Type | Description |
---|---|---|
ResponseContext | projects__project_schema__ResponseContext object | |
RequestId | string | The ID of the API request. |
Project | Project object | |
id | string | The ID of the project. |
name | string | The name of the project. |
description | string, or null | A description for the project. |
cidr | string | The CIDR block associated with the Net of the project. |
region | string | The Region on which the project is deployed. |
status | string | The status of the project. |
tags | object | The key/value combinations of the tags associated with the resource, in the following format: "tags":{"TAGKEY1":"TAGVALUE1","TAGKEY2":"TAGVALUE2"}. |
additional properties | string | Additional information about tags. |
disable_api_termination | boolean | If true, project deletion through the API is disabled. If false, it is enabled. Default: false. |
created_at | string (date-time) | The timestamp when the project was created. |
updated_at | string (date-time) | The timestamp when the project was last updated. |
deleted_at | string (date-time), or null | The timestamp when the project was deleted (if applicable). |
Other responses:
- 422 response (HTTPValidationError object): The HTTP 422 response (Validation Error).
DeleteProject
DELETE /projects/{project_id}
Deletes a specific project.
Request Parameters
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
curl -X DELETE 'https://api.'$OSC_REGION'.oks.outscale.com/api/v2/projects/{project_id}' \
--header 'AccessKey: '$OSC_ACCESS_KEY \
--header 'SecretKey: '$OSC_SECRET_KEY
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
DELETE /api/v2/projects/{project_id} HTTP/1.1
Host: api.eu-west-2.oks.outscale.com
AccessKey: XXXX
SecretKey: YYYY
Path:
Path Parameter | Type | Description |
---|---|---|
project_id (required) | string | The ID of the project. |
Response Elements
{
"ResponseContext": {
"RequestId": "string"
},
"detail": "string"
}
200 response (DetailResponse object):
Response Element | Type | Description |
---|---|---|
ResponseContext | projects__project_schema__ResponseContext object | |
RequestId | string | The ID of the API request. |
detail | string | A detailed message related to the API response. |
Other responses:
- 422 response (HTTPValidationError object): The HTTP 422 response (Validation Error).
GetProjectQuotas
GET /projects/{project_id}/quotas
Gets the quota details for a specific project.
Request Parameters
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
curl -X GET 'https://api.'$OSC_REGION'.oks.outscale.com/api/v2/projects/{project_id}/quotas' \
--header 'AccessKey: '$OSC_ACCESS_KEY \
--header 'SecretKey: '$OSC_SECRET_KEY
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
GET /api/v2/projects/{project_id}/quotas HTTP/1.1
Host: api.eu-west-2.oks.outscale.com
AccessKey: XXXX
SecretKey: YYYY
Path:
Path Parameter | Type | Description |
---|---|---|
project_id (required) | string | The ID of the project. |
Response Elements
{
"ResponseContext": {
"RequestId": "string"
},
"Project": {
"request_id": "string",
"data": {
"quotas": [
{
"ShortDescription": "string",
"QuotaCollection": "string",
"AccountId": "string",
"Description": "string",
"MaxValue": 0,
"UsedValue": 0,
"Name": "string"
}
]
}
}
}
200 response (QuotasResponse object):
Response Element | Type | Description |
---|---|---|
ResponseContext | projects__project_schema__ResponseContext object | |
RequestId | string | The ID of the API request. |
Project | projects__project_schema__RPCResponse object | |
request_id | string | The ID of the API request. |
data | QuotasData object | |
quotas | [Quotas object] | A list of quota details. |
ShortDescription | string | A brief summary of the quota. |
QuotaCollection | string | A category or group to which the quota belongs to. |
AccountId | string | The ID of the account. |
Description | string | A detailed description of the quota. |
MaxValue | integer | The maximum allowed value for the quota. |
UsedValue | integer | The current usage value for the quota. |
Name | string | The name of the quota. |
Other responses:
- 422 response (HTTPValidationError object): The HTTP 422 response (Validation Error).
Templates
GetProjectTemplate
GET /templates/project
Gets the default project template, including the predefined network configurations, Region, and metadata.
Request Parameters
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
curl -X GET 'https://api.'$OSC_REGION'.oks.outscale.com/api/v2/templates/project' \
--header 'AccessKey: '$OSC_ACCESS_KEY \
--header 'SecretKey: '$OSC_SECRET_KEY
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
GET /api/v2/templates/project HTTP/1.1
Host: api.eu-west-2.oks.outscale.com
AccessKey: XXXX
SecretKey: YYYY
Response Elements
{
"ResponseContext": {
"RequestId": "string"
},
"Template": {
"name": "awesome-project",
"description": "string",
"cidr": "string",
"region": "string",
"tags": {
"key": "value"
},
"quirks": [
"string"
],
"disable_api_termination": false
}
}
200 response (TemplateResponse_ProjectInput_ object):
Response Element | Type | Description |
---|---|---|
ResponseContext | templates__template_schema__ResponseContext object | |
RequestId | string | The ID of the API request. |
Template | ProjectInput object | |
name | string | A unique name for the project. Must start with a letter and contain only lowercase letters, numbers, or hyphens. Length: 1 to 40 characters. Pattern: ^[a-z][a-z0-9-]*[a-z0-9]$ .Example: awesome-project . |
description | string | A description for the project. |
cidr | string | The CIDR block to associate with the Net of the project. |
region | string | The Region on which the project is deployed. |
tags | object | The key/value combinations of the tags associated with the resource, in the following format: "tags":{"TAGKEY1":"TAGVALUE1","TAGKEY2":"TAGVALUE2"}. Example: {"key": "value"} . |
quirks | [string], or null | A list of special configurations or behaviors for the project. |
disable_api_termination | boolean | If true, project deletion through the API is disabled. If false, it is enabled. Default: false. |
Other responses:
- 422 response (HTTPValidationError object): The HTTP 422 response (Validation Error).
GetClusterTemplate
GET /templates/cluster
Gets the default cluster template, including the predefined control plane configurations, networking settings, and maintenance schedules.
Request Parameters
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
curl -X GET 'https://api.'$OSC_REGION'.oks.outscale.com/api/v2/templates/cluster' \
--header 'AccessKey: '$OSC_ACCESS_KEY \
--header 'SecretKey: '$OSC_SECRET_KEY
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
GET /api/v2/templates/cluster HTTP/1.1
Host: api.eu-west-2.oks.outscale.com
AccessKey: XXXX
SecretKey: YYYY
Response Elements
{
"ResponseContext": {
"RequestId": "string"
},
"Template": {
"name": "awesome-cluster",
"project_id": "string",
"description": "string",
"cp_subregions": [
"2a"
],
"version": "1.30",
"admin_lbu": false,
"admission_flags": {
"disable_admission_plugins": [],
"enable_admission_plugins": []
},
"cidr_pods": "10.91.0.0/16",
"cidr_service": "10.92.0.0/16",
"cluster_dns": "10.92.0.10",
"tags": {
"key": "value"
},
"auto_maintenances": {
"minor_upgrade_maintenance": {
"enabled": true,
"duration_hours": 0,
"start_hour": 12,
"week_day": "Mon",
"tz": "UTC"
},
"patch_upgrade_maintenance": {
"enabled": true,
"duration_hours": 0,
"start_hour": 12,
"week_day": "Mon",
"tz": "UTC"
}
},
"control_planes": "cp.3.masters.small",
"admin_whitelist": [
"string"
],
"quirks": [
"string"
],
"disable_api_termination": false
}
}
200 response (TemplateResponse_ClusterInput_ object):
Response Element | Type | Description |
---|---|---|
ResponseContext | templates__template_schema__ResponseContext object | |
RequestId | string | The ID of the API request. |
Template | ClusterInput-Output object | |
name | string | A unique cluster name per project. Must start with a letter and contain only lowercase letters, numbers, or hyphens. Length: 1 to 40 characters. Pattern: ^[a-z][a-z0-9-]*[a-z0-9]$ .Example: awesome-cluster . |
project_id | string | The ID of the project to which this cluster belongs to. |
description | string, or null | The description of the cluster. |
cp_subregions | [string] | A list of Subregions where control plane components are deployed. Default: ["2a"] . |
version | string | The Kubernetes version deployed for the cluster. For more information, see GetKubernetesVersions. Default: 1.30 . |
admin_lbu | boolean | If true, the admin load balancer for cluster management is enabled. Default: false. |
admission_flags | AdmissionFlagsInput object | |
disable_admission_plugins | [string] | The list of Kubernetes admission plugins to disable. Default: [] . |
enable_admission_plugins | [string] | The list of Kubernetes admission plugins to enable. Default: [] . |
cidr_pods | string | The CIDR block of the Kubernetes pods' network. Example: 10.91.0.0/16 . |
cidr_service | string | The CIDR block of the Kubernetes pods' network. Example: 10.92.0.0/16 . |
cluster_dns | string | The IP address for the cluster DNS service. Example: 10.92.0.10 . |
tags | object | The key/value combinations of the tags associated with the cluster's metadata, in the following format: "tags":{"TAGKEY1":"TAGVALUE1","TAGKEY2":"TAGVALUE2"}. Example: {"key": "value"} . |
additional properties | string | Additional information about tags. |
auto_maintenances | AutoMaintenances object | |
minor_upgrade_maintenance | MaintenanceWindow object | |
enabled | boolean | If true, a maintenance window is enabled. Default: true. |
duration_hours | integer | The duration of the maintenance window, in hours. Maximum value: 23 . Default: 0 . |
start_hour | integer | The starting time of the maintenance window, in hours. Maximum value: 23 . Default: 12 . |
week_day | string | The weekday on which the maintenance window begins. Possible values: Mon | Tue | Wed | Thu | Fri | Sat | Sun | string . Default: Tue . |
tz | string | The timezone for the maintenance window. Default: UTC . |
patch_upgrade_maintenance | MaintenanceWindow object | |
enabled | boolean | If true, a maintenance window is enabled. Default: true. |
duration_hours | integer | The duration of the maintenance window, in hours. Maximum value: 23 . Default: 0 . |
start_hour | integer | The starting time of the maintenance window, in hours. Maximum value: 23 . Default: 12 . |
week_day | string | The weekday on which the maintenance window begins. Possible values: Mon | Tue | Wed | Thu | Fri | Sat | Sun | string . Default: Tue . |
tz | string | The timezone for the maintenance window. Default: UTC . |
control_planes | string | The control plane type of the cluster. Default: cp.3.masters.small . |
admin_whitelist | [string] | The list of CIDR blocks or IP addresses allowed to access the cluster via the Kubernetes API. |
quirks | [string], or null | A list of special configurations or behaviors for the cluster. |
disable_api_termination | boolean | If true, cluster deletion through the API is disabled. If false, it is enabled. Default: false. |
Other responses:
- 422 response (HTTPValidationError object): The HTTP 422 response (Validation Error).
GetNodepoolTemplate
GET /templates/nodepool
Gets the default node pool template, including the predefined configurations for node scaling, storage, and upgrade strategies.
Request Parameters
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
curl -X GET 'https://api.'$OSC_REGION'.oks.outscale.com/api/v2/templates/nodepool' \
--header 'AccessKey: '$OSC_ACCESS_KEY \
--header 'SecretKey: '$OSC_SECRET_KEY
# Example with access key/secret key authentication
# (See the "Authentication Schemes" section for other authentications)
GET /api/v2/templates/nodepool HTTP/1.1
Host: api.eu-west-2.oks.outscale.com
AccessKey: XXXX
SecretKey: YYYY
Response Elements
{
"ResponseContext": {
"RequestId": "string"
},
"Template": {
"apiVersion": "string",
"kind": "string",
"metadata": {
"name": "string"
},
"spec": {
"desiredNodes": "string",
"nodeType": "string",
"zones": [
"string"
],
"volumes": [
{
"device": "string",
"type": "string",
"size": 0,
"dir": "string"
}
],
"upgradeStrategy": {
"maxUnavailable": 0,
"maxSurge": 0,
"autoUpgradeEnabled": true,
"autoUpgradeMaintenance": {
"durationHours": 0,
"startHour": 23,
"weekDay": "Mon"
}
},
"autoHealing": true
}
}
}
200 response (TemplateResponse_Nodepool_ object):
Response Element | Type | Description |
---|---|---|
ResponseContext | templates__template_schema__ResponseContext object | |
RequestId | string | The ID of the API request. |
Template | Nodepool object | |
apiVersion | string | The node pool API version in use. |
kind | string | The resource type, always Nodepool for node pool resources. |
metadata | Metadata object | |
name | string | An ID for the node pool. |
spec | Spec object | |
desiredNodes | string | The number of desired nodes in the node pool. |
nodeType | string | The type of VM for the nodes. |
zones | [string] | A list of Subregions where nodes should be deployed. |
volumes | [Volume object] | A list of volume configurations for the nodes. |
device | string | The device name for the volume. |
type | string | The type of the volume (gp2, io1, standard). |
size | integer | The size of the volume. |
dir | string | The mount point directory path for the volume. |
upgradeStrategy | UpgradeStrategy object | |
maxUnavailable | integer | The maximum number of nodes that can be unavailable during an upgrade. |
maxSurge | integer | The maximum number of extra nodes that can be created during an upgrade. |
autoUpgradeEnabled | boolean | If true, automatic upgrades for the node pool are enabled. |
autoUpgradeMaintenance | AutoUpgradeMaintenance object | |
durationHours | integer | The duration of the maintenance window, in hours. |
startHour | integer | The starting time of the maintenance window, in hours. Maximum value: 23 . |
weekDay | string | The weekday on which the maintenance window begins. Possible values: Mon | Tue | Wed | Thu | Fri | Sat | Sun . |
autoHealing | boolean | If true, the automatic healing of failed nodes is enabled. |
Other responses:
- 422 response (HTTPValidationError object): The HTTP 422 response (Validation Error).
Schemas
AdmissionFlags
Property | Type | Description |
---|---|---|
disable_admission_plugins | [string] | The list of Kubernetes admission plugins that are disabled. Default: [] . |
enable_admission_plugins | [string] | The list of Kubernetes admission plugins that are enabled. Default: [] . |
applied_admission_plugins | [string] | The list of admission plugins that are currently applied to the cluster. Default: ["CertificateApproval", "CertificateSigning", "CertificateSubjectRestriction", "ClusterTrustBundleAttest", "DefaultIngressClass", "DefaultStorageClass", "DefaultTolerationSeconds", "LimitRanger", "MutatingAdmissionWebhook", "NamespaceLifecycle", "PersistentVolumeClaimResize", "PodSecurity", "Priority", "ResourceQuota", "RuntimeClass", "ServiceAccount", "StorageObjectInUseProtection", "TaintNodesByCondition", "ValidatingAdmissionPolicy", "ValidatingAdmissionWebhook"] . |
Schema
{
"disable_admission_plugins": [],
"enable_admission_plugins": [],
"applied_admission_plugins": [
"CertificateApproval",
"CertificateSigning",
"CertificateSubjectRestriction",
"ClusterTrustBundleAttest",
"DefaultIngressClass",
"DefaultStorageClass",
"DefaultTolerationSeconds",
"LimitRanger",
"MutatingAdmissionWebhook",
"NamespaceLifecycle",
"PersistentVolumeClaimResize",
"PodSecurity",
"Priority",
"ResourceQuota",
"RuntimeClass",
"ServiceAccount",
"StorageObjectInUseProtection",
"TaintNodesByCondition",
"ValidatingAdmissionPolicy",
"ValidatingAdmissionWebhook"
]
}
AdmissionFlagsInput
Property | Type | Description |
---|---|---|
disable_admission_plugins | [string] | The list of Kubernetes admission plugins to disable. Default: [] . |
enable_admission_plugins | [string] | The list of Kubernetes admission plugins to enable. Default: [] . |
Schema
{
"disable_admission_plugins": [],
"enable_admission_plugins": []
}
AutoMaintenances
Property | Type | Description |
---|---|---|
minor_upgrade_maintenance | MaintenanceWindow object | |
patch_upgrade_maintenance | MaintenanceWindow object |
Schema
{
"minor_upgrade_maintenance": {
"enabled": true,
"duration_hours": 0,
"start_hour": 12,
"week_day": "Mon",
"tz": "UTC"
},
"patch_upgrade_maintenance": {
"enabled": true,
"duration_hours": 0,
"start_hour": 12,
"week_day": "Mon",
"tz": "UTC"
}
}
AutoUpgradeMaintenance
Property | Type | Description |
---|---|---|
durationHours | integer | The duration of the maintenance window, in hours. |
startHour | integer | The starting time of the maintenance window, in hours. Maximum value: 23 . |
weekDay | string | The weekday on which the maintenance window begins. Possible values: Mon | Tue | Wed | Thu | Fri | Sat | Sun . |
Schema
{
"durationHours": 0,
"startHour": 23,
"weekDay": "Mon"
}
CPSubregionsResponse
Property | Type | Description |
---|---|---|
ResponseContext | clusters__cluster_schema__ResponseContext object | |
CPSubregions | [string] | The list of Subregions where you can deploy control planes for your clusters. |
Schema
{
"ResponseContext": {
"RequestId": "string"
},
"CPSubregions": [
"string"
]
}
Cluster
Property | Type | Description |
---|---|---|
project_id | string | The ID of the project this cluster belongs to. |
id | string | The Universally Unique Identifier (UUID) of the cluster. |
name | string | A unique name for the cluster within the project. |
description | string, or null | An optional description of the cluster. |
cp_subregions | [string] | The Subregions on which the control plane components are deployed. |
version | string | The Kubernetes version deployed for the cluster. For more information, see GetKubernetesVersions. |
cni | string | The Container Network Interface (CNI) used in the cluster. |
admin_lbu | boolean | If true, load balancer administration is enabled for cluster management. If false, it is disabled. |
admission_flags | AdmissionFlags object | |
cidr_pods | string, or null | The CIDR block of the Kubernetes pods' network. |
cidr_service | string, or null | The CIDR block of the Kubernetes services' network. |
cluster_dns | string, or null | The IP address of the cluster's DNS service. |
tags | object | The key/value combinations of the tags associated with the cluster, in the following format: "tags":{"TAGKEY1":"TAGVALUE1","TAGKEY2":"TAGVALUE2"}. Example: {"key": "value"} . |
additional properties | string | Additional information about tags. |
auto_maintenances | AutoMaintenances object | |
control_planes | string | The control plane sizing of the cluster. |
admin_whitelist | [string] | The list of CIDR blocks or IP addresses allowed to access the cluster via the Kubernetes API. |
statuses | Statuses object | |
disable_api_termination | boolean | If true, cluster deletion through the API is disabled. If false, it is enabled. Default: false. |
Schema
{
"project_id": "string",
"id": "string",
"name": "string",
"description": "string",
"cp_subregions": [
"string"
],
"version": "string",
"cni": "string",
"admin_lbu": true,
"admission_flags": {
"disable_admission_plugins": [],
"enable_admission_plugins": [],
"applied_admission_plugins": [
"CertificateApproval",
"CertificateSigning",
"CertificateSubjectRestriction",
"ClusterTrustBundleAttest",
"DefaultIngressClass",
"DefaultStorageClass",
"DefaultTolerationSeconds",
"LimitRanger",
"MutatingAdmissionWebhook",
"NamespaceLifecycle",
"PersistentVolumeClaimResize",
"PodSecurity",
"Priority",
"ResourceQuota",
"RuntimeClass",
"ServiceAccount",
"StorageObjectInUseProtection",
"TaintNodesByCondition",
"ValidatingAdmissionPolicy",
"ValidatingAdmissionWebhook"
]
},
"cidr_pods": "string",
"cidr_service": "string",
"cluster_dns": "string",
"tags": {
"key": "value"
},
"auto_maintenances": {
"minor_upgrade_maintenance": {
"enabled": true,
"duration_hours": 0,
"start_hour": 12,
"week_day": "Mon",
"tz": "UTC"
},
"patch_upgrade_maintenance": {
"enabled": true,
"duration_hours": 0,
"start_hour": 12,
"week_day": "Mon",
"tz": "UTC"
}
},
"control_planes": "string",
"admin_whitelist": [
"string"
],
"statuses": {
"created_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"status": "string",
"available_upgrade": ""
},
"disable_api_termination": false
}
ClusterInput-Input
Property | Type | Description |
---|---|---|
name | string | A unique name for the cluster within the project. Length: 1 to 40 characters. Pattern: ^[a-z][a-z0-9-]*[a-z0-9]$ .Example: awesome-cluster . |
project_id | string | The ID of the project in which you want to create a cluster. |
description | string, or null | A description of the cluster. |
cp_subregions | [string] | The list of Subregions where control plane components are deployed. Default: ["2a"] . |
version | string | The Kubernetes version to be deployed for the cluster. For more information, see GetKubernetesVersions. Default: 1.30 . |
admin_lbu | boolean | If true, load balancer administration is enabled for cluster management. If false, it is disabled. Default: false. |
admission_flags | AdmissionFlagsInput object | |
cidr_pods | string | The CIDR block for Kubernetes pods' network. Example: 10.91.0.0/16 . |
cidr_service | string | The CIDR block for the Kubernetes services' network. Example: 10.92.0.0/16 . |
cluster_dns | string | The IP address for the cluster's DNS service. Example: 10.92.0.10 . |
tags | object | The key/value combinations of the tags associated with the cluster's metadata, in the following format: "tags":{"TAGKEY1":"TAGVALUE1","TAGKEY2":"TAGVALUE2"}. Example: {"key": "value"} . |
additional properties | string | Additional information about tags. |
auto_maintenances | AutoMaintenances object | |
control_planes | string | The size of control plane deployment for the cluster. For more information, see About OKS > Control Planes. Default: cp.3.masters.small . |
admin_whitelist | [string] | The list of CIDR blocks or IP addresses allowed to access the cluster via the Kubernetes API. |
quirks | [string], or null | The list of special configurations or behaviors for the cluster. |
disable_api_termination | boolean | If true, cluster deletion through the API is disabled. If false, it is enabled. Default: false. |
Schema
{
"name": "awesome-cluster",
"project_id": "string",
"description": "string",
"cp_subregions": [
"2a"
],
"version": "1.30",
"admin_lbu": false,
"admission_flags": {
"disable_admission_plugins": [],
"enable_admission_plugins": []
},
"cidr_pods": "10.91.0.0/16",
"cidr_service": "10.92.0.0/16",
"cluster_dns": "10.92.0.10",
"tags": {
"key": "value"
},
"auto_maintenances": {
"minor_upgrade_maintenance": {
"enabled": true,
"duration_hours": 0,
"start_hour": 12,
"week_day": "Mon",
"tz": "UTC"
},
"patch_upgrade_maintenance": {
"enabled": true,
"duration_hours": 0,
"start_hour": 12,
"week_day": "Mon",
"tz": "UTC"
}
},
"control_planes": "cp.3.masters.small",
"admin_whitelist": [
"string"
],
"quirks": [
"string"
],
"disable_api_termination": false
}
ClusterInput-Output
Property | Type | Description |
---|---|---|
name | string | A unique cluster name per project. Must start with a letter and contain only lowercase letters, numbers, or hyphens. Length: 1 to 40 characters. Pattern: ^[a-z][a-z0-9-]*[a-z0-9]$ .Example: awesome-cluster . |
project_id | string | The ID of the project to which this cluster belongs to. |
description | string, or null | The description of the cluster. |
cp_subregions | [string] | A list of Subregions where control plane components are deployed. Default: ["2a"] . |
version | string | The Kubernetes version deployed for the cluster. For more information, see GetKubernetesVersions. Default: 1.30 . |
admin_lbu | boolean | If true, the admin load balancer for cluster management is enabled. Default: false. |
admission_flags | AdmissionFlagsInput object | |
cidr_pods | string | The CIDR block of the Kubernetes pods' network. Example: 10.91.0.0/16 . |
cidr_service | string | The CIDR block of the Kubernetes pods' network. Example: 10.92.0.0/16 . |
cluster_dns | string | The IP address for the cluster DNS service. Example: 10.92.0.10 . |
tags | object | The key/value combinations of the tags associated with the cluster's metadata, in the following format: "tags":{"TAGKEY1":"TAGVALUE1","TAGKEY2":"TAGVALUE2"}. Example: {"key": "value"} . |
additional properties | string | Additional information about tags. |
auto_maintenances | AutoMaintenances object | |
control_planes | string | The control plane type of the cluster. Default: cp.3.masters.small . |
admin_whitelist | [string] | The list of CIDR blocks or IP addresses allowed to access the cluster via the Kubernetes API. |
quirks | [string], or null | A list of special configurations or behaviors for the cluster. |
disable_api_termination | boolean | If true, cluster deletion through the API is disabled. If false, it is enabled. Default: false. |
Schema
{
"name": "awesome-cluster",
"project_id": "string",
"description": "string",
"cp_subregions": [
"2a"
],
"version": "1.30",
"admin_lbu": false,
"admission_flags": {
"disable_admission_plugins": [],
"enable_admission_plugins": []
},
"cidr_pods": "10.91.0.0/16",
"cidr_service": "10.92.0.0/16",
"cluster_dns": "10.92.0.10",
"tags": {
"key": "value"
},
"auto_maintenances": {
"minor_upgrade_maintenance": {
"enabled": true,
"duration_hours": 0,
"start_hour": 12,
"week_day": "Mon",
"tz": "UTC"
},
"patch_upgrade_maintenance": {
"enabled": true,
"duration_hours": 0,
"start_hour": 12,
"week_day": "Mon",
"tz": "UTC"
}
},
"control_planes": "cp.3.masters.small",
"admin_whitelist": [
"string"
],
"quirks": [
"string"
],
"disable_api_termination": false
}
ClusterResponse
Property | Type | Description |
---|---|---|
ResponseContext | clusters__cluster_schema__ResponseContext object | |
Cluster | Cluster object |
Schema
{
"ResponseContext": {
"RequestId": "string"
},
"Cluster": {
"project_id": "string",
"id": "string",
"name": "string",
"description": "string",
"cp_subregions": [
"string"
],
"version": "string",
"cni": "string",
"admin_lbu": true,
"admission_flags": {
"disable_admission_plugins": [],
"enable_admission_plugins": [],
"applied_admission_plugins": [
"CertificateApproval",
"CertificateSigning",
"CertificateSubjectRestriction",
"ClusterTrustBundleAttest",
"DefaultIngressClass",
"DefaultStorageClass",
"DefaultTolerationSeconds",
"LimitRanger",
"MutatingAdmissionWebhook",
"NamespaceLifecycle",
"PersistentVolumeClaimResize",
"PodSecurity",
"Priority",
"ResourceQuota",
"RuntimeClass",
"ServiceAccount",
"StorageObjectInUseProtection",
"TaintNodesByCondition",
"ValidatingAdmissionPolicy",
"ValidatingAdmissionWebhook"
]
},
"cidr_pods": "string",
"cidr_service": "string",
"cluster_dns": "string",
"tags": {
"key": "value"
},
"auto_maintenances": {
"minor_upgrade_maintenance": {
"enabled": true,
"duration_hours": 0,
"start_hour": 12,
"week_day": "Mon",
"tz": "UTC"
},
"patch_upgrade_maintenance": {
"enabled": true,
"duration_hours": 0,
"start_hour": 12,
"week_day": "Mon",
"tz": "UTC"
}
},
"control_planes": "string",
"admin_whitelist": [
"string"
],
"statuses": {
"created_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"status": "string",
"available_upgrade": ""
},
"disable_api_termination": false
}
}
ClusterResponseList
Property | Type | Description |
---|---|---|
ResponseContext | clusters__cluster_schema__ResponseContext object | |
Clusters | [Cluster object] |
Schema
{
"ResponseContext": {
"RequestId": "string"
},
"Clusters": [
{
"project_id": "string",
"id": "string",
"name": "string",
"description": "string",
"cp_subregions": [
"string"
],
"version": "string",
"cni": "string",
"admin_lbu": true,
"admission_flags": {
"disable_admission_plugins": [],
"enable_admission_plugins": [],
"applied_admission_plugins": [
"CertificateApproval",
"CertificateSigning",
"CertificateSubjectRestriction",
"ClusterTrustBundleAttest",
"DefaultIngressClass",
"DefaultStorageClass",
"DefaultTolerationSeconds",
"LimitRanger",
"MutatingAdmissionWebhook",
"NamespaceLifecycle",
"PersistentVolumeClaimResize",
"PodSecurity",
"Priority",
"ResourceQuota",
"RuntimeClass",
"ServiceAccount",
"StorageObjectInUseProtection",
"TaintNodesByCondition",
"ValidatingAdmissionPolicy",
"ValidatingAdmissionWebhook"
]
},
"cidr_pods": "string",
"cidr_service": "string",
"cluster_dns": "string",
"tags": {
"key": "value"
},
"auto_maintenances": {
"minor_upgrade_maintenance": {
"enabled": true,
"duration_hours": 0,
"start_hour": 12,
"week_day": "Mon",
"tz": "UTC"
},
"patch_upgrade_maintenance": {
"enabled": true,
"duration_hours": 0,
"start_hour": 12,
"week_day": "Mon",
"tz": "UTC"
}
},
"control_planes": "string",
"admin_whitelist": [
"string"
],
"statuses": {
"created_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"status": "string",
"available_upgrade": ""
},
"disable_api_termination": false
}
]
}
ClusterUpdate
Property | Type | Description |
---|---|---|
description | string, or null | The updated description of the cluster. |
admission_flags | AdmissionFlagsInput object | |
tags | object, or null | The updated key/value combinations of the tags associated with the cluster's metadata, in the following format: "tags":{"TAGKEY1":"TAGVALUE1","TAGKEY2":"TAGVALUE2"}. |
additional properties | string | Additional information about tags. |
auto_maintenances | AutoMaintenances object | |
admin_whitelist | [string], or null | The updated list of CIDR blocks or IP addresses allowed to access the cluster via the Kubernetes API. |
quirks | [string], or null | The updated list of special configurations or behaviors for the cluster. |
disable_api_termination | boolean, or null | If true, cluster deletion through the API is disabled. If false, it is enabled. |
version | string, or null | The updated version of Kubernetes for the cluster. For more information, see GetKubernetesVersions. |
Schema
{
"description": "string",
"admission_flags": {
"disable_admission_plugins": [],
"enable_admission_plugins": []
},
"tags": {
"property1": "string",
"property2": "string"
},
"auto_maintenances": {
"minor_upgrade_maintenance": {
"enabled": true,
"duration_hours": 0,
"start_hour": 12,
"week_day": "Mon",
"tz": "UTC"
},
"patch_upgrade_maintenance": {
"enabled": true,
"duration_hours": 0,
"start_hour": 12,
"week_day": "Mon",
"tz": "UTC"
}
},
"admin_whitelist": [
"string"
],
"quirks": [
"string"
],
"disable_api_termination": true,
"version": "string"
}
ControlPlanesResponse
Property | Type | Description |
---|---|---|
ResponseContext | clusters__cluster_schema__ResponseContext object | |
ControlPlanes | [string] | The list of available control plane types. |
Schema
{
"ResponseContext": {
"RequestId": "string"
},
"ControlPlanes": [
"string"
]
}
DetailResponse
Property | Type | Description |
---|---|---|
ResponseContext | projects__project_schema__ResponseContext object | |
detail | string | A detailed message related to the API response. |
Schema
{
"ResponseContext": {
"RequestId": "string"
},
"detail": "string"
}
HTTPValidationError
Property | Type | Description |
---|---|---|
detail | [ValidationError object] |
Schema
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}
KubeconfigData
Property | Type | Description |
---|---|---|
name | string | The name of the cluster. |
kubeconfig | string | A file containing access configuration to the cluster. |
Schema
{
"name": "string",
"kubeconfig": "string"
}
KubeconfigResponse
Property | Type | Description |
---|---|---|
ResponseContext | clusters__cluster_schema__ResponseContext object | |
Cluster | clusters__cluster_schema__RPCResponse object |
Schema
{
"ResponseContext": {
"RequestId": "string"
},
"Cluster": {
"request_id": "string",
"data": {
"name": "string",
"kubeconfig": "string"
}
}
}
KubernetesVersionsResponse
Property | Type | Description |
---|---|---|
ResponseContext | clusters__cluster_schema__ResponseContext object | |
Versions | [string] | A list of available Kubernetes versions. |
Schema
{
"ResponseContext": {
"RequestId": "string"
},
"Versions": [
"string"
]
}
MaintenanceWindow
Property | Type | Description |
---|---|---|
enabled | boolean | If true, a maintenance window is enabled. Default: true. |
duration_hours | integer | The duration of the maintenance window, in hours. Maximum value: 23 . Default: 0 . |
start_hour | integer | The starting time of the maintenance window, in hours. Maximum value: 23 . Default: 12 . |
week_day | string | The weekday on which the maintenance window begins. Possible values: Mon | Tue | Wed | Thu | Fri | Sat | Sun | string . Default: Tue . |
tz | string | The timezone for the maintenance window. Default: UTC . |
Schema
{
"enabled": true,
"duration_hours": 0,
"start_hour": 12,
"week_day": "Mon",
"tz": "UTC"
}
Metadata
Property | Type | Description |
---|---|---|
name | string | An ID for the node pool. |
Schema
{
"name": "string"
}
Nodepool
Property | Type | Description |
---|---|---|
apiVersion | string | The node pool API version in use. |
kind | string | The resource type, always Nodepool for node pool resources. |
metadata | Metadata object | |
spec | Spec object |
Schema
{
"apiVersion": "string",
"kind": "string",
"metadata": {
"name": "string"
},
"spec": {
"desiredNodes": "string",
"nodeType": "string",
"zones": [
"string"
],
"volumes": [
{
"device": "string",
"type": "string",
"size": 0,
"dir": "string"
}
],
"upgradeStrategy": {
"maxUnavailable": 0,
"maxSurge": 0,
"autoUpgradeEnabled": true,
"autoUpgradeMaintenance": {
"durationHours": 0,
"startHour": 23,
"weekDay": "Mon"
}
},
"autoHealing": true
}
}
Project
Property | Type | Description |
---|---|---|
id | string | The ID of the project. |
name | string | The name of the project. |
description | string, or null | A description for the project. |
cidr | string | The CIDR block associated with the Net of the project. |
region | string | The Region on which the project is deployed. |
status | string | The status of the project. |
tags | object | The key/value combinations of the tags associated with the resource, in the following format: "tags":{"TAGKEY1":"TAGVALUE1","TAGKEY2":"TAGVALUE2"}. |
additional properties | string | Additional information about tags. |
disable_api_termination | boolean | If true, project deletion through the API is disabled. If false, it is enabled. Default: false. |
created_at | string (date-time) | The timestamp when the project was created. |
updated_at | string (date-time) | The timestamp when the project was last updated. |
deleted_at | string (date-time), or null | The timestamp when the project was deleted (if applicable). |
Schema
{
"id": "string",
"name": "string",
"description": "string",
"cidr": "string",
"region": "string",
"status": "string",
"tags": {
"property1": "string",
"property2": "string"
},
"disable_api_termination": false,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z"
}
ProjectInput
Property | Type | Description |
---|---|---|
name | string | A unique name for the project. Must start with a letter and contain only lowercase letters, numbers, or hyphens. Length: 1 to 40 characters. Pattern: ^[a-z][a-z0-9-]*[a-z0-9]$ .Example: awesome-project . |
description | string | A description for the project. |
cidr | string | The CIDR block to associate with the Net of the project. |
region | string | The Region on which the project is deployed. |
tags | object | The key/value combinations of the tags associated with the resource, in the following format: "tags":{"TAGKEY1":"TAGVALUE1","TAGKEY2":"TAGVALUE2"}. Example: {"key": "value"} . |
quirks | [string], or null | A list of special configurations or behaviors for the project. |
disable_api_termination | boolean | If true, project deletion through the API is disabled. If false, it is enabled. Default: false. |
Schema
{
"name": "awesome-project",
"description": "string",
"cidr": "string",
"region": "string",
"tags": {
"key": "value"
},
"quirks": [
"string"
],
"disable_api_termination": false
}
ProjectResponse
Property | Type | Description |
---|---|---|
ResponseContext | projects__project_schema__ResponseContext object | |
Project | Project object |
Schema
{
"ResponseContext": {
"RequestId": "string"
},
"Project": {
"id": "string",
"name": "string",
"description": "string",
"cidr": "string",
"region": "string",
"status": "string",
"tags": {
"property1": "string",
"property2": "string"
},
"disable_api_termination": false,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z"
}
}
ProjectResponseList
Property | Type | Description |
---|---|---|
ResponseContext | projects__project_schema__ResponseContext object | |
Projects | [Project object] | The list of retrieved projects. |
Schema
{
"ResponseContext": {
"RequestId": "string"
},
"Projects": [
{
"id": "string",
"name": "string",
"description": "string",
"cidr": "string",
"region": "string",
"status": "string",
"tags": {
"property1": "string",
"property2": "string"
},
"disable_api_termination": false,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z"
}
]
}
ProjectUpdate
Property | Type | Description |
---|---|---|
description | string, or null | The updated description for the project. |
tags | object, or null | The updated key/value combinations of the tags associated with the project’s metadata, in the following format: "tags":{"TAGKEY1":"TAGVALUE1","TAGKEY2":"TAGVALUE2"}. Example: {"key": "value"} . |
additional properties | string | Additional information about tags. |
quirks | [string], or null | The updated list of special configurations or behaviors for the project. |
disable_api_termination | boolean, or null | If true, project deletion through the API is disabled. If false, it is enabled. |
Schema
{
"description": "string",
"tags": {
"key": "value"
},
"quirks": [
"string"
],
"disable_api_termination": true
}
Quotas
Property | Type | Description |
---|---|---|
ShortDescription | string | A brief summary of the quota. |
QuotaCollection | string | A category or group to which the quota belongs to. |
AccountId | string | The ID of the account. |
Description | string | A detailed description of the quota. |
MaxValue | integer | The maximum allowed value for the quota. |
UsedValue | integer | The current usage value for the quota. |
Name | string | The name of the quota. |
Schema
{
"ShortDescription": "string",
"QuotaCollection": "string",
"AccountId": "string",
"Description": "string",
"MaxValue": 0,
"UsedValue": 0,
"Name": "string"
}
QuotasData
Property | Type | Description |
---|---|---|
quotas | [Quotas object] | A list of quota details. |
Schema
{
"quotas": [
{
"ShortDescription": "string",
"QuotaCollection": "string",
"AccountId": "string",
"Description": "string",
"MaxValue": 0,
"UsedValue": 0,
"Name": "string"
}
]
}
QuotasResponse
Property | Type | Description |
---|---|---|
ResponseContext | projects__project_schema__ResponseContext object | |
Project | projects__project_schema__RPCResponse object |
Schema
{
"ResponseContext": {
"RequestId": "string"
},
"Project": {
"request_id": "string",
"data": {
"quotas": [
{
"ShortDescription": "string",
"QuotaCollection": "string",
"AccountId": "string",
"Description": "string",
"MaxValue": 0,
"UsedValue": 0,
"Name": "string"
}
]
}
}
}
Spec
Property | Type | Description |
---|---|---|
desiredNodes | string | The number of desired nodes in the node pool. |
nodeType | string | The type of VM for the nodes. |
zones | [string] | A list of Subregions where nodes should be deployed. |
volumes | [Volume object] | A list of volume configurations for the nodes. |
upgradeStrategy | UpgradeStrategy object | |
autoHealing | boolean | If true, the automatic healing of failed nodes is enabled. |
Schema
{
"desiredNodes": "string",
"nodeType": "string",
"zones": [
"string"
],
"volumes": [
{
"device": "string",
"type": "string",
"size": 0,
"dir": "string"
}
],
"upgradeStrategy": {
"maxUnavailable": 0,
"maxSurge": 0,
"autoUpgradeEnabled": true,
"autoUpgradeMaintenance": {
"durationHours": 0,
"startHour": 23,
"weekDay": "Mon"
}
},
"autoHealing": true
}
Statuses
Property | Type | Description |
---|---|---|
created_at | string (date-time) | The timestamp when the cluster was created. |
deleted_at | string (date-time), or null | The timestamp when the cluster was deleted (if applicable). |
updated_at | string (date-time), or null | The timestamp when the cluster was last updated. |
status | string, or null | The status of the cluster. |
available_upgrade | string | Any available version of Kubernetes for upgrade (if applicable). For more information, see GetKubernetesVersions. Default: . |
Schema
{
"created_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"status": "string",
"available_upgrade": ""
}
TemplateResponse_ClusterInput_
Property | Type | Description |
---|---|---|
ResponseContext | templates__template_schema__ResponseContext object | |
Template | ClusterInput-Output object |
Schema
{
"ResponseContext": {
"RequestId": "string"
},
"Template": {
"name": "awesome-cluster",
"project_id": "string",
"description": "string",
"cp_subregions": [
"2a"
],
"version": "1.30",
"admin_lbu": false,
"admission_flags": {
"disable_admission_plugins": [],
"enable_admission_plugins": []
},
"cidr_pods": "10.91.0.0/16",
"cidr_service": "10.92.0.0/16",
"cluster_dns": "10.92.0.10",
"tags": {
"key": "value"
},
"auto_maintenances": {
"minor_upgrade_maintenance": {
"enabled": true,
"duration_hours": 0,
"start_hour": 12,
"week_day": "Mon",
"tz": "UTC"
},
"patch_upgrade_maintenance": {
"enabled": true,
"duration_hours": 0,
"start_hour": 12,
"week_day": "Mon",
"tz": "UTC"
}
},
"control_planes": "cp.3.masters.small",
"admin_whitelist": [
"string"
],
"quirks": [
"string"
],
"disable_api_termination": false
}
}
TemplateResponse_Nodepool_
Property | Type | Description |
---|---|---|
ResponseContext | templates__template_schema__ResponseContext object | |
Template | Nodepool object |
Schema
{
"ResponseContext": {
"RequestId": "string"
},
"Template": {
"apiVersion": "string",
"kind": "string",
"metadata": {
"name": "string"
},
"spec": {
"desiredNodes": "string",
"nodeType": "string",
"zones": [
"string"
],
"volumes": [
{
"device": "string",
"type": "string",
"size": 0,
"dir": "string"
}
],
"upgradeStrategy": {
"maxUnavailable": 0,
"maxSurge": 0,
"autoUpgradeEnabled": true,
"autoUpgradeMaintenance": {
"durationHours": 0,
"startHour": 23,
"weekDay": "Mon"
}
},
"autoHealing": true
}
}
}
TemplateResponse_ProjectInput_
Property | Type | Description |
---|---|---|
ResponseContext | templates__template_schema__ResponseContext object | |
Template | ProjectInput object |
Schema
{
"ResponseContext": {
"RequestId": "string"
},
"Template": {
"name": "awesome-project",
"description": "string",
"cidr": "string",
"region": "string",
"tags": {
"key": "value"
},
"quirks": [
"string"
],
"disable_api_termination": false
}
}
UpgradeStrategy
Property | Type | Description |
---|---|---|
maxUnavailable | integer | The maximum number of nodes that can be unavailable during an upgrade. |
maxSurge | integer | The maximum number of extra nodes that can be created during an upgrade. |
autoUpgradeEnabled | boolean | If true, automatic upgrades for the node pool are enabled. |
autoUpgradeMaintenance | AutoUpgradeMaintenance object |
Schema
{
"maxUnavailable": 0,
"maxSurge": 0,
"autoUpgradeEnabled": true,
"autoUpgradeMaintenance": {
"durationHours": 0,
"startHour": 23,
"weekDay": "Mon"
}
}
ValidationError
Property | Type | Description |
---|---|---|
loc | [anyOf undefined] | |
msg | string | |
type | string |
Schema
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
Volume
Property | Type | Description |
---|---|---|
device | string | The device name for the volume. |
type | string | The type of the volume (gp2, io1, standard). |
size | integer | The size of the volume. |
dir | string | The mount point directory path for the volume. |
Schema
{
"device": "string",
"type": "string",
"size": 0,
"dir": "string"
}
clusters__cluster_schema__RPCResponse
Property | Type | Description |
---|---|---|
request_id | string | The ID of the API request. |
data | KubeconfigData object |
Schema
{
"request_id": "string",
"data": {
"name": "string",
"kubeconfig": "string"
}
}
clusters__cluster_schema__ResponseContext
Property | Type | Description |
---|---|---|
RequestId | string | The ID of the API request. |
Schema
{
"RequestId": "string"
}
projects__project_schema__RPCResponse
Property | Type | Description |
---|---|---|
request_id | string | The ID of the API request. |
data | QuotasData object |
Schema
{
"request_id": "string",
"data": {
"quotas": [
{
"ShortDescription": "string",
"QuotaCollection": "string",
"AccountId": "string",
"Description": "string",
"MaxValue": 0,
"UsedValue": 0,
"Name": "string"
}
]
}
}
projects__project_schema__ResponseContext
Property | Type | Description |
---|---|---|
RequestId | string | The ID of the API request. |
Schema
{
"RequestId": "string"
}
templates__template_schema__ResponseContext
Property | Type | Description |
---|---|---|
RequestId | string | The ID of the API request. |
Schema
{
"RequestId": "string"
}