community.general.oneview_fcoe_network (8.5.0) — module

Manage OneView FCoE Network resources

Authors: Felipe Bulsoni (@fgbulsoni)

Install collection

Install with ansible-galaxy collection install community.general:==8.5.0


Add to requirements.yml

  collections:
    - name: community.general
      version: 8.5.0

Description

Provides an interface to manage FCoE Network resources. Can create, update, or delete.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Ensure that FCoE Network is present using the default configuration
  community.general.oneview_fcoe_network:
    config: '/etc/oneview/oneview_config.json'
    state: present
    data:
      name: Test FCoE Network
      vlanId: 201
  delegate_to: localhost
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Update the FCOE network scopes
  community.general.oneview_fcoe_network:
    config: '/etc/oneview/oneview_config.json'
    state: present
    data:
      name: New FCoE Network
      scopeUris:
        - '/rest/scopes/00SC123456'
        - '/rest/scopes/01SC123456'
  delegate_to: localhost
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Ensure that FCoE Network is absent
  community.general.oneview_fcoe_network:
    config: '/etc/oneview/oneview_config.json'
    state: absent
    data:
      name: New FCoE Network
  delegate_to: localhost

Inputs

    
data:
    description:
    - List with FCoE Network properties.
    required: true
    type: dict

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Indicates the desired state for the FCoE Network resource. V(present) will ensure
      data properties are compliant with OneView. V(absent) will remove the resource from
      OneView, if it exists.
    type: str

config:
    description:
    - Path to a JSON configuration file containing the OneView client configuration. The
      configuration file is optional and when used should be present in the host running
      the ansible commands. If the file path is not provided, the configuration will be
      loaded from environment variables. For links to example configuration files or how
      to use the environment variables verify the notes section.
    type: path

hostname:
    description:
    - IP address or hostname for the appliance.
    type: str

password:
    description:
    - Password for API authentication.
    type: str

username:
    description:
    - Username for API authentication.
    type: str

api_version:
    description:
    - OneView API Version.
    type: int

validate_etag:
    default: true
    description:
    - When the ETag Validation is enabled, the request will be conditionally processed
      only if the current ETag for the resource matches the ETag provided in the data.
    type: bool

image_streamer_hostname:
    description:
    - IP address or hostname for the HPE Image Streamer REST API.
    type: str

Outputs

fcoe_network:
  description: Has the facts about the OneView FCoE Networks.
  returned: On state 'present'. Can be null.
  type: dict