Skip to content
Navigation

Read one network policy

Reads a policy by id, revoked ones included — a published agent version keeps pointing at the policy it was published with, so history stays readable. Authorization: any member.

GET
https://api.cloudraker.com/network-policies/{policyId}
Try it
Path parameters
Live API request

Authorization

  • bearerAuth
    HTTP
    required

Path parameters

  • policyId
    string
    required
    pattern: ^net_[0-9A-HJKMNP-TV-Z]{26}$

Returns

200

The policy.

JSON
  • data
    object
    required
    • id
      string
      required
      pattern: ^net_[0-9A-HJKMNP-TV-Z]{26}$
    • name
      string
      required
    • hosts
      map of
      object
      required
    • createdAt
      string
      required
      format: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
    • createdBy
      string
      required
    • revokedAt
      required

      Set once the policy is revoked. A revoked policy stays READABLE for history and every egress request under it is denied.

      Any of the following:

      • string
      • null

400

Validation Error
JSON
  • success
    false
    required
  • error
    array of
    unknown
    required
  • data
    unknown
    required

404

network_policy_not_found — no such policy in this organization.
JSON
  • error
    string
    required

    The sentence a human reads.

  • error_code
    string
    required

    The stable snake_case branch key.

  • issues
    optional
    array of
    object

    Per-field detail, present only on a validation failure.

    • path
      string
      required
    • code
      string
      required
    • message
      string
      required

Type to search…

↑↓ navigate↵ selectEsc close