Skip to content

Tags are not working for service creation through API call #4049

Closed
@jhanssenfavaro

Description

@jhanssenfavaro
  • Python version: 3.6.8
  • NetBox version: 2.7.1

REST API is not creating services with its related passed tags arguments.

Trying to create a service and assign a tag to

curl -X POST
http://cmdbweb/api/ipam/services/
-H 'Accept: application/json'
-H 'Authorization: Token XPTO'
-H 'Cache-Control: no-cache'
-H 'Connection: keep-alive'
-H 'Content-Type: application/json'
-H 'Host: cmdbweb'
-H 'Postman-Token: e30af3a9-499c-422e-a69f-25c15edb59b3,cae622cf-2f8d-409d-8c0c-083eca0491e1'
-H 'User-Agent: PostmanRuntime/7.15.0'
-H 'accept-encoding: gzip, deflate'
-H 'cache-control: no-cache'
-H 'content-length: 114'
-H 'cookie: csrftoken=9cVlNttRCcRJ1SP7BM7EiYsC3sRISAxekLIp385OL9cf357es3c7LOEAIt1WT2Is'
-b csrftoken=9cVlNttRCcRJ1SP7BM7EiYsC3sRISAxekLIp385OL9cf357es3c7LOEAIt1WT2Is
-d '{
"name":"testService1",
"virtual_machine": 251,
"port":"9001",
"tag": "['''tagXPTOSample''']",
"protocol": 6

}'

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions