Filter

Get

get

Retrieve the filter of a Published item.

Path parameters
idinteger · int32Required

Published item ID

Responses
200
Success
application/json; api-version=1.0
get
GET /api/PubItems/{id}/Filter HTTP/1.1
Host: 
Accept: */*
{
  "rules": [
    {
      "id": 1,
      "priority": 1,
      "enabled": true,
      "name": "text",
      "description": "text",
      "criteria": {
        "securityPrincipals": {
          "enabled": true,
          "matchingMode": [
            "0 = IsNotOneOfTheFollowing",
            "1 = IsOneOfTheFollowing"
          ],
          "members": [
            {
              "account": "text",
              "type": [
                "1 = User",
                "2 = Group",
                "3 = ForeignSecurityPrincipal",
                "4 = Computer"
              ],
              "sid": "text"
            }
          ]
        },
        "gateways": {
          "enabled": true,
          "matchingMode": [
            "0 = IsNotOneOfTheFollowing",
            "1 = IsOneOfTheFollowing"
          ],
          "members": [
            {
              "gatewayIP": "text"
            }
          ]
        },
        "oSs": {
          "enabled": true,
          "matchingMode": [
            "0 = IsNotOneOfTheFollowing",
            "1 = IsOneOfTheFollowing"
          ],
          "allowedOSes": {
            "chrome": true,
            "android": true,
            "webClient": true,
            "iOS": true,
            "linux": true,
            "mac": true,
            "wyse": true,
            "windows": true
          }
        },
        "iPs": {
          "enabled": true,
          "matchingMode": [
            "0 = IsNotOneOfTheFollowing",
            "1 = IsOneOfTheFollowing"
          ],
          "allowedIPs": {
            "iPv4s": [
              {
                "from": "text",
                "to": "text"
              }
            ],
            "iPv6s": [
              {
                "from": "text",
                "to": "text"
              }
            ]
          }
        },
        "hardwareIDs": {
          "enabled": true,
          "matchingMode": [
            "0 = IsNotOneOfTheFollowing",
            "1 = IsOneOfTheFollowing"
          ],
          "members": [
            {
              "hardwareID": "text"
            }
          ]
        },
        "access": [
          "0 = DenyCriteriaWhen",
          "1 = AllowCriteriaWhen"
        ],
        "devices": {
          "enabled": true,
          "matchingMode": [
            "0 = IsNotOneOfTheFollowing",
            "1 = IsOneOfTheFollowing"
          ],
          "members": [
            {
              "client": "text"
            }
          ]
        },
        "themes": {
          "enabled": true,
          "matchingMode": [
            "0 = IsNotOneOfTheFollowing",
            "1 = IsOneOfTheFollowing"
          ],
          "ids": [
            1
          ]
        }
      }
    }
  ],
  "default": [
    "0 = Deny",
    "1 = Allow"
  ]
}

Update

put

Update settings of a Published item filter. For each setting, the request has a corresponding parameter. To modify a setting, specify a matching parameter and its value.

Path parameters
idinteger · int32Required

Published item ID

Body

Update a RAS Pub Item Filter

defaultstring · enumOptional

Default assignment type options

Possible values:
Responses
204
No Content
put
PUT /api/PubItems/{id}/Filter HTTP/1.1
Host: 
Content-Type: application/json; api-version=1.0
Accept: */*
Content-Length: 36

{
  "default": [
    "0 = Deny",
    "1 = Allow"
  ]
}

No content

Was this helpful?