IBM-Cloud / ansible-collection-ibm

https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs
Mozilla Public License 2.0
70 stars 73 forks source link

ibm_is_snapshots_info - Arguments not expected here #68

Open DanielFarrarCO opened 3 years ago

DanielFarrarCO commented 3 years ago

Running this:

- name: Get all regional snapshots
  ibm.cloudcollection.ibm_is_snapshots_info:
    region: "{{vdc_region}}"
  register: list_snapshots

Returns this error:

Error: Unsupported argument

  on ibm_is_snapshots_ansible_20210816-170138.tf line 2, in data "ibm_is_snapshots" "ansible_20210816-170138":
   2:   region = "us-south"

An argument named "region" is not expected here.

Error: Unsupported argument

  on ibm_is_snapshots_ansible_20210816-170138.tf line 3, in data "ibm_is_snapshots" "ansible_20210816-170138":
   3:   ibmcloud_api_key = "*******"

An argument named "ibmcloud_api_key" is not expected here.

Error: Unsupported argument

  on ibm_is_snapshots_ansible_20210816-170138.tf line 4, in data "ibm_is_snapshots" "ansible_20210816-170138":
   4:   generation = 2

An argument named "generation" is not expected here.

But the documentation clearly lists those arguments inside of ibm_is_snapshots_info. ibm_is_snapshot and ibm_is_snapshot_info both work fine, not sure why this one fails.