Create a Namespaced Network Attachment Definition

  1. POST /apis/k8s.cni.cncf.io/v1/namespaces/:namespace/network-attachment-definitions

Create a NetworkAttachmentDefinition object.

Request

Path Parameters

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

name stringrequired

namespace string

spec objectrequired

config stringrequired

Body

required

apiVersion stringrequired

kind stringrequired

metadata object

name stringrequired

namespace string

spec objectrequired

config stringrequired

Responses

  • 200
  • 201
  • 202
  • 401

OK

  • application/json
  • application/yaml

  • Schema

  • Example (from schema)

Schema

apiVersion stringrequired

kind stringrequired

metadata object

name stringrequired

namespace string

spec objectrequired

config stringrequired

  1. {
  2. "apiVersion": "string",
  3. "kind": "string",
  4. "metadata": {
  5. "name": "string",
  6. "namespace": "string"
  7. },
  8. "spec": {
  9. "config": "string"
  10. }
  11. }
  • Schema
  • Example (from schema)

Schema

apiVersion stringrequired

kind stringrequired

metadata object

name stringrequired

namespace string

spec objectrequired

config stringrequired

  1. {
  2. "apiVersion": "string",
  3. "kind": "string",
  4. "metadata": {
  5. "name": "string",
  6. "namespace": "string"
  7. },
  8. "spec": {
  9. "config": "string"
  10. }
  11. }

Created

  • application/json
  • application/yaml

  • Schema

  • Example (from schema)

Schema

apiVersion stringrequired

kind stringrequired

metadata object

name stringrequired

namespace string

spec objectrequired

config stringrequired

  1. {
  2. "apiVersion": "string",
  3. "kind": "string",
  4. "metadata": {
  5. "name": "string",
  6. "namespace": "string"
  7. },
  8. "spec": {
  9. "config": "string"
  10. }
  11. }
  • Schema
  • Example (from schema)

Schema

apiVersion stringrequired

kind stringrequired

metadata object

name stringrequired

namespace string

spec objectrequired

config stringrequired

  1. {
  2. "apiVersion": "string",
  3. "kind": "string",
  4. "metadata": {
  5. "name": "string",
  6. "namespace": "string"
  7. },
  8. "spec": {
  9. "config": "string"
  10. }
  11. }

Accepted

  • application/json
  • application/yaml

  • Schema

  • Example (from schema)

Schema

apiVersion stringrequired

kind stringrequired

metadata object

name stringrequired

namespace string

spec objectrequired

config stringrequired

  1. {
  2. "apiVersion": "string",
  3. "kind": "string",
  4. "metadata": {
  5. "name": "string",
  6. "namespace": "string"
  7. },
  8. "spec": {
  9. "config": "string"
  10. }
  11. }
  • Schema
  • Example (from schema)

Schema

apiVersion stringrequired

kind stringrequired

metadata object

name stringrequired

namespace string

spec objectrequired

config stringrequired

  1. {
  2. "apiVersion": "string",
  3. "kind": "string",
  4. "metadata": {
  5. "name": "string",
  6. "namespace": "string"
  7. },
  8. "spec": {
  9. "config": "string"
  10. }
  11. }

Unauthorized

  • application/json
  • application/yaml

  • Schema

Schema

string

  • Schema

Schema

string

Loading…