Skip to content

GetPolicy

GET
https://orgs.ezghcloud.com/v1/organizations/{orgId}/policies/{policyId}

Authorization

  • apiKeyoptionalHTTP
  • sessionCookieoptionalAPI key in cookie
  • oauthoptionalHTTP

Path parameters

  • orgIdstringrequired
  • policyIdstringrequired

Returns

200

Success

JSON
  • idstringrequired
  • typemanagedorcustomrequired
  • namestringrequired
  • slugstringornullrequired
    2 variants

    One of the following:

    • string
    • null
  • resourceNamestringornullrequired
    2 variants

    One of the following:

    • string
    • null
  • descriptionstringrequired
  • documentobjectrequired
    1 properties
    • statementsarray ofobjectrequired
      4 properties
      • effectallowordenyrequired
      • actionsarray ofstringrequired
      • resourcesarray ofstringrequired
      • sidoptionalstring
  • statusactiveordeprecatedrequired
  • attachmentsnumberorstringrequired
    2 variants

    One of the following:

    • number
    • string
  • createdAtstringornullrequired
    2 variants

    One of the following:

    • string
    • null
  • updatedAtstringornullrequired
    2 variants

    One of the following:

    • string
    • null

400

InvalidRequest

JSON
  • errorobjectrequired
    3 properties
    • codeinvalid_requestrequired
    • messagestringrequired
    • issuesoptionalarray ofobject
      2 properties
      • pathstringrequired
      • messagestringrequired

401

Unauthenticated

JSON
  • errorobjectrequired
    2 properties
    • codeunauthenticatedrequired
    • messagestringrequired

403

AccessDenied | ForbiddenOrigin

JSON

One of the following:

404

NotFound

JSON
  • errorobjectrequired
    2 properties
    • codenot_foundrequired
    • messagestringrequired

429

TooManyRequests

JSON
  • errorobjectrequired
    2 properties
    • codetoo_many_requestsrequired
    • messagestringrequired

500

InternalError

JSON
  • errorobjectrequired
    2 properties
    • codeinternal_errorrequired
    • messagestringrequired

503

Unavailable

JSON
  • errorobjectrequired
    2 properties
    • codeunavailablerequired
    • messagestringrequired
Navigation

Type to search…

↑↓ navigate↵ selectEsc close