1.3. Subscriptions API
1.3.1. Overview 复制链接链接已复制到粘贴板!
This documentation is for the Subscription resource for Red Hat Advanced Cluster Management for Kubernetes. The Subscription resource has four possible requests: create, query, delete and update.
1.3.1.1. Version information 复制链接链接已复制到粘贴板!
Version : 2.0.0
1.3.1.2. Contact information 复制链接链接已复制到粘贴板!
Contact Email : apiteam@swagger.io
1.3.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.3.1.4. URI scheme 复制链接链接已复制到粘贴板!
BasePath : /kubernetes/apis
Schemes : HTTPS
1.3.1.5. Tags 复制链接链接已复制到粘贴板!
- subscriptions.apps.open-cluster-management.io : Create and manage subscriptions
1.3.1.6. External Docs 复制链接链接已复制到粘贴板!
Description : Find out more about Swagger.
URL : http://swagger.io
1.3.2. Paths 复制链接链接已复制到粘贴板!
1.3.2.1. Create a subscription 复制链接链接已复制到粘贴板!
POST /apps.open-cluster-management.io/v1/namespaces/{namespace}/subscriptions
POST /apps.open-cluster-management.io/v1/namespaces/{namespace}/subscriptions
1.3.2.1.1. Description 复制链接链接已复制到粘贴板!
Create a subscription.
1.3.2.1.2. Parameters 复制链接链接已复制到粘贴板!
Type | Name | Description | Schema |
---|---|---|---|
Header |
COOKIE | Authorization: Bearer {ACCESS_TOKEN} ; ACCESS_TOKEN is the user access token. | string |
Path |
namespace | Namespace that you want to use, for example, default. | string |
Body |
body | Parameters describing the subscription to be created. |
1.3.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.3.2.1.4. Consumes 复制链接链接已复制到粘贴板!
-
subscription/yaml
1.3.2.1.5. Tags 复制链接链接已复制到粘贴板!
- subscriptions.apps.open-cluster-management.io
1.3.2.1.6. Example HTTP request 复制链接链接已复制到粘贴板!
1.3.2.1.6.1. Request body 复制链接链接已复制到粘贴板!
1.3.2.2. Query all subscriptions 复制链接链接已复制到粘贴板!
GET /apps.open-cluster-management.io/v1/namespaces/{namespace}/subscriptions
GET /apps.open-cluster-management.io/v1/namespaces/{namespace}/subscriptions
1.3.2.2.1. Description 复制链接链接已复制到粘贴板!
Query your subscriptions for more details.
1.3.2.2.2. Parameters 复制链接链接已复制到粘贴板!
Type | Name | Description | Schema |
---|---|---|---|
Header |
COOKIE | Authorization: Bearer {ACCESS_TOKEN} ; ACCESS_TOKEN is the user access token. | string |
Path |
namespace | Namespace that you want to use, for example, default. | string |
1.3.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.3.2.2.4. Consumes 复制链接链接已复制到粘贴板!
-
subscription/yaml
1.3.2.2.5. Tags 复制链接链接已复制到粘贴板!
- subscriptions.apps.open-cluster-management.io
1.3.2.3. Query a single subscription 复制链接链接已复制到粘贴板!
GET /apps.open-cluster-management.io/v1/namespaces/{namespace}/subscriptions/{subscription_name}
GET /apps.open-cluster-management.io/v1/namespaces/{namespace}/subscriptions/{subscription_name}
1.3.2.3.1. Description 复制链接链接已复制到粘贴板!
Query a single subscription for more details.
1.3.2.3.2. Parameters 复制链接链接已复制到粘贴板!
Type | Name | Description | Schema |
---|---|---|---|
Header |
COOKIE | Authorization: Bearer {ACCESS_TOKEN} ; ACCESS_TOKEN is the user access token. | string |
Path |
namespace | Namespace that you want to use, for example, default. | string |
Path |
subscription_name | Name of the subscription that you wan to query. | string |
1.3.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.3.2.3.4. Tags 复制链接链接已复制到粘贴板!
- subscriptions.apps.open-cluster-management.io
1.3.2.4. Delete a subscription 复制链接链接已复制到粘贴板!
DELETE /apps.open-cluster-management.io/v1/namespaces/{namespace}/subscriptions/{subscription_name}
DELETE /apps.open-cluster-management.io/v1/namespaces/{namespace}/subscriptions/{subscription_name}
1.3.2.4.1. Parameters 复制链接链接已复制到粘贴板!
Type | Name | Description | Schema |
---|---|---|---|
Header |
COOKIE | Authorization: Bearer {ACCESS_TOKEN} ; ACCESS_TOKEN is the user access token. | string |
Path |
namespace | Namespace that you want to use, for example, default. | string |
Path |
subscription_name | Name of the subscription that you want to delete. | string |
1.3.2.4.2. 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.3.2.4.3. Tags 复制链接链接已复制到粘贴板!
- subscriptions.apps.open-cluster-management.io
1.3.3. Definitions 复制链接链接已复制到粘贴板!
1.3.3.1. Subscription 复制链接链接已复制到粘贴板!
Name | Schema |
---|---|
apiVersion | string |
kind | string |
metadata | |
spec | |
status |
metadata
Name | Schema |
---|---|
annotations | object |
labels | object |
name | string |
namespace | string |
spec
Name | Schema |
---|---|
channel | string |
name | string |
overrides | < overrides > array |
packageFilter | |
packageOverrides | < packageOverrides > array |
placement | |
timewindow |
overrides
Name | Schema |
---|---|
clusterName | string |
clusterOverrides | < object > array |
packageFilter
Name | Description | Schema |
---|---|---|
annotations | < string, string > map | |
filterRef | ||
labelSelector | ||
version |
Pattern : | string |
filterRef
Name | Schema |
---|---|
name | string |
labelSelector
Name | Schema |
---|---|
matchExpressions | < matchExpressions > array |
matchLabels | < string, string > map |
matchExpressions
Name | Schema |
---|---|
key | string |
operator | string |
values | < string > array |
packageOverrides
Name | Schema |
---|---|
packageAlias | string |
packageName | string |
packageOverrides | < object > array |
placement
Name | Schema |
---|---|
clusterSelector | |
clusters | < clusters > array |
local | boolean |
placementRef |
clusterSelector
Name | Schema |
---|---|
matchExpressions | < matchExpressions > array |
matchLabels | < string, string > map |
matchExpressions
Name | Schema |
---|---|
key | string |
operator | string |
values | < string > array |
clusters
Name | Schema |
---|---|
name | string |
placementRef
Name | Schema |
---|---|
apiVersion | string |
fieldPath | string |
kind | string |
name | string |
namespace | string |
resourceVersion | string |
uid | string |
timewindow
Name | Schema |
---|---|
daysofweek | < string > array |
hours | < hours > array |
location | string |
windowtype | enum (active, blocked, Active, Blocked) |
hours
Name | Schema |
---|---|
end | string |
start | string |
status
Name | Schema |
---|---|
lastUpdateTime | string (date-time) |
message | string |
phase | string |
reason | string |
statuses | object |