Datacenter

Example Syntax

    - name: Create datacenter
      ionoscloudsdk.ionoscloud.datacenter:
        name: "{{ datacenter }}"
        description: "{{ description }}"
        location: de/fra
      register: datacenter_response

    - name: Update datacenter
      ionoscloudsdk.ionoscloud.datacenter:
        id: "{{ datacenter_response.datacenter.id }}"
        name: "{{ datacenter }}"
        description: "{{ description }} - RENAMED"
        state: update
      register: updated_datacenter

    - name: Debug - Show Updated Datacenter
      debug:
        msg: "{{ updated_datacenter }}"

    - name: Remove datacenter
      ionoscloudsdk.ionoscloud.datacenter:
        id: "{{ datacenter_response.datacenter.id }}"
        name: "{{ datacenter }}"
        state: absent
      register: deleted_datacenter

Parameter Reference

The following parameters are supported:

Last updated