第 1 章 APIs
You can access APIs for to create and manage application resources, channels, subscriptions, and to query information.
For more information, review the API documentation for each of the following resources:
1.1. Clusters API 复制链接链接已复制到粘贴板!
1.1.1. Overview 复制链接链接已复制到粘贴板!
This documentation is for the cluster resource for Red Hat Advanced Cluster Management for Kubernetes. Cluster resource has four possible requests: create, query, delete and update.
1.1.1.1. Version information 复制链接链接已复制到粘贴板!
Version : 2.0.0
1.1.1.2. Contact information 复制链接链接已复制到粘贴板!
Contact Email : apiteam@swagger.io
1.1.1.3. License information 复制链接链接已复制到粘贴板!
License : Apache 2.0
License URL : http://www.apache.org/licenses/LICENSE-2.0.html
Terms of service : http://swagger.io/terms/
1.1.1.4. URI scheme 复制链接链接已复制到粘贴板!
BasePath : /kubernetes/apis
Schemes : HTTPS
1.1.1.5. Tags 复制链接链接已复制到粘贴板!
- cluster.open-cluster-management.io : Create and manage clusters
1.1.1.6. External Docs 复制链接链接已复制到粘贴板!
Description : Find out more about Swagger.
URL : http://swagger.io
1.1.2. Paths 复制链接链接已复制到粘贴板!
1.1.2.1. Query all clusters 复制链接链接已复制到粘贴板!
GET /cluster.open-cluster-management.io/v1/managedclusters
GET /cluster.open-cluster-management.io/v1/managedclusters
1.1.2.1.1. Description 复制链接链接已复制到粘贴板!
Query your clusters for more details.
1.1.2.1.2. Parameters 复制链接链接已复制到粘贴板!
| Type | Name | Description | Schema |
|---|---|---|---|
| Header |
COOKIE | Authorization: Bearer {ACCESS_TOKEN} ; ACCESS_TOKEN is the user access token. | string |
1.1.2.1.3. Responses 复制链接链接已复制到粘贴板!
| HTTP Code | Description | Schema |
|---|---|---|
| 200 | Success | No Content |
| 403 | Access forbidden | No Content |
| 404 | Resource not found | No Content |
| 500 | Internal service error | No Content |
| 503 | Service unavailable | No Content |
1.1.2.1.4. Consumes 复制链接链接已复制到粘贴板!
-
cluster/yaml
1.1.2.1.5. Tags 复制链接链接已复制到粘贴板!
- cluster.open-cluster-management.io
1.1.2.2. Create a cluster 复制链接链接已复制到粘贴板!
POST /cluster.open-cluster-management.io/v1/managedclusters
POST /cluster.open-cluster-management.io/v1/managedclusters
1.1.2.2.1. Description 复制链接链接已复制到粘贴板!
Create a cluster
1.1.2.2.2. Parameters 复制链接链接已复制到粘贴板!
| Type | Name | Description | Schema |
|---|---|---|---|
| Header |
COOKIE | Authorization: Bearer {ACCESS_TOKEN} ; ACCESS_TOKEN is the user access token. | string |
| Body |
body | Parameters describing the cluster to be created. |
1.1.2.2.3. Responses 复制链接链接已复制到粘贴板!
| HTTP Code | Description | Schema |
|---|---|---|
| 200 | Success | No Content |
| 403 | Access forbidden | No Content |
| 404 | Resource not found | No Content |
| 500 | Internal service error | No Content |
| 503 | Service unavailable | No Content |
1.1.2.2.4. Consumes 复制链接链接已复制到粘贴板!
-
cluster/yaml
1.1.2.2.5. Tags 复制链接链接已复制到粘贴板!
- cluster.open-cluster-management.io
1.1.2.2.6. Example HTTP request 复制链接链接已复制到粘贴板!
1.1.2.2.6.1. Request body 复制链接链接已复制到粘贴板!
1.1.2.3. Query a single cluster 复制链接链接已复制到粘贴板!
GET /cluster.open-cluster-management.io/v1/managedclusters/{cluster_name}
GET /cluster.open-cluster-management.io/v1/managedclusters/{cluster_name}
1.1.2.3.1. Description 复制链接链接已复制到粘贴板!
Query a single cluster for more details.
1.1.2.3.2. Parameters 复制链接链接已复制到粘贴板!
| Type | Name | Description | Schema |
|---|---|---|---|
| Header |
COOKIE | Authorization: Bearer {ACCESS_TOKEN} ; ACCESS_TOKEN is the user access token. | string |
| Path |
cluster_name | Name of the cluster that you want to query. | string |
1.1.2.3.3. Responses 复制链接链接已复制到粘贴板!
| HTTP Code | Description | Schema |
|---|---|---|
| 200 | Success | No Content |
| 403 | Access forbidden | No Content |
| 404 | Resource not found | No Content |
| 500 | Internal service error | No Content |
| 503 | Service unavailable | No Content |
1.1.2.3.4. Tags 复制链接链接已复制到粘贴板!
- cluster.open-cluster-management.io
1.1.2.4. Delete a cluster 复制链接链接已复制到粘贴板!
DELETE /cluster.open-cluster-management.io/v1/managedclusters/{cluster_name}
DELETE /cluster.open-cluster-management.io/v1/managedclusters/{cluster_name}
1.1.2.4.1. Description 复制链接链接已复制到粘贴板!
Delete a single cluster
1.1.2.4.2. Parameters 复制链接链接已复制到粘贴板!
| Type | Name | Description | Schema |
|---|---|---|---|
| Header |
COOKIE | Authorization: Bearer {ACCESS_TOKEN} ; ACCESS_TOKEN is the user access token. | string |
| Path |
cluster_name | Name of the cluster that you want to delete. | string |
1.1.2.4.3. Responses 复制链接链接已复制到粘贴板!
| HTTP Code | Description | Schema |
|---|---|---|
| 200 | Success | No Content |
| 403 | Access forbidden | No Content |
| 404 | Resource not found | No Content |
| 500 | Internal service error | No Content |
| 503 | Service unavailable | No Content |
1.1.2.4.4. Tags 复制链接链接已复制到粘贴板!
- cluster.open-cluster-management.io
1.1.3. Definitions 复制链接链接已复制到粘贴板!
1.1.3.1. Cluster 复制链接链接已复制到粘贴板!
| Name | Schema |
|---|---|
|
apiVersion | string |
|
kind | string |
|
metadata | object |
|
spec |
spec
| Name | Schema |
|---|---|
|
hubAcceptsClient | bool |
|
managedClusterClientConfigs | < managedClusterClientConfigs > array |
|
leaseDurationSeconds | integer (int32) |
managedClusterClientConfigs
| Name | Description | Schema |
|---|---|---|
|
URL | string | |
|
CABundle |
Pattern : | string (byte) |