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

PI Web API Reference

SecurityMapping GetByPath

SecurityMapping GetByPath

Retrieve a security mapping by path.

Remarks

This method returns a security mapping based on the path associated with it, and should be used when a path has been received from a separate part of the PI System for use in the PI Web API. Users should primarily search with the WebID when available.

Request

GET securitymappings

URL Parameters

  • path

    The path to the security mapping. See Path Syntax for more information.

  • 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: The specified security mapping.

Sample Response Body

{
  "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"
  }
}
In This Topic
TitleResults for “How to create a CRG?”Also Available in