Community
    • Categories
    • Recent
    • Popular
    • Users
    • Search
    • Register
    • Login

    Ip-Adresse einem Objekt via API zuweisen

    Scheduled Pinned Locked Moved Entwicklung
    2 Posts 2 Posters 453 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      mirkomatonti
      last edited by

      Hallo,

      Ich benutze i-doit api, um ein internes Tool in meinem Unternehmen zu entwickeln. Gibt es eine Möglichkeit, mit api eine IP-Adresse zuzuweisen? Bis jetzt habe ich es geschafft, die Liste der verwendeten IP in einem Layer-3-Objekt zu erhalten und dann die verbleibenden freien Adressen zu berechnen, aber ich habe Schwierigkeiten, einen Weg zu finden, eine der freien IP meinen Objekten mit der Kategorie "C__CATG__IP" zuzuordnen.

      Sorry it's automatic translated.

      1 Reply Last reply Reply Quote 0
      • Philipp HörselmannP Offline
        Philipp Hörselmann
        last edited by

        Hey @mirkomatonti
        folgend findest du ein kurzes Beispiel einem Objekt eine IP zuzuweisen:
        {
        "jsonrpc": "2.0",
        "method": "cmdb.category.save",
        "params": {
        "category": "C__CATG__IP",
        "apikey": "APIKEY",
        "object": OBJECTID,
        "data": {
        "ipv4_address": "12.34.56.189",
        "hostname": "myserver",
        "domain": "domain.name",
        "primary": 1,
        "ipv4_assignment": 2,
        "net_type": 1,
        "active": 1,
        "id": 245
        }
        },
        "id": TENANT-ID
        }

        Viele Grüße
        Phil

        1 Reply Last reply Reply Quote 1

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post