Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Network segments for resources and data sources #16

Open
ecanault opened this issue Mar 16, 2023 · 0 comments
Open

Add Network segments for resources and data sources #16

ecanault opened this issue Mar 16, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@ecanault
Copy link

Hi,

This is a followup of #12 to request Network segments support for resources and data sources.

Description

Classic API Endpoint for Network segments is described here:

Endpoint URL: https://yourServer.jamfcloud.com/JSSResource/networksegments/id/{id}

Sample request body for PUT and POST:

<network_segment>
    <name>NY Office</name>
    <starting_address>10.1.1.1</starting_address>
    <ending_address>10.10.1.1</ending_address>
    <override_buildings>false</override_buildings>
    <override_departments>false</override_departments>
</network_segment>

Required parameter for every type of request:
id, set to 0 for a POST request.

Sample Go code for each method is available on the pages above, but I don't have the knowledge to develop this by myself.
I hope I'm doing it the good way to ask this, and thank you for creating a PR if you find this enhancement helpful!

@w0de w0de added the enhancement New feature or request label Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants