Skip to Content

ListPolicyAttachments

GET
/auth/v1/organizations/{org_id}/policies/{policy_id}/attachments

Authorization

headerX-API-Key<token>

API key for protected endpoints, supplied in the X-API-Key header.

Path Parameters

org_id*org_id
policy_id*policy_id

Response Body

200application/json

Success

type: unknown

{
  "$ref": "#/components/schemas/auth.v1.ListAttachmentsResponse",
  "$ref-value": {
    "type": "object",
    "properties": {
      "attachments": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/auth.v1.PolicyAttachment",
          "$ref-value": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "title": "id"
              },
              "policy_id": {
                "type": "string",
                "title": "policy_id"
              },
              "identity_type": {
                "title": "identity_type",
                "$ref": "#/components/schemas/auth.v1.PolicyIdentityType",
                "$ref-value": {
                  "type": "string",
                  "title": "PolicyIdentityType",
                  "enum": [
                    "POLICY_IDENTITY_TYPE_UNSPECIFIED",
                    "POLICY_IDENTITY_TYPE_USER",
                    "POLICY_IDENTITY_TYPE_API_KEY",
                    "POLICY_IDENTITY_TYPE_CLIENTAUTH_CREDENTIAL"
                  ]
                }
              },
              "identity_id": {
                "type": "string",
                "title": "identity_id"
              },
              "created_at": {
                "title": "created_at",
                "$ref": "#/components/schemas/google.protobuf.Timestamp",
                "$ref-value": {
                  "type": "string",
                  "examples": [
                    "2023-01-15T01:30:15.01Z",
                    "2024-12-25T12:00:00Z"
                  ],
                  "format": "date-time",
                  "description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC."
                }
              }
            },
            "title": "PolicyAttachment",
            "additionalProperties": false
          }
        },
        "title": "attachments"
      }
    },
    "title": "ListAttachmentsResponse",
    "additionalProperties": false
  }
}
default
curl -X GET 'https://api.rixl.com/auth/v1/organizations/string/policies/string/attachments'

Success

application/json

{
  "$ref": "#/components/schemas/auth.v1.ListAttachmentsResponse",
  "$ref-value": {
    "type": "object",
    "properties": {
      "attachments": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/auth.v1.PolicyAttachment",
          "$ref-value": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "title": "id"
              },
              "policy_id": {
                "type": "string",
                "title": "policy_id"
              },
              "identity_type": {
                "title": "identity_type",
                "$ref": "#/components/schemas/auth.v1.PolicyIdentityType",
                "$ref-value": {
                  "type": "string",
                  "title": "PolicyIdentityType",
                  "enum": [
                    "POLICY_IDENTITY_TYPE_UNSPECIFIED",
                    "POLICY_IDENTITY_TYPE_USER",
                    "POLICY_IDENTITY_TYPE_API_KEY",
                    "POLICY_IDENTITY_TYPE_CLIENTAUTH_CREDENTIAL"
                  ]
                }
              },
              "identity_id": {
                "type": "string",
                "title": "identity_id"
              },
              "created_at": {
                "title": "created_at",
                "$ref": "#/components/schemas/google.protobuf.Timestamp",
                "$ref-value": {
                  "type": "string",
                  "examples": [
                    "2023-01-15T01:30:15.01Z",
                    "2024-12-25T12:00:00Z"
                  ],
                  "format": "date-time",
                  "description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC."
                }
              }
            },
            "title": "PolicyAttachment",
            "additionalProperties": false
          }
        },
        "title": "attachments"
      }
    },
    "title": "ListAttachmentsResponse",
    "additionalProperties": false
  }
}