Update azure_rm_route related document (#57928)

* Update docs for azure_rm_route, azure_rm_routetable, and azure_rm_routetable_facts
pull/58005/head
Fred-sun 5 years ago committed by Alicia Cozine
parent 2bdc4e5b4a
commit 21a95c0a16

@ -17,22 +17,21 @@ DOCUMENTATION = '''
--- ---
module: azure_rm_route module: azure_rm_route
version_added: "2.7" version_added: "2.7"
short_description: Manage Azure route resource. short_description: Manage Azure route resource
description: description:
- Create, update or delete a route. - Create, update or delete a route.
options: options:
resource_group: resource_group:
description: description:
- name of resource group. - Name of resource group.
required: true required: true
name: name:
description: description:
- name of the route. - Name of the route.
required: true required: true
state: state:
description: description:
- Assert the state of the route. Use C(present) to create or update and - Assert the state of the route. Use C(present) to create or update and C(absent) to delete.
C(absent) to delete.
default: present default: present
choices: choices:
- absent - absent
@ -65,7 +64,7 @@ extends_documentation_fragment:
- azure_tags - azure_tags
author: author:
- "Yuwei Zhou (@yuwzho)" - Yuwei Zhou (@yuwzho)
''' '''
@ -87,9 +86,11 @@ EXAMPLES = '''
''' '''
RETURN = ''' RETURN = '''
id: id:
description: Current state of the route. description:
- Current state of the route.
returned: success returned: success
type: str type: str
sample: "/subscriptions/xxxx...xxxx/resourceGroups/v-xisuRG/providers/Microsoft.Network/routeTables/tableb57/routes/routeb57"
''' '''
try: try:

@ -17,22 +17,21 @@ DOCUMENTATION = '''
--- ---
module: azure_rm_routetable module: azure_rm_routetable
version_added: "2.7" version_added: "2.7"
short_description: Manage Azure route table resource. short_description: Manage Azure route table resource
description: description:
- Create, update or delete a route table. - Create, update or delete a route table.
options: options:
resource_group: resource_group:
description: description:
- name of resource group. - Name of resource group.
required: true required: true
name: name:
description: description:
- name of the route table. - Name of the route table.
required: true required: true
state: state:
description: description:
- Assert the state of the route table. Use C(present) to create or update and - Assert the state of the route table. Use C(present) to create or update and C(absent) to delete.
C(absent) to delete.
default: present default: present
choices: choices:
- absent - absent
@ -45,14 +44,14 @@ options:
location: location:
description: description:
- Region of the resource. - Region of the resource.
- Derived from C(resource_group) if not specified - Derived from I(resource_group) if not specified.
extends_documentation_fragment: extends_documentation_fragment:
- azure - azure
- azure_tags - azure_tags
author: author:
- "Yuwei Zhou (@yuwzho)" - Yuwei Zhou (@yuwzho)
''' '''
@ -73,13 +72,17 @@ EXAMPLES = '''
''' '''
RETURN = ''' RETURN = '''
changed: changed:
description: Whether the resource is changed. description:
- Whether the resource is changed.
returned: always returned: always
type: bool type: bool
sample: true
id: id:
description: resource id. description:
- Resource ID.
returned: success returned: success
type: str type: str
sample: "/subscriptions/xxx...xxx/resourceGroups/v-xisuRG/providers/Microsoft.Network/routeTables/tableb57dc95642/routes/routeb57dc95986"
''' '''
try: try:

@ -19,7 +19,7 @@ module: azure_rm_routetable_facts
version_added: "2.7" version_added: "2.7"
short_description: Get route table facts. short_description: Get route table facts
description: description:
- Get facts for a specific route table or all route table in a resource group or subscription. - Get facts for a specific route table or all route table in a resource group or subscription.
@ -39,7 +39,7 @@ extends_documentation_fragment:
- azure - azure
author: author:
- "Yuwei Zhou (@yuwzho)" - Yuwei Zhou (@yuwzho)
''' '''
@ -61,37 +61,49 @@ EXAMPLES = '''
''' '''
RETURN = ''' RETURN = '''
id: id:
description: Resource id. description:
- Resource ID.
returned: success returned: success
type: str type: str
sample: "/subscriptions/xxxx...xxxx/resourceGroups/v-xisuRG/providers/Microsoft.Network/routeTables/tableb57dc95236"
name: name:
description: Name of the resource. description:
- Name of the resource.
returned: success returned: success
type: str type: str
sample: tableb57dc95236
resource_group: resource_group:
description: Resource group of the route table. description:
- Resource group of the route table.
returned: success returned: success
type: str type: str
sample: v-xisuRG
disable_bgp_route_propagation: disable_bgp_route_propagation:
description: Whether the routes learned by BGP on that route table disabled. description:
- Whether the routes learned by BGP on that route table disabled.
returned: success returned: success
type: bool type: bool
sample: false
tags: tags:
description: Tags of the route table. description:
- Tags of the route table.
returned: success returned: success
type: list type: dict
sample: { 'key1':'value1', 'key2':'value2'}
routes: routes:
description: Current routes of the route table. description:
- Current routes of the route table.
returned: success returned: success
type: list type: list
sample: [ sample: [
{ {
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroup/myResourceGroup/providers/Microsoft.Network/routeTables/foobar/routes/route", "id": "/subscriptions/xxx...xxx/resourceGroups/v-xisuRG/providers/Microsoft.Network/routeTables/tableb57dc95236/routes/routeb57dc95540",
"name": "route", "name": "routeb57dc95540",
"resource_group": "Testing", "resource_group": "v-xisuRG",
"routeTables": "foobar", "route_table_name": "tableb57dc95236",
"address_prefix": "192.0.0.1", "address_prefix": "10.1.0.0/24",
"next_hop_type": "virtual_networkGateway" "next_hop_type": "virtual_network_gateway",
"next_hop_ip_address": null
} }
] ]
''' '''

Loading…
Cancel
Save