The unique identifier (UUID) of the policy to update
Update Access Policy
Modifies the configuration of an existing access policy including its rules, target users/devices/resources, and access permissions. Changes take effect immediately and affect network access.
Path Parameters
Body
application/json
Body
UpdatePolicy
Data for updating an existing access policy
Array of group IDs to apply this policy to
Example:["550e8400-e29b-41d4-a716-446655440000"]
Array of user IDs to apply this policy to
Example:["550e8400-e29b-41d4-a716-446655440001"]
Array of device IDs to apply this policy to
Example:["550e8400-e29b-41d4-a716-446655440002"]
Array of gateway IDs to apply this policy to
Example:["550e8400-e29b-41d4-a716-446655440004"]
Array of resource IDs to apply this policy to
Example:["550e8400-e29b-41d4-a716-446655440003"]
Admission rule ID for this policy
Example:550e8400-e29b-41d4-a716-446655440005
Human-readable name for the policy
Example:Engineering Team Access
Detailed description of the policy’s purpose and scope
Example:Allows engineering team to access development resources
Whether this policy applies to all groups
Default:false
Example:false
Whether this policy applies to all users
Default:false
Example:false
Whether this policy applies to all devices
Default:false
Example:false
Whether this policy applies to all resources
Default:false
Example:false
Array of source IP addresses or ranges
Example:["192.168.1.0/24","10.0.0.0/8"]
Access mode for this policy
Allowed values:LOCALRESTRICTEDREMOTE
Example:LOCAL
Whether this policy allows (true) or denies (false) access
Example:true
Response
200 application/json
Response
Successfully updated access policy
Policy
Access policy defining who can access what resources under what conditions
Unique identifier for the policy
Timestamp when the policy was created
Timestamp when the policy was last modified
Human-readable name for the policy
Whether this policy allows (true) or denies (false) access
Priority order for policy evaluation (lower numbers are evaluated first)
Whether this is a default policy that applies to all entities
Type of resources this policy applies to
Allowed values:PRIVATESAASINTERNETSITETOSITE
Access mode for this policy
Allowed values:LOCALRESTRICTEDREMOTE
Whether this policy applies to all groups
Default:false
Whether this policy applies to all users
Default:false
Whether this policy applies to all devices
Default:false
Whether this policy applies to all resources
Default:false
Group information within a policy context
Example:{"id":"550e8400-e29b-41d4-a716-446655440000","createdAt":"2023-01-15T14:30:00Z","updatedAt":"2023-01-15T14:30:00Z","name":"Engineering Team","description":"Team responsible for software development and engineering","maxDevices":10,"isSamlDefaultGroup":false,"idpMapping":["engineering-team","dev-team"]}
Show Child Parameters
User information within a policy context
Example:{"id":"550e8400-e29b-41d4-a716-446655440000","createdAt":"2023-01-15T14:30:00Z","updatedAt":"2023-01-15T14:30:00Z","lastConnection":"2023-01-15T14:30:00Z","email":"jane.smith@company.com","status":"ACTIVE","firstName":"Jane","lastName":"Smith","isOwner":false,"maxDevices":5,"image":"https://example.com/avatars/jane-smith.jpg"}
Show Child Parameters
Device information within a policy context
Example:{"id":"550e8400-e29b-41d4-a716-446655440000","createdAt":"2023-01-15T14:30:00Z","updatedAt":"2023-01-15T14:30:00Z","name":"John's MacBook Pro","active":true,"lastConnection":"2023-01-15T14:30:00Z","status":"Online","hardwareId":"MAC-001122334455","posture":{"compliant":true,"lastCheck":"2023-01-15T14:30:00Z"},"appVersion":"1.2.3"}
Show Child Parameters
Resource information within a policy context
Example:{"id":"550e8400-e29b-41d4-a716-446655440000","createdAt":"2023-01-15T14:30:00Z","updatedAt":"2023-01-15T14:30:00Z","name":"Internal Web Server","type":"PRIVATE","loadBalancingMode":"MANUAL","description":"Internal web server for company applications"}
Show Child Parameters
Network gateway configuration and status information
Show Child Parameters
Source IP addresses or ranges this policy applies to
Complete admission rule information with configuration and metadata
Example:{"id":"550e8400-e29b-41d4-a716-446655440000","name":"Engineering Department Access","type":"ALLOW","rule":"user.department == 'Engineering'","hasTimeConstraint":false,"createdAt":"2023-01-15T10:30:00Z","updatedAt":"2023-01-15T10:30:00Z"}
Show Child Parameters
Detailed description of the policy’s purpose and scope
Authentication
Path Parameters
Body
{
"name": "Engineering Team Access",
"description": "Allows engineering team to access development resources",
"mode": "LOCAL",
"action": true,
"allGroups": false,
"allUsers": false,
"allDevices": false,
"allResources": false,
"groups": [
"550e8400-e29b-41d4-a716-446655440000"
],
"rule": "550e8400-e29b-41d4-a716-446655440005"
}curl --request PATCH \
--url https://public-api.cipherscale.com/qa/tenants/policies/ \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"name": "Engineering Team Access",
"description": "Allows engineering team to access development resources",
"mode": "LOCAL",
"action": true,
"allGroups": false,
"allUsers": false,
"allDevices": false,
"allResources": false,
"groups": [
"550e8400-e29b-41d4-a716-446655440000"
],
"rule": "550e8400-e29b-41d4-a716-446655440005"
}'{
"id": "id",
"createdAt": "createdAt",
"updatedAt": "updatedAt",
"name": "name",
"action": false,
"order": 0,
"isDefault": false,
"type": "PRIVATE",
"mode": "LOCAL",
"allGroups": false,
"allUsers": false,
"allDevices": false,
"allResources": false,
"groups": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"createdAt": "2023-01-15T14:30:00Z",
"updatedAt": "2023-01-15T14:30:00Z",
"name": "Engineering Team",
"description": "Team responsible for software development and engineering",
"maxDevices": 10,
"isSamlDefaultGroup": false,
"idpMapping": [
"engineering-team",
"dev-team"
]
}
],
"users": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"createdAt": "2023-01-15T14:30:00Z",
"updatedAt": "2023-01-15T14:30:00Z",
"lastConnection": "2023-01-15T14:30:00Z",
"email": "jane.smith@company.com",
"status": "ACTIVE",
"firstName": "Jane",
"lastName": "Smith",
"isOwner": false,
"maxDevices": 5,
"image": "https://example.com/avatars/jane-smith.jpg"
}
],
"devices": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"createdAt": "2023-01-15T14:30:00Z",
"updatedAt": "2023-01-15T14:30:00Z",
"name": "John's MacBook Pro",
"active": true,
"lastConnection": "2023-01-15T14:30:00Z",
"status": "Online",
"hardwareId": "MAC-001122334455",
"posture": {
"compliant": true,
"lastCheck": "2023-01-15T14:30:00Z"
},
"appVersion": "1.2.3"
}
],
"resources": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"createdAt": "2023-01-15T14:30:00Z",
"updatedAt": "2023-01-15T14:30:00Z",
"name": "Internal Web Server",
"type": "PRIVATE",
"loadBalancingMode": "MANUAL",
"description": "Internal web server for company applications"
}
],
"gateways": [
{
"id": "id",
"createdAt": "createdAt",
"updatedAt": "updatedAt",
"name": "name",
"description": "description",
"wireguardPort": "wireguardPort",
"status": "PENDING",
"error": "error",
"token": "token",
"lastOnline": "lastOnline",
"relayEnabled": false,
"endpoint": "endpoint",
"autoDiscoverEndpoint": false,
"resources": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Internal Web Server"
}
]
}
],
"sourceIps": [
"[]"
],
"rule": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Engineering Department Access",
"type": "ALLOW",
"rule": "user.department == 'Engineering'",
"hasTimeConstraint": false,
"createdAt": "2023-01-15T10:30:00Z",
"updatedAt": "2023-01-15T10:30:00Z"
},
"description": "description"
}Get Policy Details
Retrieves comprehensive information about a specific access policy including its configuration, target entities, rules, and current status.
Path Parameters
The unique identifier (UUID) of the policy
Response
200 application/json
Response
Successfully retrieved policy details
Policy
Access policy defining who can access what resources under what conditions
Unique identifier for the policy
Timestamp when the policy was created
Timestamp when the policy was last modified
Human-readable name for the policy
Whether this policy allows (true) or denies (false) access
Priority order for policy evaluation (lower numbers are evaluated first)
Whether this is a default policy that applies to all entities
Type of resources this policy applies to
Allowed values:PRIVATESAASINTERNETSITETOSITE
Access mode for this policy
Allowed values:LOCALRESTRICTEDREMOTE
Whether this policy applies to all groups
Default:false
Whether this policy applies to all users
Default:false
Whether this policy applies to all devices
Default:false
Whether this policy applies to all resources
Default:false
Group information within a policy context
Example:{"id":"550e8400-e29b-41d4-a716-446655440000","createdAt":"2023-01-15T14:30:00Z","updatedAt":"2023-01-15T14:30:00Z","name":"Engineering Team","description":"Team responsible for software development and engineering","maxDevices":10,"isSamlDefaultGroup":false,"idpMapping":["engineering-team","dev-team"]}
Show Child Parameters
User information within a policy context
Example:{"id":"550e8400-e29b-41d4-a716-446655440000","createdAt":"2023-01-15T14:30:00Z","updatedAt":"2023-01-15T14:30:00Z","lastConnection":"2023-01-15T14:30:00Z","email":"jane.smith@company.com","status":"ACTIVE","firstName":"Jane","lastName":"Smith","isOwner":false,"maxDevices":5,"image":"https://example.com/avatars/jane-smith.jpg"}
Show Child Parameters
Device information within a policy context
Example:{"id":"550e8400-e29b-41d4-a716-446655440000","createdAt":"2023-01-15T14:30:00Z","updatedAt":"2023-01-15T14:30:00Z","name":"John's MacBook Pro","active":true,"lastConnection":"2023-01-15T14:30:00Z","status":"Online","hardwareId":"MAC-001122334455","posture":{"compliant":true,"lastCheck":"2023-01-15T14:30:00Z"},"appVersion":"1.2.3"}
Show Child Parameters
Resource information within a policy context
Example:{"id":"550e8400-e29b-41d4-a716-446655440000","createdAt":"2023-01-15T14:30:00Z","updatedAt":"2023-01-15T14:30:00Z","name":"Internal Web Server","type":"PRIVATE","loadBalancingMode":"MANUAL","description":"Internal web server for company applications"}
Show Child Parameters
Network gateway configuration and status information
Show Child Parameters
Source IP addresses or ranges this policy applies to
Complete admission rule information with configuration and metadata
Example:{"id":"550e8400-e29b-41d4-a716-446655440000","name":"Engineering Department Access","type":"ALLOW","rule":"user.department == 'Engineering'","hasTimeConstraint":false,"createdAt":"2023-01-15T10:30:00Z","updatedAt":"2023-01-15T10:30:00Z"}
Show Child Parameters
Detailed description of the policy’s purpose and scope
Authentication
Path Parameters
curl --request GET \
--url https://public-api.cipherscale.com/qa/tenants/policies/ \
--header 'Accept: application/json' \
--header 'Content-Type: application/json'{
"id": "id",
"createdAt": "createdAt",
"updatedAt": "updatedAt",
"name": "name",
"action": false,
"order": 0,
"isDefault": false,
"type": "PRIVATE",
"mode": "LOCAL",
"allGroups": false,
"allUsers": false,
"allDevices": false,
"allResources": false,
"groups": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"createdAt": "2023-01-15T14:30:00Z",
"updatedAt": "2023-01-15T14:30:00Z",
"name": "Engineering Team",
"description": "Team responsible for software development and engineering",
"maxDevices": 10,
"isSamlDefaultGroup": false,
"idpMapping": [
"engineering-team",
"dev-team"
]
}
],
"users": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"createdAt": "2023-01-15T14:30:00Z",
"updatedAt": "2023-01-15T14:30:00Z",
"lastConnection": "2023-01-15T14:30:00Z",
"email": "jane.smith@company.com",
"status": "ACTIVE",
"firstName": "Jane",
"lastName": "Smith",
"isOwner": false,
"maxDevices": 5,
"image": "https://example.com/avatars/jane-smith.jpg"
}
],
"devices": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"createdAt": "2023-01-15T14:30:00Z",
"updatedAt": "2023-01-15T14:30:00Z",
"name": "John's MacBook Pro",
"active": true,
"lastConnection": "2023-01-15T14:30:00Z",
"status": "Online",
"hardwareId": "MAC-001122334455",
"posture": {
"compliant": true,
"lastCheck": "2023-01-15T14:30:00Z"
},
"appVersion": "1.2.3"
}
],
"resources": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"createdAt": "2023-01-15T14:30:00Z",
"updatedAt": "2023-01-15T14:30:00Z",
"name": "Internal Web Server",
"type": "PRIVATE",
"loadBalancingMode": "MANUAL",
"description": "Internal web server for company applications"
}
],
"gateways": [
{
"id": "id",
"createdAt": "createdAt",
"updatedAt": "updatedAt",
"name": "name",
"description": "description",
"wireguardPort": "wireguardPort",
"status": "PENDING",
"error": "error",
"token": "token",
"lastOnline": "lastOnline",
"relayEnabled": false,
"endpoint": "endpoint",
"autoDiscoverEndpoint": false,
"resources": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Internal Web Server"
}
]
}
],
"sourceIps": [
"[]"
],
"rule": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Engineering Department Access",
"type": "ALLOW",
"rule": "user.department == 'Engineering'",
"hasTimeConstraint": false,
"createdAt": "2023-01-15T10:30:00Z",
"updatedAt": "2023-01-15T10:30:00Z"
},
"description": "description"
}Role
objectUser role definition with specific permissions and capabilities
Unique identifier for the role
Timestamp when the role was created
Timestamp when the role was last modified
Human-readable name of the role
Detailed description of the role’s purpose and permissions
Whether this role can be deleted (system roles are typically not deletable)
Predefined role type that determines the base permissions
Allowed values:OWNERADMINDEFAULTBASICBILLINGAUDITORSUPPORT
{
"id": "id",
"createdAt": "createdAt",
"updatedAt": "updatedAt",
"name": "name",
"description": "description",
"deleteable": false,
"type": "OWNER"
}UserGroup
objectUser group information with role assignments and member management
Unique identifier for the user group
Example:550e8400-e29b-41d4-a716-446655440000
Timestamp when the group was created
Example:2023-01-15T10:30:00Z
Timestamp when the group was last modified
Example:2023-01-15T10:30:00Z
Human-readable name for the user group
Example:Engineering Team
Detailed description of the group’s purpose and scope
Example:Software engineering team with access to development resources
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Engineering Team",
"description": "Software engineering team with access to development resources",
"createdAt": "2023-01-15T10:30:00Z",
"updatedAt": "2023-01-15T10:30:00Z"
}DeviceUser
objectUser information associated with a device
Unique identifier for the user
Example:550e8400-e29b-41d4-a716-446655440000
Timestamp of the user’s last network connection
Example:2023-01-15T14:30:00Z
User’s email address
Example:john.doe@company.com
User’s first name
Example:John
User’s last name
Example:Doe
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"email": "john.doe@company.com",
"firstName": "John",
"lastName": "Doe",
"lastConnection": "2023-01-15T14:30:00Z"
}