Skip to content
qibdo qibdo
v1
API version
  • v1
Theme
Book a demo

List Access Policies

GET
/vault/v1/workspaces/{workspace}/engines/qibdo/accessPolicies
curl --request GET \
--url https://example.com/vault/v1/workspaces/example/engines/qibdo/accessPolicies

Returns a paginated list of access policies within a workspace.

workspace
required
string

The workspace whose policies will be listed.

page_size
integer format: int32

The maximum number of policies to return. The service may return fewer than this value. If unspecified, at most 20 policies will be returned. The maximum value is 100; values above 100 will be coerced to 100.

page_token
string

A page token, received from a previous ListQibdoAccessPolicies call.

filter
string

AIP-160 filter expression.

order_by
string

AIP-132 order_by expression, e.g. “created desc”.

OK

Media type application/json

Response payload from List Qibdo Access Policies

Carries the output produced by list qibdo access policies.

object
access_policies

The page of access policies.

Array<object>

QibdoAccessPolicy resource — workspace-scoped access policy document layered on top of Qibdo IAM. The policy document composes one or more rules that grant a set of permissions on a resource-name pattern, optionally constrained by source IP ranges or time windows. The version_history list is a Qibdo-invented enhancement: every update appends the previous document so the full revision trail is auditable. Policies are consulted as a second-pass check after the IAM @PreAuthorize gate.

object
id

The unique identifier of the access policy (UUID).

stringOutput only
workspace_id

The workspace this policy belongs to (UUID, weak reference to taxonomy).

stringOutput only
name
required

Human-readable name of the policy, unique within the workspace (3–256 chars, lowercase alphanumerics plus / - _).

string
schema_version

The JSONB schema version governing the shape of document and version_history entries. Server-managed.

stringOutput only
document
required

The active policy document (rules + conditions).

object
rules

The rules that make up this policy. Every rule’s resource_name_pattern MUST be unique within a document.

Array<object>

AccessPolicyRule — grants a set of permissions on a resource-name pattern, optionally bounded by TTL and conditions.

object
resource_name_pattern
required

Resource-name pattern, e.g. “workspaces//secrets/”. The wildcard semantics follow Google AIP-159.

string
permissions
required

Permissions granted when the rule matches, e.g. “vault.secret.get”. At least one permission is required per rule.

Array<string>
ttl_cap_seconds

Optional upper bound on credentials issued via this rule (seconds). Unset means no TTL cap imposed by this rule.

string
conditions

Conjunctive constraints; all listed conditions must evaluate to true for the rule to apply.

Array<object>

AccessPolicyCondition — a constraint evaluated at authorization time. Mirrors IAM’s Condition hierarchy structurally (DOM-003: no shared domain types across bounded contexts).

object
source_ip

SourceIpCondition — restricts access to callers whose source IP falls inside (or outside) a set of CIDR ranges.

object
operator
required

IN_RANGE grants the rule when the source IP is in any listed CIDR; NOT_IN_RANGE grants the rule when it is in none.

string
cidrs
required

List of CIDR ranges to match against the caller’s source IP.

Array<string>
time_window

TimeWindowCondition — restricts access to callers whose request timestamp falls inside (or outside) a daily time window in the given timezone.

object
operator
required

WITHIN grants the rule when the current time is inside [from, to]; OUTSIDE grants the rule when it is not.

string
from
required

Start of the window in HH:mm 24-hour notation.

string
to
required

End of the window in HH:mm 24-hour notation.

string
timezone
required

IANA timezone identifier, e.g. “Europe/Amsterdam”.

string
version_history

Append-only list of previous document revisions. Each update pushes the pre-mutation document onto this list. Server-managed.

Array<object>Output only

AccessPolicyRevision — a snapshot of a previous policy document captured at update time. Qibdo-invented audit trail (upstream clouds do not expose policy revision history).

object
revision_number

Monotonically increasing revision number; starts at 1 for the first edit.

stringOutput only
previous_document

The document that was replaced.

object
rules

The rules that make up this policy. Every rule’s resource_name_pattern MUST be unique within a document.

Array<object>

AccessPolicyRule — grants a set of permissions on a resource-name pattern, optionally bounded by TTL and conditions.

object
resource_name_pattern
required

Resource-name pattern, e.g. “workspaces//secrets/”. The wildcard semantics follow Google AIP-159.

string
permissions
required

Permissions granted when the rule matches, e.g. “vault.secret.get”. At least one permission is required per rule.

Array<string>
ttl_cap_seconds

Optional upper bound on credentials issued via this rule (seconds). Unset means no TTL cap imposed by this rule.

string
conditions

Conjunctive constraints; all listed conditions must evaluate to true for the rule to apply.

Array<object>

AccessPolicyCondition — a constraint evaluated at authorization time. Mirrors IAM’s Condition hierarchy structurally (DOM-003: no shared domain types across bounded contexts).

object
source_ip

SourceIpCondition — restricts access to callers whose source IP falls inside (or outside) a set of CIDR ranges.

object
operator
required

IN_RANGE grants the rule when the source IP is in any listed CIDR; NOT_IN_RANGE grants the rule when it is in none.

string
cidrs
required

List of CIDR ranges to match against the caller’s source IP.

Array<string>
time_window

TimeWindowCondition — restricts access to callers whose request timestamp falls inside (or outside) a daily time window in the given timezone.

object
operator
required

WITHIN grants the rule when the current time is inside [from, to]; OUTSIDE grants the rule when it is not.

string
from
required

Start of the window in HH:mm 24-hour notation.

string
to
required

End of the window in HH:mm 24-hour notation.

string
timezone
required

IANA timezone identifier, e.g. “Europe/Amsterdam”.

string
edited_by

The principal that performed the edit (UUID, weak reference to IAM user).

stringOutput only
edited_at

When the edit happened (server-managed).

string format: date-time Output only
created

Timestamp when the policy was created (server-managed).

string format: date-time Output only
updated

Timestamp when the policy was last updated (server-managed).

string format: date-time Output only
location_id

Weak reference to a topology Location — where this resource resides. Defaults to the global location when omitted at creation and is immutable thereafter. Only the global location is available in this release.

stringOutput only
next_page_token

Opaque token for the next page; empty when no more results.

string
Example generated
{
"access_policies": [
{
"name": "example",
"document": {
"rules": [
{
"resource_name_pattern": "example",
"permissions": [
"example"
],
"ttl_cap_seconds": "example",
"conditions": [
{
"source_ip": {
"operator": "example",
"cidrs": [
"example"
]
},
"time_window": {
"operator": "example",
"from": "example",
"to": "example",
"timezone": "example"
}
}
]
}
]
}
}
],
"next_page_token": "example"
}

Default error response

Media type application/json

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide.

object
code

The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].

integer format: int32
message

A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.

string
details

A list of messages that carry the error details. There is a common set of message types for APIs to use.

Array<object>

Contains an arbitrary serialized message along with a @type that describes the type of the serialized message.

object
@type

The type of the serialized message.

string
key
additional properties
any
Example generated
{
"code": 1,
"message": "example",
"details": [
{
"@type": "example"
}
]
}