mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-30 06:11:26 -07:00
cloudstack: streamline modules doc (part 4) (#53874)
* cloudstack: streamline modules doc (part 4) * Parameter types added * Copyright format fixes * Doc style fixes * Examples format fixes * validate-module errors fixes * cs_network_offering: Rollback of the deletion of the choice list for supported_services param
This commit is contained in:
parent
e8972ce459
commit
ef6da8ec5c
14 changed files with 278 additions and 244 deletions
|
@ -15,12 +15,13 @@ module: cs_resourcelimit
|
|||
short_description: Manages resource limits on Apache CloudStack based clouds.
|
||||
description:
|
||||
- Manage limits of resources for domains, accounts and projects.
|
||||
version_added: "2.1"
|
||||
author: "René Moser (@resmo)"
|
||||
version_added: '2.1'
|
||||
author: René Moser (@resmo)
|
||||
options:
|
||||
resource_type:
|
||||
description:
|
||||
- Type of the resource.
|
||||
type: str
|
||||
required: true
|
||||
choices:
|
||||
- instance
|
||||
|
@ -34,40 +35,44 @@ options:
|
|||
- memory
|
||||
- primary_storage
|
||||
- secondary_storage
|
||||
aliases: [ 'type' ]
|
||||
aliases: [ type ]
|
||||
limit:
|
||||
description:
|
||||
- Maximum number of the resource.
|
||||
- Default is unlimited C(-1).
|
||||
type: int
|
||||
default: -1
|
||||
aliases: [ 'max' ]
|
||||
aliases: [ max ]
|
||||
domain:
|
||||
description:
|
||||
- Domain the resource is related to.
|
||||
type: str
|
||||
account:
|
||||
description:
|
||||
- Account the resource is related to.
|
||||
type: str
|
||||
project:
|
||||
description:
|
||||
- Name of the project the resource is related to.
|
||||
type: str
|
||||
extends_documentation_fragment: cloudstack
|
||||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: Update a resource limit for instances of a domain
|
||||
local_action:
|
||||
module: cs_resourcelimit
|
||||
cs_resourcelimit:
|
||||
type: instance
|
||||
limit: 10
|
||||
domain: customers
|
||||
delegate_to: localhost
|
||||
|
||||
- name: Update a resource limit for instances of an account
|
||||
local_action:
|
||||
module: cs_resourcelimit
|
||||
cs_resourcelimit:
|
||||
type: instance
|
||||
limit: 12
|
||||
account: moserre
|
||||
domain: customers
|
||||
delegate_to: localhost
|
||||
'''
|
||||
|
||||
RETURN = '''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue