Skip to content

Update netbox_service.py #1421

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

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions plugins/modules/netbox_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,18 @@
- Must exist in NetBox and in key/value format
required: false
type: dict
parent_object_type:
description:
- Specifies which object type to associate with service.
required: true
type: str
version_added: "3.22.0"
parent_object_id:
description:
- Specifies which object to associate with service.
required: true
type: int
version_added: "3.22.0"
required: true
"""

Expand All @@ -108,6 +120,8 @@
- address: 127.0.0.1
tags:
- prometheus
parent_object_type: "dcim.device"
parent_object_id: 1
state: present

- name: Delete service
Expand Down Expand Up @@ -155,6 +169,8 @@ def main():
comments=dict(required=False, type="str"),
tags=dict(required=False, type="list", elements="raw"),
custom_fields=dict(required=False, type="dict"),
parent_object_type=dict(required=True, type="str"),
parent_object_id=dict(required=True, type="int"),
),
),
)
Expand Down
Loading