ansible / ansible.builtin / v2.9.27 / module / hwc_network_vpc Creates a Huawei Cloud VPC | "added in version" 2.8 of ansible.builtin" Authors: Huawei Inc. (@huaweicloud) preview | supported by communityansible.builtin.hwc_network_vpc (v2.9.27) — module
pip
Install with pip install ansible==2.9.27
Represents an vpc resource.
- name: create a vpc hwc_network_vpc: identity_endpoint: "{{ identity_endpoint }}" user: "{{ user }}" password: "{{ password }}" domain: "{{ domain }}" project: "{{ project }}" region: "{{ region }}" name: "vpc_1" cidr: "192.168.100.0/24" state: present
id: description: - The id of resource to be managed. type: str cidr: description: - The range of available subnets in the vpc. required: true type: str name: description: - The name of vpc. required: true type: str user: description: - The user name to login with (currently only user names are supported, and not user IDs). required: true type: str state: choices: - present - absent default: present description: - Whether the given object should exist in vpc. type: str domain: description: - The name of the Domain to scope to (Identity v3). (currently only domain names are supported, and not domain IDs). required: true type: str region: description: - The region to which the project belongs. type: str project: description: - The name of the Tenant (Identity v2) or Project (Identity v3). (currently only project names are supported, and not project IDs). required: true type: str password: description: - The password to login with. required: true type: str timeouts: description: - The timeouts for each operations. suboptions: create: default: 15m description: - The timeout for create operation. type: str delete: default: 15m description: - The timeout for delete operation. type: str update: default: 15m description: - The timeout for update operation. type: str type: dict version_added: '2.9' version_added_collection: ansible.builtin identity_endpoint: description: - The Identity authentication URL. required: true type: str
cidr: description: - the range of available subnets in the vpc. returned: success type: str enable_shared_snat: description: - show whether the shared snat is enabled. returned: success type: bool id: description: - the id of vpc. returned: success type: str name: description: - the name of vpc. returned: success type: str routes: contains: destination: description: - the destination network segment of a route. returned: success type: str next_hop: description: - the next hop of a route. If the route type is peering, it will provide VPC peering connection ID. returned: success type: str description: - the route information. returned: success type: complex status: description: - the status of vpc. returned: success type: str