1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fixed docs for cloud modules (#23745)

* Fixed docs for cloud modules

* removed blank line in ec2_snapshot_facts
This commit is contained in:
Andrea Tartaglia 2017-04-27 12:01:11 +01:00 committed by John R Barker
parent ce99ffe205
commit 1d0a629dcc
82 changed files with 335 additions and 232 deletions

View file

@ -204,6 +204,7 @@ log:
sample: ["updating stack"] sample: ["updating stack"]
stack_resources: stack_resources:
description: AWS stack resources and their status. List of dictionaries, one dict per resource. description: AWS stack resources and their status. List of dictionaries, one dict per resource.
returned: state == present
type: list type: list
sample: [ sample: [
{ {
@ -218,7 +219,7 @@ stack_resources:
stack_outputs: stack_outputs:
type: dict type: dict
description: A key:value dictionary of all the stack outputs currently defined. If there are no stack outputs, it is an empty dictionary. description: A key:value dictionary of all the stack outputs currently defined. If there are no stack outputs, it is an empty dictionary.
returned: always returned: state == present
sample: {"MySg": "AnsibleModuleTestYAML-CFTestSg-C8UVS567B6NS"} sample: {"MySg": "AnsibleModuleTestYAML-CFTestSg-C8UVS567B6NS"}
''' # NOQA ''' # NOQA

View file

@ -124,7 +124,7 @@ stack_parameters:
stack_events: stack_events:
description: All stack events for the stack description: All stack events for the stack
returned: only if all_facts or stack_events is true returned: only if all_facts or stack_events is true
type: list of events type: list
stack_policy: stack_policy:
description: Describes the stack policy for the stack description: Describes the stack policy for the stack
returned: only if all_facts or stack_policy is true returned: only if all_facts or stack_policy is true
@ -136,7 +136,7 @@ stack_template:
stack_resource_list: stack_resource_list:
description: Describes stack resources for the stack description: Describes stack resources for the stack
returned: only if all_facts or stack_resourses is true returned: only if all_facts or stack_resourses is true
type: list of resources type: list
stack_resources: stack_resources:
description: Dictionary of stack resources keyed by the value of each resource 'LogicalResourceId' parameter and corresponding value of each description: Dictionary of stack resources keyed by the value of each resource 'LogicalResourceId' parameter and corresponding value of each
resource 'PhysicalResourceId' parameter resource 'PhysicalResourceId' parameter

View file

@ -256,7 +256,7 @@ architecture:
block_device_mapping: block_device_mapping:
description: block device mapping associated with image description: block device mapping associated with image
returned: when AMI is created or already exists returned: when AMI is created or already exists
type: a dictionary of block devices type: dict
sample: { sample: {
"/dev/sda1": { "/dev/sda1": {
"delete_on_termination": true, "delete_on_termination": true,
@ -329,7 +329,7 @@ state:
tags: tags:
description: a dictionary of tags assigned to image description: a dictionary of tags assigned to image
returned: when AMI is created or already exists returned: when AMI is created or already exists
type: dictionary of tags type: dict
sample: { sample: {
"Env": "devel", "Env": "devel",
"Name": "nat-server" "Name": "nat-server"

View file

@ -213,7 +213,7 @@ architecture:
block_device_mapping: block_device_mapping:
description: block device mapping associated with image description: block device mapping associated with image
returned: when AMI found returned: when AMI found
type: dictionary of block devices type: dict
sample: "{ sample: "{
'/dev/xvda': { '/dev/xvda': {
'delete_on_termination': true, 'delete_on_termination': true,
@ -280,7 +280,7 @@ state:
tags: tags:
description: tags assigned to image description: tags assigned to image
returned: when AMI found returned: when AMI found
type: dictionary of tags type: dict
sample: "{ sample: "{
'Environment': 'devel', 'Environment': 'devel',
'Name': 'test-server01', 'Name': 'test-server01',

View file

@ -190,7 +190,7 @@ RETURN = '''
interface: interface:
description: Network interface attributes description: Network interface attributes
returned: when state != absent returned: when state != absent
type: dictionary type: complex
contains: contains:
description: description:
description: interface description description: interface description

View file

@ -94,6 +94,7 @@ RETURN = '''
security_groups: security_groups:
description: Security groups that match the provided filters. Each element consists of a dict with all the information related to that security group. description: Security groups that match the provided filters. Each element consists of a dict with all the information related to that security group.
type: list type: list
returned: always
sample: sample:
''' '''

View file

@ -83,7 +83,8 @@ EXAMPLES = '''
RETURN = ''' RETURN = '''
block_device_mapping: block_device_mapping:
description: Block device mapping for the instances of launch configuration description: Block device mapping for the instances of launch configuration
type: list of block devices type: list
returned: always
sample: "[{ sample: "[{
'device_name': '/dev/xvda':, 'device_name': '/dev/xvda':,
'ebs': { 'ebs': {
@ -94,58 +95,71 @@ block_device_mapping:
classic_link_vpc_security_groups: classic_link_vpc_security_groups:
description: IDs of one or more security groups for the VPC specified in classic_link_vpc_id description: IDs of one or more security groups for the VPC specified in classic_link_vpc_id
type: string type: string
returned: always
sample: sample:
created_time: created_time:
description: The creation date and time for the launch configuration description: The creation date and time for the launch configuration
type: string type: string
returned: always
sample: "2016-05-27T13:47:44.216000+00:00" sample: "2016-05-27T13:47:44.216000+00:00"
ebs_optimized: ebs_optimized:
description: EBS I/O optimized (true ) or not (false ) description: EBS I/O optimized (true ) or not (false )
type: bool type: bool
returned: always
sample: true, sample: true,
image_id: image_id:
description: ID of the Amazon Machine Image (AMI) description: ID of the Amazon Machine Image (AMI)
type: string type: string
returned: always
sample: "ami-12345678" sample: "ami-12345678"
instance_monitoring: instance_monitoring:
description: Launched with detailed monitoring or not description: Launched with detailed monitoring or not
type: dict type: dict
returned: always
sample: "{ sample: "{
'enabled': true 'enabled': true
}" }"
instance_type: instance_type:
description: Instance type description: Instance type
type: string type: string
returned: always
sample: "t2.micro" sample: "t2.micro"
kernel_id: kernel_id:
description: ID of the kernel associated with the AMI description: ID of the kernel associated with the AMI
type: string type: string
returned: always
sample: sample:
key_name: key_name:
description: Name of the key pair description: Name of the key pair
type: string type: string
returned: always
sample: "user_app" sample: "user_app"
launch_configuration_arn: launch_configuration_arn:
description: Amazon Resource Name (ARN) of the launch configuration description: Amazon Resource Name (ARN) of the launch configuration
type: string type: string
returned: always
sample: "arn:aws:autoscaling:us-east-1:666612345678:launchConfiguration:ba785e3a-dd42-6f02-4585-ea1a2b458b3d:launchConfigurationName/lc-app" sample: "arn:aws:autoscaling:us-east-1:666612345678:launchConfiguration:ba785e3a-dd42-6f02-4585-ea1a2b458b3d:launchConfigurationName/lc-app"
launch_configuration_name: launch_configuration_name:
description: Name of the launch configuration description: Name of the launch configuration
type: string type: string
returned: always
sample: "lc-app" sample: "lc-app"
ramdisk_id: ramdisk_id:
description: ID of the RAM disk associated with the AMI description: ID of the RAM disk associated with the AMI
type: string type: string
returned: always
sample: sample:
security_groups: security_groups:
description: Security groups to associated description: Security groups to associated
type: list type: list
returned: always
sample: "[ sample: "[
'web' 'web'
]" ]"
user_data: user_data:
description: User data available description: User data available
type: string type: string
returned: always
sample: sample:
''' '''

View file

@ -83,7 +83,7 @@ user_data:
description: User data used to start instance description: User data used to start instance
returned: when Launch Configuration was found returned: when Launch Configuration was found
type: string type: string
user_data: "ZXhwb3J0IENMT1VE" sample: "ZXhwb3J0IENMT1VE"
name: name:
description: Name of the AMI description: Name of the AMI
returned: when Launch Configuration was found returned: when Launch Configuration was found

View file

@ -103,62 +103,76 @@ RETURN = '''
snapshot_id: snapshot_id:
description: The ID of the snapshot. Each snapshot receives a unique identifier when it is created. description: The ID of the snapshot. Each snapshot receives a unique identifier when it is created.
type: string type: string
returned: always
sample: snap-01234567 sample: snap-01234567
volume_id: volume_id:
description: The ID of the volume that was used to create the snapshot. description: The ID of the volume that was used to create the snapshot.
type: string type: string
returned: always
sample: vol-01234567 sample: vol-01234567
state: state:
description: The snapshot state (completed, pending or error). description: The snapshot state (completed, pending or error).
type: string type: string
returned: always
sample: completed sample: completed
state_message: state_message:
description: Encrypted Amazon EBS snapshots are copied asynchronously. If a snapshot copy operation fails (for example, if the proper description: Encrypted Amazon EBS snapshots are copied asynchronously. If a snapshot copy operation fails (for example, if the proper
AWS Key Management Service (AWS KMS) permissions are not obtained) this field displays error state details to help you diagnose why the AWS Key Management Service (AWS KMS) permissions are not obtained) this field displays error state details to help you diagnose why the
error occurred. error occurred.
type: string type: string
returned: always
sample: sample:
start_time: start_time:
description: The time stamp when the snapshot was initiated. description: The time stamp when the snapshot was initiated.
type: datetime type: string
sample: 2015-02-12T02:14:02+00:00 returned: always
sample: "2015-02-12T02:14:02+00:00"
progress: progress:
description: The progress of the snapshot, as a percentage. description: The progress of the snapshot, as a percentage.
type: string type: string
sample: 100% returned: always
sample: "100%"
owner_id: owner_id:
description: The AWS account ID of the EBS snapshot owner. description: The AWS account ID of the EBS snapshot owner.
type: string type: string
sample: 099720109477 returned: always
sample: "099720109477"
description: description:
description: The description for the snapshot. description: The description for the snapshot.
type: string type: string
sample: My important backup returned: always
sample: "My important backup"
volume_size: volume_size:
description: The size of the volume, in GiB. description: The size of the volume, in GiB.
type: integer type: int
returned: always
sample: 8 sample: 8
owner_alias: owner_alias:
description: The AWS account alias (for example, amazon, self) or AWS account ID that owns the snapshot. description: The AWS account alias (for example, amazon, self) or AWS account ID that owns the snapshot.
type: string type: string
sample: 033440102211 returned: always
sample: "033440102211"
tags: tags:
description: Any tags assigned to the snapshot. description: Any tags assigned to the snapshot.
type: dict type: dict
returned: always
sample: "{ 'my_tag_key': 'my_tag_value' }" sample: "{ 'my_tag_key': 'my_tag_value' }"
encrypted: encrypted:
description: Indicates whether the snapshot is encrypted. description: Indicates whether the snapshot is encrypted.
type: boolean type: boolean
sample: True returned: always
sample: "True"
kms_key_id: kms_key_id:
description: The full ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) that was used to \ description: The full ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) that was used to \
protect the volume encryption key for the parent volume. protect the volume encryption key for the parent volume.
type: string type: string
sample: 74c9742a-a1b2-45cb-b3fe-abcdef123456 returned: always
sample: "74c9742a-a1b2-45cb-b3fe-abcdef123456"
data_encryption_key_id: data_encryption_key_id:
description: The data encryption key identifier for the snapshot. This value is a unique identifier that \ description: The data encryption key identifier for the snapshot. This value is a unique identifier that \
corresponds to the data encryption key that was used to encrypt the original volume or snapshot copy. corresponds to the data encryption key that was used to encrypt the original volume or snapshot copy.
type: string type: string
returned: always
sample: "arn:aws:kms:ap-southeast-2:012345678900:key/74c9742a-a1b2-45cb-b3fe-abcdef123456" sample: "arn:aws:kms:ap-southeast-2:012345678900:key/74c9742a-a1b2-45cb-b3fe-abcdef123456"
''' '''

View file

@ -71,7 +71,7 @@ RETURN = '''
nacl: nacl:
description: Returns an array of complex objects as described below. description: Returns an array of complex objects as described below.
returned: success returned: success
type: list of complex type: complex
contains: contains:
nacl_id: nacl_id:
description: The ID of the Network Access Control List. description: The ID of the Network Access Control List.

View file

@ -83,11 +83,13 @@ activeServicesCount:
type: int type: int
clusterArn: clusterArn:
description: the ARN of the cluster just created description: the ARN of the cluster just created
type: string (ARN) type: string
returned: 0 if a new cluster
sample: arn:aws:ecs:us-west-2:172139249013:cluster/test-cluster-mfshcdok sample: arn:aws:ecs:us-west-2:172139249013:cluster/test-cluster-mfshcdok
clusterName: clusterName:
description: name of the cluster just created (should match the input argument) description: name of the cluster just created (should match the input argument)
type: string type: string
returned: always
sample: test-cluster-mfshcdok sample: test-cluster-mfshcdok
pendingTasksCount: pendingTasksCount:
description: how many tasks are waiting to run in this cluster description: how many tasks are waiting to run in this cluster
@ -103,8 +105,9 @@ runningTasksCount:
type: int type: int
status: status:
description: the status of the new cluster description: the status of the new cluster
returned: ACTIVE returned: always
type: string type: string
sample: ACTIVE
''' '''
import time import time

View file

@ -104,9 +104,11 @@ RETURN = '''
state: state:
type: string type: string
description: The asserted state of the repository (present, absent) description: The asserted state of the repository (present, absent)
returned: always
created: created:
type: boolean type: boolean
description: If true, the repository was created description: If true, the repository was created
returned: always
name: name:
type: string type: string
description: The name of the repository description: The name of the repository

View file

@ -71,7 +71,7 @@ RETURN = '''
services: services:
description: When details is false, returns an array of service ARNs, otherwise an array of complex objects as described below. description: When details is false, returns an array of service ARNs, otherwise an array of complex objects as described below.
returned: success returned: success
type: list of complex type: complex
contains: contains:
clusterArn: clusterArn:
description: The Amazon Resource Name (ARN) of the of the cluster that hosts the service. description: The Amazon Resource Name (ARN) of the of the cluster that hosts the service.

View file

@ -111,7 +111,8 @@ EXAMPLES = '''
RETURN = ''' RETURN = '''
taskdefinition: taskdefinition:
description: a reflection of the input parameters description: a reflection of the input parameters
type: dict inputs plus revision, status, taskDefinitionArn type: dict
returned: always
''' '''
try: try:
import boto import boto

View file

@ -115,33 +115,33 @@ EXAMPLES = '''
RETURN = ''' RETURN = '''
creation_time: creation_time:
description: timestamp of creation date description: timestamp of creation date
returned: returned: always
type: datetime type: string
sample: 2015-11-16 07:30:57-05:00 sample: "2015-11-16 07:30:57-05:00"
creation_token: creation_token:
description: EFS creation token description: EFS creation token
returned: returned: always
type: UUID type: string
sample: console-88609e04-9a0e-4a2e-912c-feaa99509961 sample: "console-88609e04-9a0e-4a2e-912c-feaa99509961"
file_system_id: file_system_id:
description: ID of the file system description: ID of the file system
returned: returned: always
type: unique ID type: string
sample: fs-xxxxxxxx sample: "fs-xxxxxxxx"
life_cycle_state: life_cycle_state:
description: state of the EFS file system description: state of the EFS file system
returned: returned: always
type: str type: string
sample: creating, available, deleting, deleted sample: "creating, available, deleting, deleted"
mount_point: mount_point:
description: url of file system description: url of file system
returned: returned: always
type: str type: string
sample: .fs-xxxxxxxx.efs.us-west-2.amazonaws.com:/ sample: ".fs-xxxxxxxx.efs.us-west-2.amazonaws.com:/"
mount_targets: mount_targets:
description: list of mount targets description: list of mount targets
returned: returned: always
type: list of dicts type: list
sample: sample:
[ [
{ {
@ -160,22 +160,22 @@ mount_targets:
] ]
name: name:
description: name of the file system description: name of the file system
returned: returned: always
type: str type: string
sample: my-efs sample: "my-efs"
number_of_mount_targets: number_of_mount_targets:
description: the number of targets mounted description: the number of targets mounted
returned: returned: always
type: int type: int
sample: 3 sample: 3
owner_id: owner_id:
description: AWS account ID of EFS owner description: AWS account ID of EFS owner
returned: returned: always
type: str type: string
sample: XXXXXXXXXXXX sample: "XXXXXXXXXXXX"
size_in_bytes: size_in_bytes:
description: size of the file system in bytes as of a timestamp description: size of the file system in bytes as of a timestamp
returned: returned: always
type: dict type: dict
sample: sample:
{ {
@ -184,12 +184,12 @@ size_in_bytes:
} }
performance_mode: performance_mode:
description: performance mode of the file system description: performance mode of the file system
returned: returned: always
type: str type: string
sample: "generalPurpose" sample: "generalPurpose"
tags: tags:
description: tags on the efs instance description: tags on the efs instance
returned: returned: always
type: dict type: dict
sample: sample:
{ {

View file

@ -80,33 +80,33 @@ EXAMPLES = '''
RETURN = ''' RETURN = '''
creation_time: creation_time:
description: timestamp of creation date description: timestamp of creation date
returned: returned: always
type: datetime type: str
sample: 2015-11-16 07:30:57-05:00 sample: "2015-11-16 07:30:57-05:00"
creation_token: creation_token:
description: EFS creation token description: EFS creation token
returned: returned: always
type: UUID type: str
sample: console-88609e04-9a0e-4a2e-912c-feaa99509961 sample: console-88609e04-9a0e-4a2e-912c-feaa99509961
file_system_id: file_system_id:
description: ID of the file system description: ID of the file system
returned: returned: always
type: unique ID type: str
sample: fs-xxxxxxxx sample: fs-xxxxxxxx
life_cycle_state: life_cycle_state:
description: state of the EFS file system description: state of the EFS file system
returned: returned: always
type: str type: str
sample: creating, available, deleting, deleted sample: creating, available, deleting, deleted
mount_point: mount_point:
description: url of file system description: url of file system
returned: returned: always
type: str type: str
sample: .fs-xxxxxxxx.efs.us-west-2.amazonaws.com:/ sample: .fs-xxxxxxxx.efs.us-west-2.amazonaws.com:/
mount_targets: mount_targets:
description: list of mount targets description: list of mount targets
returned: returned: always
type: list of dicts type: list
sample: sample:
[ [
{ {
@ -125,22 +125,22 @@ mount_targets:
] ]
name: name:
description: name of the file system description: name of the file system
returned: returned: always
type: str type: str
sample: my-efs sample: my-efs
number_of_mount_targets: number_of_mount_targets:
description: the number of targets mounted description: the number of targets mounted
returned: returned: always
type: int type: int
sample: 3 sample: 3
owner_id: owner_id:
description: AWS account ID of EFS owner description: AWS account ID of EFS owner
returned: returned: always
type: str type: str
sample: XXXXXXXXXXXX sample: XXXXXXXXXXXX
size_in_bytes: size_in_bytes:
description: size of the file system in bytes as of a timestamp description: size of the file system in bytes as of a timestamp
returned: returned: always
type: dict type: dict
sample: sample:
{ {
@ -149,12 +149,12 @@ size_in_bytes:
} }
performance_mode: performance_mode:
description: performance mode of the file system description: performance mode of the file system
returned: returned: always
type: str type: str
sample: "generalPurpose" sample: "generalPurpose"
tags: tags:
description: tags on the efs instance description: tags on the efs instance
returned: returned: always
type: dict type: dict
sample: sample:
{ {

View file

@ -127,10 +127,12 @@ output:
logs: logs:
description: The last 4KB of the function logs. Only provided if I(tail_log) is true description: The last 4KB of the function logs. Only provided if I(tail_log) is true
type: string type: string
returned: if I(tail_log) == true
status: status:
description: C(StatusCode) of API call exit (200 for synchronous invokes, 202 for async) description: C(StatusCode) of API call exit (200 for synchronous invokes, 202 for async)
type: int type: int
sample: 200 sample: 200
returned: always
''' '''
import base64 import base64

View file

@ -92,26 +92,32 @@ RETURN = '''
path: path:
description: the path to the role description: the path to the role
type: string type: string
returned: always
sample: / sample: /
role_name: role_name:
description: the friendly name that identifies the role description: the friendly name that identifies the role
type: string type: string
returned: always
sample: myrole sample: myrole
role_id: role_id:
description: the stable and unique string identifying the role description: the stable and unique string identifying the role
type: string type: string
returned: always
sample: ABCDEFF4EZ4ABCDEFV4ZC sample: ABCDEFF4EZ4ABCDEFV4ZC
arn: arn:
description: the Amazon Resource Name (ARN) specifying the role description: the Amazon Resource Name (ARN) specifying the role
type: string type: string
returned: always
sample: "arn:aws:iam::1234567890:role/mynewrole" sample: "arn:aws:iam::1234567890:role/mynewrole"
create_date: create_date:
description: the date and time, in ISO 8601 date-time format, when the role was created description: the date and time, in ISO 8601 date-time format, when the role was created
type: string type: string
returned: always
sample: "2016-08-14T04:36:28+00:00" sample: "2016-08-14T04:36:28+00:00"
assume_role_policy_document: assume_role_policy_document:
description: the policy that grants an entity permission to assume the role description: the policy that grants an entity permission to assume the role
type: string type: string
returned: always
sample: { sample: {
'statement': [ 'statement': [
{ {
@ -128,6 +134,7 @@ assume_role_policy_document:
attached_policies: attached_policies:
description: a list of dicts containing the name and ARN of the managed IAM policies attached to the role description: a list of dicts containing the name and ARN of the managed IAM policies attached to the role
type: list type: list
returned: always
sample: [ sample: [
{ {
'policy_arn': 'arn:aws:iam::aws:policy/PowerUserAccess', 'policy_arn': 'arn:aws:iam::aws:policy/PowerUserAccess',

View file

@ -155,7 +155,7 @@ RETURN = '''
cluster: cluster:
description: dictionary containing all the cluster information description: dictionary containing all the cluster information
returned: success returned: success
type: dictionary type: complex
contains: contains:
identifier: identifier:
description: Id of the cluster. description: Id of the cluster.

View file

@ -77,7 +77,7 @@ RETURN = '''
group: group:
description: dictionary containing all Redshift subnet group information description: dictionary containing all Redshift subnet group information
returned: success returned: success
type: dictionary type: complex
contains: contains:
name: name:
description: name of the Redshift subnet group description: name of the Redshift subnet group

View file

@ -95,24 +95,40 @@ EXAMPLES = '''
RETURN = ''' RETURN = '''
index_document: index_document:
description: index document
type: complex
returned: always
contains:
suffix: suffix:
description: suffix that is appended to a request that is for a directory on the website endpoint description: suffix that is appended to a request that is for a directory on the website endpoint
returned: success returned: success
type: string type: string
sample: index.html sample: index.html
error_document: error_document:
description: error document
type: complex
returned: always
contains:
key: key:
description: object key name to use when a 4XX class error occurs description: object key name to use when a 4XX class error occurs
returned: when error_document parameter set returned: when error_document parameter set
type: string type: string
sample: error.html sample: error.html
redirect_all_requests_to: redirect_all_requests_to:
description: where to redirect requests
type: complex
returned: always
contains:
host_name: host_name:
description: name of the host where requests will be redirected. description: name of the host where requests will be redirected.
returned: when redirect all requests parameter set returned: when redirect all requests parameter set
type: string type: string
sample: ansible.com sample: ansible.com
routing_rules: routing_rules:
description: routing rules
type: complex
returned: always
contains:
routing_rule: routing_rule:
host_name: host_name:
description: name of the host where requests will be redirected. description: name of the host where requests will be redirected.
@ -132,7 +148,6 @@ routing_rules:
returned: when routing rule present returned: when routing rule present
type: string type: string
sample: documents/ sample: documents/
''' '''
import time import time

View file

@ -105,11 +105,13 @@ RETURN = '''
sns_arn: sns_arn:
description: The ARN of the topic you are modifying description: The ARN of the topic you are modifying
type: string type: string
returned: always
sample: "arn:aws:sns:us-east-1:123456789012:my_topic_name" sample: "arn:aws:sns:us-east-1:123456789012:my_topic_name"
sns_topic: sns_topic:
description: Dict of sns topic details description: Dict of sns topic details
type: dict type: dict
returned: always
sample: sample:
name: sns-topic-name name: sns-topic-name
state: present state: present

View file

@ -89,34 +89,42 @@ extends_documentation_fragment:
RETURN = ''' RETURN = '''
default_visibility_timeout: default_visibility_timeout:
description: The default visibility timeout in seconds. description: The default visibility timeout in seconds.
type: int
returned: always returned: always
sample: 30 sample: 30
delivery_delay: delivery_delay:
description: The delivery delay in seconds. description: The delivery delay in seconds.
type: int
returned: always returned: always
sample: 0 sample: 0
maximum_message_size: maximum_message_size:
description: The maximum message size in bytes. description: The maximum message size in bytes.
type: int
returned: always returned: always
sample: 262144 sample: 262144
message_retention_period: message_retention_period:
description: The message retention period in seconds. description: The message retention period in seconds.
type: int
returned: always returned: always
sample: 345600 sample: 345600
name: name:
description: Name of the SQS Queue description: Name of the SQS Queue
type: string
returned: always returned: always
sample: "queuename-987d2de0" sample: "queuename-987d2de0"
queue_arn: queue_arn:
description: The queue's Amazon resource name (ARN). description: The queue's Amazon resource name (ARN).
type: string
returned: on successful creation or update of the queue returned: on successful creation or update of the queue
sample: 'arn:aws:sqs:us-east-1:199999999999:queuename-987d2de0' sample: 'arn:aws:sqs:us-east-1:199999999999:queuename-987d2de0'
receive_message_wait_time: receive_message_wait_time:
description: The receive message wait time in seconds. description: The receive message wait time in seconds.
type: int
returned: always returned: always
sample: 0 sample: 0
region: region:
description: Region that the queue was created within description: Region that the queue was created within
type: string
returned: always returned: always
sample: 'us-east-1' sample: 'us-east-1'
''' '''

View file

@ -85,6 +85,7 @@ EXAMPLES = '''
RETURN = ''' RETURN = '''
contains_resources: contains_resources:
description: Whether or not the resource group contains associated resources. description: Whether or not the resource group contains associated resources.
returned: always
type: bool type: bool
sample: True sample: True
state: state:

View file

@ -314,7 +314,7 @@ azure_vm:
description: Facts about the current state of the object. Note that facts are not part of the registered output but available directly. description: Facts about the current state of the object. Note that facts are not part of the registered output but available directly.
returned: always returned: always
type: complex type: complex
example: { contains: {
"properties": { "properties": {
"hardwareProfile": { "hardwareProfile": {
"vmSize": "Standard_D1" "vmSize": "Standard_D1"

View file

@ -228,13 +228,11 @@ vm_guest_ip:
sample: 10.101.65.152 sample: 10.101.65.152
vpc: vpc:
description: Name of the VPC. description: Name of the VPC.
version_added: "2.3"
returned: success returned: success
type: string type: string
sample: my_vpc sample: my_vpc
network: network:
description: Name of the network. description: Name of the network.
version_added: "2.3"
returned: success returned: success
type: string type: string
sample: dmz sample: dmz

View file

@ -86,7 +86,7 @@ RETURN = '''
network: network:
description: Dictionary describing the network. description: Dictionary describing the network.
returned: On success when I(state=present). returned: On success when I(state=present).
type: dictionary type: complex
contains: contains:
id: id:
description: Network ID. description: Network ID.

View file

@ -242,7 +242,7 @@ RETURN = '''
image: image:
description: Image inspection results for the affected image. description: Image inspection results for the affected image.
returned: success returned: success
type: complex type: dict
sample: {} sample: {}
''' '''

View file

@ -157,7 +157,7 @@ RETURN = '''
facts: facts:
description: Network inspection results for the affected network. description: Network inspection results for the affected network.
returned: success returned: success
type: complex type: dict
sample: {} sample: {}
''' '''

View file

@ -206,7 +206,7 @@ named_ports:
size: size:
description: Number of VMs in Managed Instance Group. description: Number of VMs in Managed Instance Group.
returned: changed returned: changed
type: integer type: int
sample: 4 sample: 4
created_instances: created_instances:

View file

@ -176,7 +176,7 @@ timeout:
description: In seconds, how long before a request sent to a backend is description: In seconds, how long before a request sent to a backend is
considered failed. considered failed.
returned: If specified. returned: If specified.
type: integer type: int
sample: "myhttpport" sample: "myhttpport"
''' '''

View file

@ -159,13 +159,13 @@ publish:
description: List of dictionaries describing messages and attributes to be published. Dictionary is in message(str):attributes(dict) format. description: List of dictionaries describing messages and attributes to be published. Dictionary is in message(str):attributes(dict) format.
Only message is required. Only message is required.
returned: Only when specified returned: Only when specified
type: list of dictionary type: list
sample: "publish: ['message': 'my message', attributes: {'key1': 'value1'}]" sample: "publish: ['message': 'my message', attributes: {'key1': 'value1'}]"
pulled_messages: pulled_messages:
description: list of dictionaries containing message info. Fields are ack_id, attributes, data, message_id. description: list of dictionaries containing message info. Fields are ack_id, attributes, data, message_id.
returned: Only when subscription.pull is specified returned: Only when subscription.pull is specified
type: list of dictionary type: list
sample: [{ "ack_id": "XkASTCcYREl...","attributes": {"key1": "val1",...}, "data": "this is message 1", "message_id": "49107464153705"},..] sample: [{ "ack_id": "XkASTCcYREl...","attributes": {"key1": "val1",...}, "data": "this is message 1", "message_id": "49107464153705"},..]
state: state:

View file

@ -392,7 +392,7 @@ RETURN="""
lxc_container: lxc_container:
description: container information description: container information
returned: success returned: success
type: list type: complex
contains: contains:
name: name:
description: name of the lxc container description: name of the lxc container

View file

@ -231,7 +231,7 @@ RETURN='''
addresses: addresses:
description: Mapping from the network device name to a list of IPv4 addresses in the container description: Mapping from the network device name to a list of IPv4 addresses in the container
returned: when state is started or restarted returned: when state is started or restarted
type: object type: dict
sample: {"eth0": ["10.155.92.191"]} sample: {"eth0": ["10.155.92.191"]}
old_state: old_state:
description: The old state of the container description: The old state of the container

View file

@ -135,7 +135,7 @@ RETURN = '''
openstack_flavors: openstack_flavors:
description: Dictionary describing the flavors. description: Dictionary describing the flavors.
returned: On success. returned: On success.
type: dictionary type: complex
contains: contains:
id: id:
description: Flavor ID. description: Flavor ID.

View file

@ -87,7 +87,7 @@ RETURN = '''
group: group:
description: Dictionary describing the group. description: Dictionary describing the group.
returned: On success when I(state) is 'present'. returned: On success when I(state) is 'present'.
type: dictionary type: complex
contains: contains:
id: id:
description: Unique group ID description: Unique group ID

View file

@ -71,7 +71,7 @@ RETURN = '''
ansible_facts: ansible_facts:
description: Dictionary of new facts representing discovered properties of the node.. description: Dictionary of new facts representing discovered properties of the node..
returned: changed returned: changed
type: dictionary type: complex
contains: contains:
memory_mb: memory_mb:
description: Amount of node memory as updated in the node properties description: Amount of node memory as updated in the node properties

View file

@ -80,7 +80,7 @@ RETURN = '''
domain: domain:
description: Dictionary describing the domain. description: Dictionary describing the domain.
returned: On success when I(state) is 'present' returned: On success when I(state) is 'present'
type: dictionary type: complex
contains: contains:
id: id:
description: Domain ID. description: Domain ID.

View file

@ -65,7 +65,7 @@ RETURN = '''
role: role:
description: Dictionary describing the role. description: Dictionary describing the role.
returned: On success when I(state) is 'present'. returned: On success when I(state) is 'present'.
type: dictionary type: complex
contains: contains:
id: id:
description: Unique role ID. description: Unique role ID.

View file

@ -83,7 +83,7 @@ RETURN = '''
service: service:
description: Dictionary describing the service. description: Dictionary describing the service.
returned: On success when I(state) is 'present' returned: On success when I(state) is 'present'
type: dictionary type: complex
contains: contains:
id: id:
description: Service ID. description: Service ID.

View file

@ -103,7 +103,7 @@ RETURN = '''
network: network:
description: Dictionary describing the network. description: Dictionary describing the network.
returned: On success when I(state) is 'present'. returned: On success when I(state) is 'present'.
type: dictionary type: complex
contains: contains:
id: id:
description: Network ID. description: Network ID.

View file

@ -130,7 +130,7 @@ RETURN = '''
flavor: flavor:
description: Dictionary describing the flavor. description: Dictionary describing the flavor.
returned: On success when I(state) is 'present' returned: On success when I(state) is 'present'
type: dictionary type: complex
contains: contains:
id: id:
description: Flavor ID. description: Flavor ID.

View file

@ -186,7 +186,7 @@ network_id:
security_groups: security_groups:
description: Security group(s) associated with this port. description: Security group(s) associated with this port.
returned: success returned: success
type: list of strings type: list
status: status:
description: Port's status. description: Port's status.
returned: success returned: success
@ -194,7 +194,7 @@ status:
fixed_ips: fixed_ips:
description: Fixed ip(s) associated with this port. description: Fixed ip(s) associated with this port.
returned: success returned: success
type: list of dicts type: list
tenant_id: tenant_id:
description: Tenant id associated with this port. description: Tenant id associated with this port.
returned: success returned: success
@ -202,7 +202,7 @@ tenant_id:
allowed_address_pairs: allowed_address_pairs:
description: Allowed address pairs with this port. description: Allowed address pairs with this port.
returned: success returned: success
type: list of dicts type: list
admin_state_up: admin_state_up:
description: Admin state up flag for this port. description: Admin state up flag for this port.
returned: success returned: success

View file

@ -90,7 +90,7 @@ RETURN = '''
project: project:
description: Dictionary describing the project. description: Dictionary describing the project.
returned: On success when I(state) is 'present' returned: On success when I(state) is 'present'
type: dictionary type: complex
contains: contains:
id: id:
description: Project ID description: Project ID

View file

@ -241,46 +241,46 @@ RETURN = '''
openstack_quotas: openstack_quotas:
description: Dictionary describing the project quota. description: Dictionary describing the project quota.
returned: Regardless if changes where made or note returned: Regardless if changes where made or note
type: dictionary type: complex
contains example: contains:
"openstack_quotas": { openstack_quotas: {
"compute": { compute: {
"cores": 150, cores: 150,
"fixed_ips": -1, fixed_ips: -1,
"floating_ips": 10, floating_ips: 10,
"injected_file_content_bytes": 10240, injected_file_content_bytes: 10240,
"injected_file_path_bytes": 255, injected_file_path_bytes: 255,
"injected_files": 5, injected_files: 5,
"instances": 100, instances: 100,
"key_pairs": 100, key_pairs: 100,
"metadata_items": 128, metadata_items: 128,
"ram": 153600, ram: 153600,
"security_group_rules": 20, security_group_rules: 20,
"security_groups": 10, security_groups: 10,
"server_group_members": 10, server_group_members: 10,
"server_groups": 10 server_groups: 10
}, },
"network": { network: {
"floatingip": 50, floatingip: 50,
"network": 10, network: 10,
"port": 160, port: 160,
"rbac_policy": 10, rbac_policy: 10,
"router": 10, router: 10,
"security_group": 10, security_group: 10,
"security_group_rule": 100, security_group_rule: 100,
"subnet": 10, subnet: 10,
"subnetpool": -1 subnetpool: -1
}, },
"volume": { volume: {
"backup_gigabytes": 1000, backup_gigabytes: 1000,
"backups": 10, backups: 10,
"gigabytes": 1000, gigabytes: 1000,
"gigabytes_lvm": -1, gigabytes_lvm: -1,
"per_volume_gigabytes": -1, per_volume_gigabytes: -1,
"snapshots": 10, snapshots: 10,
"snapshots_lvm": -1, snapshots_lvm: -1,
"volumes": 10, volumes: 10,
"volumes_lvm": -1 volumes_lvm: -1
} }
} }

View file

@ -103,7 +103,7 @@ RETURN = '''
recordset: recordset:
description: Dictionary describing the recordset. description: Dictionary describing the recordset.
returned: On success when I(state) is 'present'. returned: On success when I(state) is 'present'.
type: dictionary type: complex
contains: contains:
id: id:
description: Unique recordset ID description: Unique recordset ID

View file

@ -133,7 +133,7 @@ RETURN = '''
router: router:
description: Dictionary describing the router. description: Dictionary describing the router.
returned: On success when I(state) is 'present' returned: On success when I(state) is 'present'
type: dictionary type: complex
contains: contains:
id: id:
description: Router ID. description: Router ID.

View file

@ -136,35 +136,43 @@ RETURN = '''
id: id:
description: Unique rule UUID. description: Unique rule UUID.
type: string type: string
returned: state == present
direction: direction:
description: The direction in which the security group rule is applied. description: The direction in which the security group rule is applied.
type: string type: string
sample: 'egress' sample: 'egress'
returned: state == present
ethertype: ethertype:
description: One of IPv4 or IPv6. description: One of IPv4 or IPv6.
type: string type: string
sample: 'IPv4' sample: 'IPv4'
returned: state == present
port_range_min: port_range_min:
description: The minimum port number in the range that is matched by description: The minimum port number in the range that is matched by
the security group rule. the security group rule.
type: int type: int
sample: 8000 sample: 8000
returned: state == present
port_range_max: port_range_max:
description: The maximum port number in the range that is matched by description: The maximum port number in the range that is matched by
the security group rule. the security group rule.
type: int type: int
sample: 8000 sample: 8000
returned: state == present
protocol: protocol:
description: The protocol that is matched by the security group rule. description: The protocol that is matched by the security group rule.
type: string type: string
sample: 'tcp' sample: 'tcp'
returned: state == present
remote_ip_prefix: remote_ip_prefix:
description: The remote IP prefix to be associated with this security group rule. description: The remote IP prefix to be associated with this security group rule.
type: string type: string
sample: '0.0.0.0/0' sample: '0.0.0.0/0'
returned: state == present
security_group_id: security_group_id:
description: The security group ID to associate with this security group rule. description: The security group ID to associate with this security group rule.
type: string type: string
returned: state == present
''' '''
try: try:

View file

@ -93,11 +93,11 @@ name:
policies: policies:
description: A list of one or more policy names of the server group. description: A list of one or more policy names of the server group.
returned: success returned: success
type: list of strings type: list
members: members:
description: A list of members in the server group. description: A list of members in the server group.
returned: success returned: success
type: list of strings type: list
metadata: metadata:
description: Metadata key and value pairs. description: Metadata key and value pairs.
returned: success returned: success

View file

@ -104,8 +104,13 @@ id:
description: Stack ID. description: Stack ID.
type: string type: string
sample: "97a3f543-8136-4570-920e-fd7605c989d6" sample: "97a3f543-8136-4570-920e-fd7605c989d6"
returned: always
stack: stack:
description: stack info
type: complex
returned: always
contains:
action: action:
description: Action, could be Create or Update. description: Action, could be Create or Update.
type: string type: string

View file

@ -118,7 +118,7 @@ RETURN = '''
user: user:
description: Dictionary describing the user. description: Dictionary describing the user.
returned: On success when I(state) is 'present' returned: On success when I(state) is 'present'
type: dictionary type: complex
contains: contains:
default_project_id: default_project_id:
description: User default project ID. Only present with Keystone >= v3. description: User default project ID. Only present with Keystone >= v3.

View file

@ -102,7 +102,7 @@ RETURN = '''
zone: zone:
description: Dictionary describing the zone. description: Dictionary describing the zone.
returned: On success when I(state) is 'present'. returned: On success when I(state) is 'present'.
type: dictionary type: complex
contains: contains:
id: id:
description: Unique zone ID description: Unique zone ID

View file

@ -131,6 +131,7 @@ affinity_group:
description: "Dictionary of all the affinity group attributes. Affinity group attributes can be found on your oVirt/RHV instance description: "Dictionary of all the affinity group attributes. Affinity group attributes can be found on your oVirt/RHV instance
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/affinity_group." at following url: https://ovirt.example.com/ovirt-engine/api/model#types/affinity_group."
returned: On success if affinity group is found. returned: On success if affinity group is found.
type: str
''' '''
import traceback import traceback

View file

@ -90,6 +90,7 @@ id:
affinity_label: affinity_label:
description: "Dictionary of all the affinity label attributes. Affinity label attributes can be found on your oVirt/RHV instance description: "Dictionary of all the affinity label attributes. Affinity label attributes can be found on your oVirt/RHV instance
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/affinity_label." at following url: https://ovirt.example.com/ovirt-engine/api/model#types/affinity_label."
type: dict
returned: On success if affinity label is found. returned: On success if affinity label is found.
''' '''

View file

@ -131,7 +131,7 @@ RETURN = '''
ovirt_auth: ovirt_auth:
description: Authentication facts, needed to perform authentication to oVirt/RHV. description: Authentication facts, needed to perform authentication to oVirt/RHV.
returned: success returned: success
type: dictionary type: complex
contains: contains:
token: token:
description: SSO token which is used for connection to oVirt/RHV engine. description: SSO token which is used for connection to oVirt/RHV engine.

View file

@ -256,6 +256,7 @@ id:
cluster: cluster:
description: "Dictionary of all the cluster attributes. Cluster attributes can be found on your oVirt/RHV instance description: "Dictionary of all the cluster attributes. Cluster attributes can be found on your oVirt/RHV instance
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/cluster." at following url: https://ovirt.example.com/ovirt-engine/api/model#types/cluster."
type: dict
returned: On success if cluster is found. returned: On success if cluster is found.
''' '''

View file

@ -95,6 +95,7 @@ data_center:
description: "Dictionary of all the datacenter attributes. Datacenter attributes can be found on your oVirt/RHV instance description: "Dictionary of all the datacenter attributes. Datacenter attributes can be found on your oVirt/RHV instance
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/datacenter." at following url: https://ovirt.example.com/ovirt-engine/api/model#types/datacenter."
returned: "On success if datacenter is found." returned: "On success if datacenter is found."
type: dict
''' '''
import traceback import traceback

View file

@ -196,12 +196,14 @@ disk:
description: "Dictionary of all the disk attributes. Disk attributes can be found on your oVirt/RHV instance description: "Dictionary of all the disk attributes. Disk attributes can be found on your oVirt/RHV instance
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/disk." at following url: https://ovirt.example.com/ovirt-engine/api/model#types/disk."
returned: "On success if disk is found and C(vm_id) or C(vm_name) wasn't passed." returned: "On success if disk is found and C(vm_id) or C(vm_name) wasn't passed."
type: dict
disk_attachment: disk_attachment:
description: "Dictionary of all the disk attachment attributes. Disk attachment attributes can be found description: "Dictionary of all the disk attachment attributes. Disk attachment attributes can be found
on your oVirt/RHV instance at following url: on your oVirt/RHV instance at following url:
https://ovirt.example.com/ovirt-engine/api/model#types/disk_attachment." https://ovirt.example.com/ovirt-engine/api/model#types/disk_attachment."
returned: "On success if disk is found and C(vm_id) or C(vm_name) was passed and VM was found." returned: "On success if disk is found and C(vm_id) or C(vm_name) was passed and VM was found."
type: dict
''' '''
import os import os

View file

@ -88,6 +88,7 @@ group:
description: "Dictionary of all the group attributes. Group attributes can be found on your oVirt/RHV instance description: "Dictionary of all the group attributes. Group attributes can be found on your oVirt/RHV instance
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/group." at following url: https://ovirt.example.com/ovirt-engine/api/model#types/group."
returned: On success if group is found. returned: On success if group is found.
type: dict
''' '''
import traceback import traceback

View file

@ -136,6 +136,7 @@ host_nic:
description: "Dictionary of all the host NIC attributes. Host NIC attributes can be found on your oVirt/RHV instance description: "Dictionary of all the host NIC attributes. Host NIC attributes can be found on your oVirt/RHV instance
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/host_nic." at following url: https://ovirt.example.com/ovirt-engine/api/model#types/host_nic."
returned: On success if host NIC is found. returned: On success if host NIC is found.
type: dict
''' '''
import traceback import traceback

View file

@ -112,6 +112,7 @@ agent:
description: "Dictionary of all the agent attributes. Agent attributes can be found on your oVirt/RHV instance description: "Dictionary of all the agent attributes. Agent attributes can be found on your oVirt/RHV instance
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/agent." at following url: https://ovirt.example.com/ovirt-engine/api/model#types/agent."
returned: On success if agent is found. returned: On success if agent is found.
type: dict
''' '''
import traceback import traceback

View file

@ -176,6 +176,7 @@ host:
description: "Dictionary of all the host attributes. Host attributes can be found on your oVirt/RHV instance description: "Dictionary of all the host attributes. Host attributes can be found on your oVirt/RHV instance
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/host." at following url: https://ovirt.example.com/ovirt-engine/api/model#types/host."
returned: On success if host is found. returned: On success if host is found.
type: dict
''' '''
import traceback import traceback

View file

@ -84,6 +84,7 @@ template:
description: "Dictionary of all the MAC pool attributes. MAC pool attributes can be found on your oVirt/RHV instance description: "Dictionary of all the MAC pool attributes. MAC pool attributes can be found on your oVirt/RHV instance
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/mac_pool." at following url: https://ovirt.example.com/ovirt-engine/api/model#types/mac_pool."
returned: On success if MAC pool is found. returned: On success if MAC pool is found.
type: dict
''' '''
import traceback import traceback

View file

@ -101,6 +101,7 @@ network:
description: "Dictionary of all the network attributes. Network attributes can be found on your oVirt/RHV instance description: "Dictionary of all the network attributes. Network attributes can be found on your oVirt/RHV instance
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/network." at following url: https://ovirt.example.com/ovirt-engine/api/model#types/network."
returned: "On success if network is found." returned: "On success if network is found."
type: dict
''' '''
import traceback import traceback

View file

@ -107,6 +107,7 @@ nic:
description: "Dictionary of all the network interface attributes. Network interface attributes can be found on your oVirt/RHV instance description: "Dictionary of all the network interface attributes. Network interface attributes can be found on your oVirt/RHV instance
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/nic." at following url: https://ovirt.example.com/ovirt-engine/api/model#types/nic."
returned: On success if network interface is found. returned: On success if network interface is found.
type: dict
''' '''
try: try:

View file

@ -122,6 +122,7 @@ permission:
description: "Dictionary of all the permission attributes. Permission attributes can be found on your oVirt/RHV instance description: "Dictionary of all the permission attributes. Permission attributes can be found on your oVirt/RHV instance
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/permission." at following url: https://ovirt.example.com/ovirt-engine/api/model#types/permission."
returned: On success if permission is found. returned: On success if permission is found.
type: dict
''' '''
try: try:

View file

@ -125,6 +125,7 @@ quota:
description: "Dictionary of all the quota attributes. Quota attributes can be found on your oVirt/RHV instance description: "Dictionary of all the quota attributes. Quota attributes can be found on your oVirt/RHV instance
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/quota." at following url: https://ovirt.example.com/ovirt-engine/api/model#types/quota."
returned: On success if quota is found. returned: On success if quota is found.
type: dict
''' '''
try: try:

View file

@ -107,6 +107,7 @@ snapshot:
description: "Dictionary of all the snapshot attributes. Snapshot attributes can be found on your oVirt/RHV instance description: "Dictionary of all the snapshot attributes. Snapshot attributes can be found on your oVirt/RHV instance
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/snapshot." at following url: https://ovirt.example.com/ovirt-engine/api/model#types/snapshot."
returned: On success if snapshot is found. returned: On success if snapshot is found.
type: dict
''' '''

View file

@ -181,6 +181,7 @@ storage_domain:
description: "Dictionary of all the storage domain attributes. Storage domain attributes can be found on your oVirt/RHV instance description: "Dictionary of all the storage domain attributes. Storage domain attributes can be found on your oVirt/RHV instance
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/storage_domain." at following url: https://ovirt.example.com/ovirt-engine/api/model#types/storage_domain."
returned: On success if storage domain is found. returned: On success if storage domain is found.
type: dict
''' '''
try: try:

View file

@ -90,6 +90,7 @@ tag:
description: "Dictionary of all the tag attributes. Tag attributes can be found on your oVirt/RHV instance description: "Dictionary of all the tag attributes. Tag attributes can be found on your oVirt/RHV instance
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/tag." at following url: https://ovirt.example.com/ovirt-engine/api/model#types/tag."
returned: On success if tag is found. returned: On success if tag is found.
type: dict
''' '''
import traceback import traceback

View file

@ -117,6 +117,7 @@ template:
description: "Dictionary of all the template attributes. Template attributes can be found on your oVirt/RHV instance description: "Dictionary of all the template attributes. Template attributes can be found on your oVirt/RHV instance
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/template." at following url: https://ovirt.example.com/ovirt-engine/api/model#types/template."
returned: On success if template is found. returned: On success if template is found.
type: dict
''' '''
import time import time

View file

@ -82,6 +82,7 @@ user:
description: "Dictionary of all the user attributes. User attributes can be found on your oVirt/RHV instance description: "Dictionary of all the user attributes. User attributes can be found on your oVirt/RHV instance
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/user." at following url: https://ovirt.example.com/ovirt-engine/api/model#types/user."
returned: On success if user is found. returned: On success if user is found.
type: dict
''' '''
import traceback import traceback

View file

@ -106,6 +106,7 @@ vm_pool:
description: "Dictionary of all the VM pool attributes. VM pool attributes can be found on your oVirt/RHV instance description: "Dictionary of all the VM pool attributes. VM pool attributes can be found on your oVirt/RHV instance
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/vm_pool." at following url: https://ovirt.example.com/ovirt-engine/api/model#types/vm_pool."
returned: On success if VM pool is found. returned: On success if VM pool is found.
type: dict
''' '''
try: try:

View file

@ -493,6 +493,7 @@ vm:
description: "Dictionary of all the VM attributes. VM attributes can be found on your oVirt/RHV instance description: "Dictionary of all the VM attributes. VM attributes can be found on your oVirt/RHV instance
at following url: https://ovirt.example.com/ovirt-engine/api/model#types/vm." at following url: https://ovirt.example.com/ovirt-engine/api/model#types/vm."
returned: On success if VM is found. returned: On success if VM is found.
type: dict
''' '''
import traceback import traceback

View file

@ -205,7 +205,7 @@ changed:
returned: always returned: always
devices: devices:
description: Information about each device that was processed description: Information about each device that was processed
type: array type: list
sample: '[{"hostname": "my-server.com", "id": "server-id", "public-ipv4": "147.229.15.12", "private-ipv4": "10.0.15.12", "public-ipv6": ""2604:1380:2:5200::3"}]' sample: '[{"hostname": "my-server.com", "id": "server-id", "public-ipv4": "147.229.15.12", "private-ipv4": "10.0.15.12", "public-ipv6": ""2604:1380:2:5200::3"}]'
returned: always returned: always
''' # NOQA ''' # NOQA

View file

@ -94,7 +94,7 @@ changed:
returned: always returned: always
sshkeys: sshkeys:
description: Information about sshkeys that were createe/removed. description: Information about sshkeys that were createe/removed.
type: array type: list
sample: [ sample: [
{ {
"fingerprint": "5c:93:74:7c:ed:07:17:62:28:75:79:23:d6:08:93:46", "fingerprint": "5c:93:74:7c:ed:07:17:62:28:75:79:23:d6:08:93:46",

View file

@ -227,6 +227,7 @@ module_cache:
used few times it is better to pass cached data to next module calls to speed used few times it is better to pass cached data to next module calls to speed
up process." up process."
type: dict type: dict
returned: always
''' '''
import copy import copy
import os import os

View file

@ -273,7 +273,7 @@ EXAMPLES = '''
RETURN = """ RETURN = """
instance: instance:
descripton: metadata about the new virtualmachine description: metadata about the new virtualmachine
returned: always returned: always
type: dict type: dict
sample: None sample: None

View file

@ -118,7 +118,7 @@ EXAMPLES = '''
RETURN = """ RETURN = """
instance: instance:
descripton: metadata about the new virtualmachine description: metadata about the new virtualmachine
returned: always returned: always
type: dict type: dict
sample: None sample: None

View file

@ -101,7 +101,7 @@ hostname:
sample: "esxi.local.domain" sample: "esxi.local.domain"
status: status:
description: Action taken description: Action taken
return: always returned: always
type: string type: string
sample: "ENTER" sample: "ENTER"
''' '''

View file

@ -135,7 +135,7 @@ EXAMPLES = '''
RETURN = """ RETURN = """
instance: instance:
descripton: metadata about the new resource pool description: metadata about the new resource pool
returned: always returned: always
type: dict type: dict
sample: None sample: None

View file

@ -68,9 +68,7 @@ EXAMPLES = '''
RETURN = ''' RETURN = '''
running_host: running_host:
description: List the host the virtual machine is registered to description: List the host the virtual machine is registered to
returned: returned: changed or success
- changed
- success
type: string type: string
sample: 'host1.example.com' sample: 'host1.example.com'
''' '''