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

LAN tags subcollection missing #1018

Closed
ashkuren opened this issue Mar 2, 2021 · 1 comment
Closed

LAN tags subcollection missing #1018

ashkuren opened this issue Mar 2, 2021 · 1 comment
Assignees

Comments

@ashkuren
Copy link

ashkuren commented Mar 2, 2021

Tag subcollection is missing for /api/lans endpoint.
ManageIQ version: jansa-3.20210118183104_77bdc30
OPTIONS call to /api/lans:

{
    "attributes": [
        "allow_promiscuous",
        "computed_allow_promiscuous",
        "computed_forged_transmits",
        "computed_mac_changes",
        "created_on",
        "ems_ref",
        "forged_transmits",
        "id",
        "mac_changes",
        "name",
        "parent_id",
        "switch_id",
        "tag",
        "uid_ems",
        "updated_on"
    ],
    "virtual_attributes": [
        "href_slug",
        "region_description",
        "region_number"
    ],
    "relationships": [
        "guest_devices",
        "hosts",
        "lans",
        "miq_templates",
        "parent",
        "subnets",
        "switch",
        "taggings",
        "tags",
        "vms",
        "vms_and_templates"
    ],
    "subcollections": [],
    "data": {}
}

Tags can still be obtained by calling: /api/lans?expand=resources&attributes=tags
But when I try to set tags with POST to /api/lans/10000000000055/tags with body:

{
  "action" : "assign",
  "resources" : [
    { "name" : "/site/l2" }
  ]
}

The response is 404 Not Found.

@ashkuren
Copy link
Author

This has been resolved by #804

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants