Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
titleExample Post
collapsetrue
command:
POST /nws/v1/uwnetid/ktest17/admin

payload:
{
  "delAdmin": [ "noyd311", "noyd312", "noyd313" ],
  "addAdmin": "noyd410"
}

reply:
{
  "uwNetID": "ktest17",
  "actions": [
    {
      "admin": "noyd311",
      "type": "netid",
      "action": "delete"
    },
    {
      "admin": "noyd312",
      "type": "netid",
      "action": "delete"
    },
    {
      "admin": "noyd313",
      "type": "netid",
      "action": "delete"
    },
    {
      "admin": "noyd410",
      "type": "netid",
      "action": "add"
    }
  ],
  "status": 200,
  "result": "Okay",
  "timeStamp": "Thu, 14 Mar 2019 15:28:44 -0700",
  "duration": 1.547
}


azure - Azure LIcenses (v1.20.06)

get/nws/v1/azure

The azure resource is used to fetch the current table of Azure licenses used by the Office 365/Azure Licenses subscription handler (subscription 250).  This is a static table that only gets updated when new licenses are added or removed.  The fields returned [might] include the following:

KeywordTypeNotes
ordinalintegerThis ordinal can be used to index into the license string that appears in the subscription_data field for subscription 250.  Note that an ordinal for a license [very likely] won't change, but as licenses are eliminated and new ones are introduced an ordinal may end up getting reused at a later time.  Not all ordinals are in use and it's not the same as the index into the azureLicenseList array.
premiumbooleanPremium licenses will be released upon loss of permit so they can be reassigned.  Non-premium licenses go through a notification sequence with a two week delay before being released.
shortstringThe short name associated with the license.
namestringThe SKU name associated with the license.
oIdstringThe guid of the Azure group used for licensing.
skuIdstringThe guid of the actual Azure license.
descstringThe human-readable description of the license offering.


Code Block
languagepy
titleExample Get
collapsetrue
command:
GET /nws/v1/azure

reply:
{
  "azureLicenseList": [
    {
      "ordinal": 0,
      "premium": true,
      "short": "D365-CE",
      "name": "DYN365_ENTERPRISE_PLAN1",
      "oId": "004eefe7-4ca3-46e2-99cf-d6a91d5d55dd",
      "skuId": "ea126fc5-a19e-42e2-a731-da9d437bffcf",
      "desc": "Dynamics 365 Customer Engagement Plan"
    },
    {
      "ordinal": 1,
      "premium": true,
      "short": "D365-Team",
      "name": "DYN365_TEAM_MEMBERS",
      "oId": "1ede1058-1853-4305-a255-5e6d8d68994d",
      "skuId": "7ac9fe77-66b7-4e5e-9e46-10eed1cff547",
      "desc": "Dynamics 365 Team Members"
    },
    {
      "ordinal": 3,
      "premium": false,
      "short": "M365-A3",
      "name": "EMS",
      "oId": "fc2cb4e0-685e-4244-a6f1-2a11c3f93a94",
      "skuId": "efccb6f7-5641-4e0e-bd10-b4976e1bf68e",
      "desc": "Enterprise Mobility + Security E3"
    },
          [...]
    {
      "ordinal": 35,
      "premium": false,
      "short": null,
      "name": "POWERFLOW_P1_FACULTY",
      "oId": "03a500c4-c860-4b51-bc8b-5d7f15f80b86",
      "skuId": "a611f643-36d2-4c13-a8bc-f90c752fcee4",
      "desc": "Microsoft PowerApps Plan 1"
    }
  ],
  "timeStamp": "Tue, 30 Jun 2020 15:27:46 -0700",
  "duration": 0.000
}

basic – Operate on Basic Services (v1.17.07)

...

subhistory - Fetch subscription history information (v1.20.04)

get
  1. /nws/v1/subhistory/{subCodeList}
  2. /nws/v1/uwnetid/{netid}/subhistory/{subCodeList}

The subscription history function returns a table of history records for the specified UW NetID and subscription code(s).  Note that the "logname" field in the response should start with "INS" when a record is inserted, unless it was inserted a really long time ago, "UPD" when it gets updated and then "DEL" when the record got deleted.  YMMV.

...