Create a Cluster Network
POST/apis/network.harvesterhci.io/v1beta1/clusternetworks
Create a ClusterNetwork object.
Request
- application/json
- application/yaml
Bodyrequired
metadata object
status object
Bodyrequired
metadata object
status object
Responses
- 200
- 201
- 202
- 401
OK
- application/json
- application/yaml
- Schema
- Example (auto)
Schema
metadata object
status object
{
"apiVersion": "string",
"kind": "string",
"metadata": {
"name": "string",
"namespace": "string"
},
"status": {
"conditions": [
{
"lastTransitionTime": "string",
"lastUpdateTime": "string",
"message": "string",
"reason": "string",
"status": "",
"type": ""
}
]
}
}
- Schema
- Example (auto)
Schema
metadata object
status object
{
"apiVersion": "string",
"kind": "string",
"metadata": {
"name": "string",
"namespace": "string"
},
"status": {
"conditions": [
{
"lastTransitionTime": "string",
"lastUpdateTime": "string",
"message": "string",
"reason": "string",
"status": "",
"type": ""
}
]
}
}
Created
- application/json
- application/yaml
- Schema
- Example (auto)
Schema
metadata object
status object
{
"apiVersion": "string",
"kind": "string",
"metadata": {
"name": "string",
"namespace": "string"
},
"status": {
"conditions": [
{
"lastTransitionTime": "string",
"lastUpdateTime": "string",
"message": "string",
"reason": "string",
"status": "",
"type": ""
}
]
}
}
- Schema
- Example (auto)
Schema
metadata object
status object
{
"apiVersion": "string",
"kind": "string",
"metadata": {
"name": "string",
"namespace": "string"
},
"status": {
"conditions": [
{
"lastTransitionTime": "string",
"lastUpdateTime": "string",
"message": "string",
"reason": "string",
"status": "",
"type": ""
}
]
}
}
Accepted
- application/json
- application/yaml
- Schema
- Example (auto)
Schema
metadata object
status object
{
"apiVersion": "string",
"kind": "string",
"metadata": {
"name": "string",
"namespace": "string"
},
"status": {
"conditions": [
{
"lastTransitionTime": "string",
"lastUpdateTime": "string",
"message": "string",
"reason": "string",
"status": "",
"type": ""
}
]
}
}
- Schema
- Example (auto)
Schema
metadata object
status object
{
"apiVersion": "string",
"kind": "string",
"metadata": {
"name": "string",
"namespace": "string"
},
"status": {
"conditions": [
{
"lastTransitionTime": "string",
"lastUpdateTime": "string",
"message": "string",
"reason": "string",
"status": "",
"type": ""
}
]
}
}
Unauthorized
- application/json
- application/yaml
- Schema
- Example (auto)
Schema
"string"
- Schema
- Example (auto)
Schema
"string"
- curl
- python
- go
- nodejs
- CURL
curl -L 'https://699c5de8cd2250875530e216--harvester-preview.netlify.app/apis/network.harvesterhci.io/v1beta1/clusternetworks' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"apiVersion": "string",
"kind": "string",
"metadata": {
"name": "string",
"namespace": "string"
},
"status": {
"conditions": [
{
"lastTransitionTime": "string",
"lastUpdateTime": "string",
"message": "string",
"reason": "string",
"status": "",
"type": ""
}
]
}
}'
