Skip to content

Commit 3fcc97a

Browse files
authored
Add description, tags, custom_fields to netbox_region (#689)
1 parent e770d30 commit 3fcc97a

File tree

1 file changed

+22
-6
lines changed

1 file changed

+22
-6
lines changed

plugins/modules/netbox_region.py

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@
77

88
__metaclass__ = type
99

10-
ANSIBLE_METADATA = {
11-
"metadata_version": "1.1",
12-
"status": ["preview"],
13-
"supported_by": "community",
14-
}
15-
1610
DOCUMENTATION = r"""
1711
---
1812
module: netbox_region
@@ -51,6 +45,25 @@
5145
- The parent region this region should be tied to
5246
required: false
5347
type: raw
48+
description:
49+
description:
50+
- The description of the region
51+
required: false
52+
type: str
53+
version_added: 3.5.0
54+
tags:
55+
description:
56+
- Any tags that the region may need to be associated with
57+
required: false
58+
type: list
59+
elements: raw
60+
version_added: 3.5.0
61+
custom_fields:
62+
description:
63+
- Must exist in NetBox and in key/value format
64+
required: false
65+
type: dict
66+
version_added: 3.5.0
5467
required: true
5568
"""
5669

@@ -113,6 +126,9 @@ def main():
113126
name=dict(required=True, type="str"),
114127
slug=dict(required=False, type="str"),
115128
parent_region=dict(required=False, type="raw"),
129+
description=dict(required=False, type="str"),
130+
tags=dict(required=False, type="list", elements="raw"),
131+
custom_fields=dict(required=False, type="dict"),
116132
),
117133
),
118134
)

0 commit comments

Comments
 (0)