Skip to content
Start here

Rego Metadata

List Rego metadata documents
client.ZeroTrust.CWS.RegoMetadata.List(ctx, params) (*CursorPagination[RegoMetadata], error)
GET/accounts/{account_id}/cws/rego-metadata
Get a rego metadata document by ID
client.ZeroTrust.CWS.RegoMetadata.Get(ctx, regoMetadataID, query) (*RegoMetadata, error)
GET/accounts/{account_id}/cws/rego-metadata/{rego_metadata_id}
Create a new rego metadata document
client.ZeroTrust.CWS.RegoMetadata.New(ctx, params) (*RegoMetadata, error)
POST/accounts/{account_id}/cws/rego-metadata
Update a rego metadata document
client.ZeroTrust.CWS.RegoMetadata.Update(ctx, regoMetadataID, params) (*RegoMetadata, error)
PUT/accounts/{account_id}/cws/rego-metadata/{rego_metadata_id}
Delete a rego metadata document
client.ZeroTrust.CWS.RegoMetadata.Delete(ctx, regoMetadataID, body) (*CWSRegoMetadataDeleteResponse, error)
DELETE/accounts/{account_id}/cws/rego-metadata/{rego_metadata_id}
ModelsExpand Collapse
type RegoMetadata struct{…}
ID string

Server-assigned UUID

formatuuid
CreatedAt Time
formatdate-time
Data unknown
ImportPath string

Unique Rego import path in the form metadata., with one alphanumeric or underscore segment. Reference it as data.<import_path>.

maxLength255
minLength1
Name string

Human-readable name; unique per account

maxLength100
minLength1
UpdatedAt Time
formatdate-time