11.4. Methods

download PDF

11.4.1. Creating a Network Resource

Creation of a new network requires the name and datacenter elements.

Example 11.3. Creating a network resource

POST /api/networks HTTP/1.1
Accept: application/xml
Content-type: application/xml

    <name>network 1</name>
    <data_center id="00000000-0000-0000-0000-000000000000"/>

11.4.2. Updating a Network Resource

The name, description, ip, vlan, stp and display elements are updatable post-creation.

Example 11.4. Updating a network resource

PUT /api/networks/00000000-0000-0000-0000-000000000000 HTTP/1.1
Accept: application/xml
Content-type: application/xml

    <description>Network 1</description>

11.4.3. Removing a Network Resource

Removal of a network requires a DELETE request.

Example 11.5. Removing a network

DELETE /api/networks/00000000-0000-0000-0000-000000000000 HTTP/1.1

HTTP/1.1 204 No Content
Red Hat logoGithubRedditYoutubeTwitter


Try, buy, & sell


About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.