Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

PI Web API Reference

AssetServer GetSecurityMappings

AssetServer GetSecurityMappings

Retrieve security mappings based on the specified criteria. By default, all security mappings in the specified Asset Server are returned.

Request

GET assetservers/{webId}/securitymappings

URL Parameters

  • webId

    The ID of the asset server to search. See WebID for more information.

  • query

    The query string used for finding objects. The default is no query string. See Query String for more information.

  • field

    Specifies which of the object's properties are searched. The default is 'Name'.

  • sortField

    The field or property of the object used to sort the returned collection. The default is 'Name'. See Sort Field for more information.

  • sortOrder

    The order that the returned collection is sorted. The default is 'Ascending'. See Sort Order for more information.

  • maxCount

    The maximum number of objects to be returned. The default is 1000.

  • selectedFields

    List of fields to be returned in the response, separated by semicolons (;). If this parameter is not specified, all available fields will be returned. See Selected Fields for more information.

  • webIdType

    Optional parameter. Used to specify the type of WebID. Useful for URL brevity and other special cases. Default is the value of the configuration item "WebIDType". See WebID Type for more information.

Status Codes

200: A list of security mappings matching the specified condition.

Sample Response Body

{
  "Items": [
    {
      "WebId": "I1SMDqD5loBNH0erqeqJodtALAgu8UrMAZB0qWp9H7C4TAXQ",
      "Id": "ac14ef82-19c0-4a07-96a7-d1fb0b84c05d",
      "Name": "MySecurityMapping",
      "Description": "",
      "Path": "\\\\MyAssetServer\\SecurityMappings[MySecurityMapping]",
      "Account": "domain\\user",
      "SecurityIdentityWebId": "I1SIEDqD5loBNH0erqeqJodtALAYIKyyz2F5BGAxQAVXYRDBAGyPedZG1sUmxOOclp3Flwg",
      "Links": {
        "Self": "https://localhost.osisoft.int/piwebapi/securitymappings/I1SMDqD5loBNH0erqeqJodtALAgu8UrMAZB0qWp9H7C4TAXQ"
      }
    },
    {
      "WebId": "I1SMDqD5loBNH0erqeqJodtALAgu8UrMAZB0qWp9H7C4TAXQ",
      "Id": "ac14ef82-19c0-4a07-96a7-d1fb0b84c05d",
      "Name": "MySecurityMapping",
      "Description": "",
      "Path": "\\\\MyAssetServer\\SecurityMappings[MySecurityMapping]",
      "Account": "domain\\user",
      "SecurityIdentityWebId": "I1SIEDqD5loBNH0erqeqJodtALAYIKyyz2F5BGAxQAVXYRDBAGyPedZG1sUmxOOclp3Flwg",
      "Links": {
        "Self": "https://localhost.osisoft.int/piwebapi/securitymappings/I1SMDqD5loBNH0erqeqJodtALAgu8UrMAZB0qWp9H7C4TAXQ"
      }
    }
  ],
  "Links": {}
}
In This Topic
TitleResults for “How to create a CRG?”Also Available in