Update Switching Profile

Update Switching Profile

Updates the user-configurable parameters of a switching profile. Only the qos, port-mirroring, spoof-guard and port-security switching profiles can be modified. You cannot modify the ipfix or ip-discovery switching profiles.

Request
URI
PUT
https://nsxmanager.your.domain/api/v1/switching-profiles/{switching-profile-id}
COPY
Path Parameters
string
switching-profile-id
Required

switching-profile-id


Request Body
BaseSwitchingProfile of type(s) application/json
Optional
{
    "_self": {
        "rel": "string"
    },
    "_system_owned": false,
    "display_name": "string",
    "description": "string",
    "required_capabilities": [
        "string"
    ],
    "_revision": 0,
    "tags": [
        {
            "scope": "string",
            "tag": "string"
        }
    ],
    "_schema": "string",
    "_create_time": 0,
    "_links": [
        {
            "action": "string",
            "href": "string",
            "rel": "string"
        }
    ],
    "resource_type": "string",
    "_last_modified_time": 0,
    "_last_modified_user": "string",
    "id": "string",
    "_create_user": "string"
}
_self
Optional

_self

boolean
_system_owned
Optional

Indicates system owned resource

string
display_name
Optional

Defaults to ID if not set

string
description
Optional

description

array of string
required_capabilities
Optional

required_capabilities

integer As int64 As int64
_revision
Optional

The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected.

array of Tag
tags
Optional

tags

string
_schema
Optional

_schema

integer As int64 As int64
_create_time
Optional

Timestamp of resource creation

_links
Optional

The server will populate this field when returing the resource. Ignored on PUT and POST.

string
resource_type
Required

resource_type

integer As int64 As int64
_last_modified_time
Optional

Timestamp of last modification

string
_last_modified_user
Optional

ID of the user who last modified this resource

string
id
Optional

id

string
_create_user
Optional

ID of the user who created this resource

Authentication
This operation uses the following authentication methods.
Responses
200

Success

Returns BaseSwitchingProfile of type(s) application/json
{
    "_self": {
        "rel": "string"
    },
    "_system_owned": false,
    "display_name": "string",
    "description": "string",
    "required_capabilities": [
        "string"
    ],
    "_revision": 0,
    "tags": [
        {
            "scope": "string",
            "tag": "string"
        }
    ],
    "_schema": "string",
    "_create_time": 0,
    "_links": [
        {
            "action": "string",
            "href": "string",
            "rel": "string"
        }
    ],
    "resource_type": "string",
    "_last_modified_time": 0,
    "_last_modified_user": "string",
    "id": "string",
    "_create_user": "string"
}
_self
Optional

_self

boolean
_system_owned
Optional

Indicates system owned resource

string
display_name
Optional

Defaults to ID if not set

string
description
Optional

description

array of string
required_capabilities
Optional

required_capabilities

integer As int64 As int64
_revision
Optional

The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected.

array of Tag
tags
Optional

tags

string
_schema
Optional

_schema

integer As int64 As int64
_create_time
Optional

Timestamp of resource creation

_links
Optional

The server will populate this field when returing the resource. Ignored on PUT and POST.

string
resource_type
Required

resource_type

integer As int64 As int64
_last_modified_time
Optional

Timestamp of last modification

string
_last_modified_user
Optional

ID of the user who last modified this resource

string
id
Optional

id

string
_create_user
Optional

ID of the user who created this resource


default

Unexpected error

Returns ApiError of type(s) application/json
{
    "module_name": "string",
    "error_message": "string",
    "error_code": 0
}
string
module_name
Optional

module_name

string
error_message
Optional

error_message

integer As int64 As int64
error_code
Optional

error_code