Diff policies between two bundles
curl --request POST \
--url https://mycluster.domino.tech/api/governance/v1/rpc/diff-bundle-policies \
--header 'Content-Type: application/json' \
--data '
{
"leftBundleId": "<string>",
"rightBundleId": "<string>",
"includeEvidenceResults": true,
"includeUnchanged": true
}
'import requests
url = "https://mycluster.domino.tech/api/governance/v1/rpc/diff-bundle-policies"
payload = {
"leftBundleId": "<string>",
"rightBundleId": "<string>",
"includeEvidenceResults": True,
"includeUnchanged": True
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
leftBundleId: '<string>',
rightBundleId: '<string>',
includeEvidenceResults: true,
includeUnchanged: true
})
};
fetch('https://mycluster.domino.tech/api/governance/v1/rpc/diff-bundle-policies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://mycluster.domino.tech/api/governance/v1/rpc/diff-bundle-policies",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'leftBundleId' => '<string>',
'rightBundleId' => '<string>',
'includeEvidenceResults' => true,
'includeUnchanged' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://mycluster.domino.tech/api/governance/v1/rpc/diff-bundle-policies"
payload := strings.NewReader("{\n \"leftBundleId\": \"<string>\",\n \"rightBundleId\": \"<string>\",\n \"includeEvidenceResults\": true,\n \"includeUnchanged\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://mycluster.domino.tech/api/governance/v1/rpc/diff-bundle-policies")
.header("Content-Type", "application/json")
.body("{\n \"leftBundleId\": \"<string>\",\n \"rightBundleId\": \"<string>\",\n \"includeEvidenceResults\": true,\n \"includeUnchanged\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mycluster.domino.tech/api/governance/v1/rpc/diff-bundle-policies")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"leftBundleId\": \"<string>\",\n \"rightBundleId\": \"<string>\",\n \"includeEvidenceResults\": true,\n \"includeUnchanged\": true\n}"
response = http.request(request)
puts response.read_body{
"policyDiffs": [
{
"diff": {
"approvals": [
{
"changes": [],
"policyEntityId": "<string>",
"source": {
"approvers": [
{
"editable": true,
"id": "<string>",
"name": "<string>",
"showByDefault": true,
"fromOrganizationUserId": "<string>",
"isOrganizationUser": true
}
],
"artifacts": [
{
"id": "<string>",
"label": "<string>",
"policyEntityId": "<string>",
"required": true
}
],
"evidenceId": "<string>",
"location": {
"policyVersion": "<string>",
"policyVersionId": "<string>",
"stageId": "<string>",
"stageName": "<string>",
"stagePolicyEntityId": "<string>"
},
"name": "<string>",
"policyEntityId": "<string>",
"stageApprovalId": "<string>"
},
"target": {
"approvers": [
{
"editable": true,
"id": "<string>",
"name": "<string>",
"showByDefault": true,
"fromOrganizationUserId": "<string>",
"isOrganizationUser": true
}
],
"artifacts": [
{
"id": "<string>",
"label": "<string>",
"policyEntityId": "<string>",
"required": true
}
],
"evidenceId": "<string>",
"location": {
"policyVersion": "<string>",
"policyVersionId": "<string>",
"stageId": "<string>",
"stageName": "<string>",
"stagePolicyEntityId": "<string>"
},
"name": "<string>",
"policyEntityId": "<string>",
"stageApprovalId": "<string>"
}
}
],
"artifacts": [
{
"changes": [],
"policyEntityId": "<string>",
"source": {
"alias": "<string>",
"artifactId": "<string>",
"detailedType": "<string>",
"details": {},
"location": {
"evidenceExternalId": "<string>",
"evidenceId": "<string>",
"evidenceName": "<string>",
"policyVersion": "<string>",
"policyVersionId": "<string>",
"stageApprovalId": "<string>",
"stageApprovalName": "<string>",
"stageApprovalPolicyEntityId": "<string>",
"stageId": "<string>",
"stageName": "<string>",
"stagePolicyEntityId": "<string>"
},
"policyEntityId": "<string>",
"required": true
},
"target": {
"alias": "<string>",
"artifactId": "<string>",
"detailedType": "<string>",
"details": {},
"location": {
"evidenceExternalId": "<string>",
"evidenceId": "<string>",
"evidenceName": "<string>",
"policyVersion": "<string>",
"policyVersionId": "<string>",
"stageApprovalId": "<string>",
"stageApprovalName": "<string>",
"stageApprovalPolicyEntityId": "<string>",
"stageId": "<string>",
"stageName": "<string>",
"stagePolicyEntityId": "<string>"
},
"policyEntityId": "<string>",
"required": true
}
}
],
"policy_id": "<string>",
"source": {
"policy_version_id": "<string>",
"version": "<string>"
},
"stages": [
{
"changes": [],
"policyEntityId": "<string>",
"source": {
"name": "<string>",
"policyEntityId": "<string>",
"policyVersionId": "<string>",
"stageId": "<string>",
"stageOrder": 123
},
"target": {
"name": "<string>",
"policyEntityId": "<string>",
"policyVersionId": "<string>",
"stageId": "<string>",
"stageOrder": 123
}
}
],
"target": {
"policy_version_id": "<string>",
"version": "<string>"
}
},
"evidenceResultDiffs": [
{
"left": {
"artifactId": "<string>",
"content": "<unknown>"
},
"policyEntityId": "<string>",
"right": {
"artifactId": "<string>",
"content": "<unknown>"
}
}
],
"left": {
"policyVersion": "<string>",
"policyVersionId": "<string>"
},
"policyId": "<string>",
"policyName": "<string>",
"right": {
"policyVersion": "<string>",
"policyVersionId": "<string>"
}
}
]
}{
"code": "BUNDLE_REQUIRES_POLICY",
"message": "<string>"
}{
"code": "BUNDLE_REQUIRES_POLICY",
"message": "<string>"
}{
"code": "BUNDLE_REQUIRES_POLICY",
"message": "<string>"
}{
"code": "BUNDLE_REQUIRES_POLICY",
"message": "<string>"
}rpc
Diff policies between two bundles
Compare the policies of two bundles, returning structural diffs and optionally evidence result diffs
POST
/
rpc
/
diff-bundle-policies
Diff policies between two bundles
curl --request POST \
--url https://mycluster.domino.tech/api/governance/v1/rpc/diff-bundle-policies \
--header 'Content-Type: application/json' \
--data '
{
"leftBundleId": "<string>",
"rightBundleId": "<string>",
"includeEvidenceResults": true,
"includeUnchanged": true
}
'import requests
url = "https://mycluster.domino.tech/api/governance/v1/rpc/diff-bundle-policies"
payload = {
"leftBundleId": "<string>",
"rightBundleId": "<string>",
"includeEvidenceResults": True,
"includeUnchanged": True
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
leftBundleId: '<string>',
rightBundleId: '<string>',
includeEvidenceResults: true,
includeUnchanged: true
})
};
fetch('https://mycluster.domino.tech/api/governance/v1/rpc/diff-bundle-policies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://mycluster.domino.tech/api/governance/v1/rpc/diff-bundle-policies",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'leftBundleId' => '<string>',
'rightBundleId' => '<string>',
'includeEvidenceResults' => true,
'includeUnchanged' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://mycluster.domino.tech/api/governance/v1/rpc/diff-bundle-policies"
payload := strings.NewReader("{\n \"leftBundleId\": \"<string>\",\n \"rightBundleId\": \"<string>\",\n \"includeEvidenceResults\": true,\n \"includeUnchanged\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://mycluster.domino.tech/api/governance/v1/rpc/diff-bundle-policies")
.header("Content-Type", "application/json")
.body("{\n \"leftBundleId\": \"<string>\",\n \"rightBundleId\": \"<string>\",\n \"includeEvidenceResults\": true,\n \"includeUnchanged\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mycluster.domino.tech/api/governance/v1/rpc/diff-bundle-policies")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"leftBundleId\": \"<string>\",\n \"rightBundleId\": \"<string>\",\n \"includeEvidenceResults\": true,\n \"includeUnchanged\": true\n}"
response = http.request(request)
puts response.read_body{
"policyDiffs": [
{
"diff": {
"approvals": [
{
"changes": [],
"policyEntityId": "<string>",
"source": {
"approvers": [
{
"editable": true,
"id": "<string>",
"name": "<string>",
"showByDefault": true,
"fromOrganizationUserId": "<string>",
"isOrganizationUser": true
}
],
"artifacts": [
{
"id": "<string>",
"label": "<string>",
"policyEntityId": "<string>",
"required": true
}
],
"evidenceId": "<string>",
"location": {
"policyVersion": "<string>",
"policyVersionId": "<string>",
"stageId": "<string>",
"stageName": "<string>",
"stagePolicyEntityId": "<string>"
},
"name": "<string>",
"policyEntityId": "<string>",
"stageApprovalId": "<string>"
},
"target": {
"approvers": [
{
"editable": true,
"id": "<string>",
"name": "<string>",
"showByDefault": true,
"fromOrganizationUserId": "<string>",
"isOrganizationUser": true
}
],
"artifacts": [
{
"id": "<string>",
"label": "<string>",
"policyEntityId": "<string>",
"required": true
}
],
"evidenceId": "<string>",
"location": {
"policyVersion": "<string>",
"policyVersionId": "<string>",
"stageId": "<string>",
"stageName": "<string>",
"stagePolicyEntityId": "<string>"
},
"name": "<string>",
"policyEntityId": "<string>",
"stageApprovalId": "<string>"
}
}
],
"artifacts": [
{
"changes": [],
"policyEntityId": "<string>",
"source": {
"alias": "<string>",
"artifactId": "<string>",
"detailedType": "<string>",
"details": {},
"location": {
"evidenceExternalId": "<string>",
"evidenceId": "<string>",
"evidenceName": "<string>",
"policyVersion": "<string>",
"policyVersionId": "<string>",
"stageApprovalId": "<string>",
"stageApprovalName": "<string>",
"stageApprovalPolicyEntityId": "<string>",
"stageId": "<string>",
"stageName": "<string>",
"stagePolicyEntityId": "<string>"
},
"policyEntityId": "<string>",
"required": true
},
"target": {
"alias": "<string>",
"artifactId": "<string>",
"detailedType": "<string>",
"details": {},
"location": {
"evidenceExternalId": "<string>",
"evidenceId": "<string>",
"evidenceName": "<string>",
"policyVersion": "<string>",
"policyVersionId": "<string>",
"stageApprovalId": "<string>",
"stageApprovalName": "<string>",
"stageApprovalPolicyEntityId": "<string>",
"stageId": "<string>",
"stageName": "<string>",
"stagePolicyEntityId": "<string>"
},
"policyEntityId": "<string>",
"required": true
}
}
],
"policy_id": "<string>",
"source": {
"policy_version_id": "<string>",
"version": "<string>"
},
"stages": [
{
"changes": [],
"policyEntityId": "<string>",
"source": {
"name": "<string>",
"policyEntityId": "<string>",
"policyVersionId": "<string>",
"stageId": "<string>",
"stageOrder": 123
},
"target": {
"name": "<string>",
"policyEntityId": "<string>",
"policyVersionId": "<string>",
"stageId": "<string>",
"stageOrder": 123
}
}
],
"target": {
"policy_version_id": "<string>",
"version": "<string>"
}
},
"evidenceResultDiffs": [
{
"left": {
"artifactId": "<string>",
"content": "<unknown>"
},
"policyEntityId": "<string>",
"right": {
"artifactId": "<string>",
"content": "<unknown>"
}
}
],
"left": {
"policyVersion": "<string>",
"policyVersionId": "<string>"
},
"policyId": "<string>",
"policyName": "<string>",
"right": {
"policyVersion": "<string>",
"policyVersionId": "<string>"
}
}
]
}{
"code": "BUNDLE_REQUIRES_POLICY",
"message": "<string>"
}{
"code": "BUNDLE_REQUIRES_POLICY",
"message": "<string>"
}{
"code": "BUNDLE_REQUIRES_POLICY",
"message": "<string>"
}{
"code": "BUNDLE_REQUIRES_POLICY",
"message": "<string>"
}Was this page helpful?
⌘I