VMware Networking Community
RichardJC
Contributor
Contributor

NSX 6.4 - Create Security Group and Member with REST API - Error Mapping Element vsmUuid

Hi

I am trying to execute the following in Postman to create a new universal security group called TestSecurityGroup and add an existing member security tag UST:DB but get an error with the vsmUuid,

Any help would be welcome.

Thanks

<errorCode>223</errorCode>

    <details>Invalid request. Could not find mapping for element : &apos;vsmUuid&apos;.</details>

https://{{NSXManager}}/api/2.0/services/securitygroup/bulk/universalroot-0

<securitygroup>

    <objectId></objectId>

<objectTypeName>SecurityGroup</objectTypeName>

<vsmUuid>422FC758-1BCE-B54F-3E8D-496AF51EDE5A</vsmUuid>

    <revision>0</revision>

    <type>

<typeName>SecurityGroup</typeName>

    </type>

<name>TestSecurityGroup</name>

    <scope>

<id>universalroot-0</id>

<objectTypeName>UniversalRoot</objectTypeName>

<vsmUuid>422FC758-1BCE-B54F-3E8D-496AF51EDE5A</vsmUuid>

<name>Universal</name>

<revision>0</revision>

    </scope>

    <clientHandle></clientHandle>

    <extendedAttributes>

        <extendedAttribute>

<name>localMembersOnly</name>

<value>true</value>

</extendedAttribute>

    </extendedAttributes>

    <member>

<objectId>securitytag-07ef3754-12f3-4a5b-8772-132e6b17e064</objectId>

        <objectTypeName>SecurityTag</objectTypeName>

<vsmUuid>422FC758-1BCE-B54F-3E8D-496AF51EDE5A</vsmUuid>

<revision></revision>

        <type>

<typeName>SecurityTag</typeName>

        </type>

<name>UST:DB</name>

        <scope>

<id>universalroot-0</id>

<objectTypeName>UniversalRoot</objectTypeName>

<name>Universal</name>

        </scope>

<clientHandle></clientHandle>

<extendedAttributes></extendedAttributes>

    </member>

    <excludeMember>

<objectId></objectId>

<objectTypeName></objectTypeName>

<vsmUuid></vsmUuid>

<revision></revision>

        <type>

<typeName></typeName>

        </type>

<name></name>

        <scope>

<id></id>

           <objectTypeName></objectTypeName>

<name></name>

        </scope>

<clientHandle></clientHandle>

<extendedAttributes></extendedAttributes>

    </excludeMember>

    <dynamicMemberDefinition>

<dynamicSet>

<operator></operator>

<dynamicCriteria>

<operator></operator>

<key></key>

<criteria></criteria>

<value></value>

</dynamicCriteria>

</dynamicSet>

    </dynamicMemberDefinition>

</securitygroup>

Reply
0 Kudos
0 Replies