VMware Cloud Community
vMarkusK1985
Expert
Expert
Jump to solution

Get Security Tags via NSX API

Hello,

I try to get and set Security Tags via the vCD NSX API Endpoint;

{{vCD-URL}}/network/services/securitytags/<OrgVDC-ID>/tag

This Call results in a 404 Error.

Security Groups for example work fine with the sam OrgVDC-ID:

{{vCD-URL}}/network/services/securitygroup/scope/<OrgVDC-ID>

Any hint whats wrong here?

Best regards,

Markus

https://mycloudrevolution.com | https://twitter.com/vMarkus_K | https://github.com/vMarkusK
Tags (1)
0 Kudos
1 Solution

Accepted Solutions
vMarkusK1985
Expert
Expert
Jump to solution

The right URI is: /network/services/securitytags/tag/scope/<OrgVDC-ID>

https://mycloudrevolution.com | https://twitter.com/vMarkus_K | https://github.com/vMarkusK

View solution in original post

0 Kudos
4 Replies
matthiaseisner
Hot Shot
Hot Shot
Jump to solution

Hi Markus,

Could you please share the headers you've set for the REST call and the vCD version?

Thanks,

Matthias

0 Kudos
vMarkusK1985
Expert
Expert
Jump to solution

Hi Matthias,

I use vCD 9.1.0.1 with NSX 6.4.0

Headers are in this test case only:

'Content-type' = 'application/xml';'x-vcloud-authorization' = 'xxxxx'

Best wishes,

Markus

https://mycloudrevolution.com | https://twitter.com/vMarkus_K | https://github.com/vMarkusK
0 Kudos
vMarkusK1985
Expert
Expert
Jump to solution

I have also verified the same situation in vCD 9.0.0 and NSX 6.4.0

https://mycloudrevolution.com | https://twitter.com/vMarkus_K | https://github.com/vMarkusK
0 Kudos
vMarkusK1985
Expert
Expert
Jump to solution

The right URI is: /network/services/securitytags/tag/scope/<OrgVDC-ID>

https://mycloudrevolution.com | https://twitter.com/vMarkus_K | https://github.com/vMarkusK
0 Kudos