Replace a Namespaced Network Attachment Definition
PUT/apis/k8s.cni.cncf.io/v1/namespaces/:namespace/network-attachment-definitions/:name
Update a NetworkAttachmentDefinition object.
Request
Path Parameters
name stringrequired
Possible values: Value must match regular expression [a-z0-9][a-z0-9\-]*
Name of the resource
namespace stringrequired
Possible values: Value must match regular expression [a-z0-9][a-z0-9\-]*
Object name and auth scope, such as for teams and projects
- application/json
- application/yaml
Body
required
apiVersion stringrequired
kind stringrequired
metadata object
spec objectrequired
Body
required
apiVersion stringrequired
kind stringrequired
metadata object
spec objectrequired
Responses
- 200
- 201
- 401
OK
- application/json
- application/yaml
- Schema
- Example (from schema)
Schema
apiVersion stringrequired
kind stringrequired
metadata object
spec objectrequired
{
"apiVersion": "string",
"kind": "string",
"metadata": {
"name": "string",
"namespace": "string"
},
"spec": {
"config": "string"
}
}
- Schema
- Example (from schema)
Schema
apiVersion stringrequired
kind stringrequired
metadata object
spec objectrequired
{
"apiVersion": "string",
"kind": "string",
"metadata": {
"name": "string",
"namespace": "string"
},
"spec": {
"config": "string"
}
}
Create
- application/json
- application/yaml
- Schema
- Example (from schema)
Schema
apiVersion stringrequired
kind stringrequired
metadata object
spec objectrequired
{
"apiVersion": "string",
"kind": "string",
"metadata": {
"name": "string",
"namespace": "string"
},
"spec": {
"config": "string"
}
}
- Schema
- Example (from schema)
Schema
apiVersion stringrequired
kind stringrequired
metadata object
spec objectrequired
{
"apiVersion": "string",
"kind": "string",
"metadata": {
"name": "string",
"namespace": "string"
},
"spec": {
"config": "string"
}
}
Unauthorized
- application/json
- application/yaml
- Schema
Schema
string
- Schema
Schema
string
- curl
- python
- go
- nodejs
- CURL
curl -L -X PUT 'https://docs.harvesterhci.io/apis/k8s.cni.cncf.io/v1/namespaces/:namespace/network-attachment-definitions/:name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"apiVersion": "string",
"kind": "string",
"metadata": {
"name": "string",
"namespace": "string"
},
"spec": {
"config": "string"
}
}'