Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jhanssenfavaro opened this issue Jan 29, 2020 · 0 comments
Closed

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

jhanssenfavaro opened this issue Jan 29, 2020 · 0 comments
Assignees
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@jhanssenfavaro
Copy link

jhanssenfavaro commented Jan 29, 2020

  • 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

}'

@jhanssenfavaro jhanssenfavaro changed the title Custom Fields filter / query not working for services Tags are not working for service creation through API call Jan 29, 2020
@jeremystretch jeremystretch added status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application labels Jan 29, 2020
@jeremystretch jeremystretch self-assigned this Jan 29, 2020
@lock lock bot locked as resolved and limited conversation to collaborators May 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

2 participants