[{"label":"Latest (v1.0)","version":"latest"}]
nsx-vmc-policy
Create Update Policy Context Profile
DescriptionCreates/Updates a PolicyContextProfile, which encapsulates attribute and sub-attributes of network services. Rules for using attributes and sub-attributes in single PolicyContextProfile
- One type of attribute can’t have multiple occurrences. ( Eg. - Attribute type APP_ID can be used only once per PolicyContextProfile.)
- For specifying multiple values for an attribute, provide them in an array.
- 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://<policy-mgr>/policy/api/v1/infra/context-profiles/attributes
Request
URLURL
https://nsxmanager.your.domain/policy/api/v1/infra/context-profiles/{context-profile-id}
Path Parameters
Path Parameters
string
context-profile-id
Required
Request Body
Request Body
PolicyContextProfile
of type(s) application/json
Required
This request body class requires all of the following:
PolicyConfigResource, InlinePolicyContextProfile1
Authentication
This operation uses the following authentication methods.
Response
Response
Response BodyResponse Body
200 OK returns
PolicyContextProfile
of type(s) application/json
This response body class contains all of the following:
PolicyConfigResource, InlinePolicyContextProfile1
Errors
Code Samples
Code Samples
PowerCLI Client SDK Example
Invoke-PutCreateOrUpdatePolicyContextProfile -contextProfileId -policyContextProfile $policyContextProfile -_override
cURL Command
curl -X PUT -H "Content-Type: application/json" -d '{}' https://nsxmanager.your.domain/policy/api/v1/infra/context-profiles/{context-profile-id}
Vendor Extensions
This operation contains the following vendor extensions defined in the spec:
x-vmw-doc-operation: create-update-policy-context-profile
x-vmw-nsx-module: PolicyContextProfile
[{"label":"Latest (v1.0)","version":"latest"}]
nsx-vmc-policy