Update NS Profile
Updates the specified NSProfile. Rules for using attributes and sub-attributes in single NSProfile
- One type of attribute can't have multiple occurrences. ( Example - Attribute type APP_ID can be used only once per NSProfile.)
- Values for an attribute are mentioned as array of strings. ( Example - For type APP_ID , values can be mentioned as ["SSL","FTP"].)
- If sub-attribtes are mentioned for an attribute, then only single value is allowed for that attribute.
- To get a list of supported attributes and sub-attributes fire the following REST API GET https://<nsx-mgr>/api/v1/ns-profiles/attributes
This API is deprecated. Use PUT /infra/context-profiles/
Request
URI
PUT
https://nsxmanager.your.domain/api/v1/ns-profiles/{ns-profile-id}
COPY
Path Parameters
string
ns-profile-id
Required
NSProfile Id
Request Body
NSProfile
of type(s)
application/json
Optional
{
"_links": [
{
"action": "string",
"href": "string",
"rel": "string"
}
],
"_schema": "string",
"_self": {},
"_revision": 0,
"_create_time": 0,
"_create_user": "string",
"_last_modified_time": 0,
"_last_modified_user": "string",
"_protection": "string",
"_system_owned": false,
"description": "string",
"display_name": "string",
"id": "string",
"resource_type": "string",
"tags": [
{
"scope": "string",
"tag": "string"
}
],
"is_valid": false,
"nsprofile_attribute": [
{
"attributes_data": {
"attribute_source": "string",
"datatype": "string",
"description": "string",
"key": "string",
"value": [
"string"
]
},
"sub_attributes": [
{
"_links": [
{
"action": "string",
"href": "string",
"rel": "string"
}
],
"_schema": "string",
"_self": {},
"_revision": 0,
"_create_time": 0,
"_create_user": "string",
"_last_modified_time": 0,
"_last_modified_user": "string",
"_protection": "string",
"_system_owned": false,
"description": "string",
"display_name": "string",
"id": "string",
"resource_type": "string",
"tags": [
{
"scope": "string",
"tag": "string"
}
],
"attribute_source": "string",
"datatype": "string",
"key": "string",
"value": [
"string"
]
}
]
}
]
}
Responses
200
OK
Returns
NSProfile
of type(s)
application/json
This response body class contains all of the following:
InlineNSProfile1
"NSProfile Object"
404
Not Found
Operation doesn't return any data structure
412
Returns
PreconditionFailed
of type(s)
application/json
Operation doesn't return any data structure
500
Returns
InternalServerError
of type(s)
application/json
Operation doesn't return any data structure
503
Returns
ServiceUnavailable
of type(s)
application/json
Operation doesn't return any data structure
Code Samples
COPY
curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"nsprofile_attribute":["object"]}' https://{api_host}/api/v1/ns-profiles/{ns-profile-id}
Deprecated
On This Page
Management Plane Api Operations
GET
List IP Sets
Deprecated
POST
Create IP Set
Deprecated
DELETE
Delete IP Set
Deprecated
GET
Read IP Set
Deprecated
POST
Add Remove IP Address
Deprecated
PUT
Update IP Set
Deprecated
GET
Get IP Addresses
Deprecated
GET
List MAC Sets
Deprecated
POST
Create MAC Set
Deprecated
DELETE
Delete MAC Set
Deprecated
GET
Read MAC Set
Deprecated
PUT
Update MAC Set
Deprecated
GET
Get MAC Addresses
Deprecated
POST
Add MAC Address
Deprecated
DELETE
Remove MAC Address
Deprecated
GET
List NS Groups
Deprecated
POST
Create NS Group
Deprecated
GET
Get Unassociated Virtual Machines
Deprecated
DELETE
Delete NS Group
Deprecated
GET
Read NS Group
Deprecated
POST
Add Or Remove NS Group Expression
Deprecated
PUT
Update NS Group
Deprecated
GET
Get Consolidated Effective IP Address Members
Deprecated
GET
Get Effective Cloud Native Service Instances
Deprecated
GET
Get Effective Active Directory Groups
Deprecated
GET
Get Effective IP Address Members
Deprecated
GET
Get Effective IP Set Members
Deprecated
GET
Get Effective Logical Port Members
Deprecated
GET
Get Effective Logical Switch Members
Deprecated
GET
Get Effective Physical Server Members
Deprecated
GET
Get Effective Transport Node Members
Deprecated
GET
Get Effective VIF Members
Deprecated
GET
Get Effective Virtual Machine Members
Deprecated
GET
Get Member Types
Deprecated
GET
Get Service Associations
Deprecated
GET
List NS Profiles
Deprecated
POST
Create NS Profile
Deprecated
GET
List NS Supported Attributes Types
Deprecated
GET
List NS Supported Attributes
Deprecated
DELETE
Delete NS Profile
Deprecated
GET
Read NS Profile
Deprecated
PUT
Update NS Profile
Deprecated
GET
List NS Service Groups
Deprecated
POST
Create NS Service Group
Deprecated
DELETE
Delete NS Service Group
Deprecated
GET
Read NS Service Group
Deprecated
PUT
Update NS Service Group
Deprecated
GET
List NS Services
Deprecated
POST
Create NS Service
Deprecated
DELETE
Delete NS Service
Deprecated
GET
Read NS Service
Deprecated
PUT
Update NS Service
Deprecated