Update/replace and existing policy
643 matches
92 actions
Anchore Engine API Server
92 actions
- Add a new policyPOSTv1.0.0
- Add a new registryPOSTv1.0.0
- Add a subscription of a specific typePOSTv1.0.0
- Add repository to watchPOSTv1.0.0
- add/replace credentialPOSTv1.0.0
- add/replace credentialPOSTv1.0.0
- archive_image_analysisPOSTv1.0.0
- Check policy evaluation status for imageGETv1.0.0
- Check policy evaluation status for imageGETv1.0.0
- Create a new userPOSTv1.0.0
- Create a new user. Only avaialble to admin user.POSTv1.0.0
- create_analysis_archive_rulePOSTv1.0.0
- Delete a credential by typeDELETEv1.0.0
- Delete a registry configurationDELETEv1.0.0
- Delete a specific user credential by username of the credential. Cannot be the credential used to authenticate the request.DELETEv1.0.0
- Delete an image analysisDELETEv1.0.0
- Delete EventDELETEv1.0.0
- Delete EventsDELETEv1.0.0
- Delete image by docker imageIdDELETEv1.0.0
- Delete policyDELETEv1.0.0
- Delete subscriptions of a specific typeDELETEv1.0.0
- Delete the service configDELETEv1.0.0
- Delete the specified account, only allowed if the account is in the disabled state. All users will be deleted along with the account and all resources will be garbage collectedDELETEv1.0.0
- delete_analysis_archive_ruleDELETEv1.0.0
- delete_archived_analysisDELETEv1.0.0
- delete_feedDELETEv1.0.0
- delete_feed_groupDELETEv1.0.0
- Describe anchore engine error codes.GETv1.0.0
- Describe the policy language spec implemented by this service.GETv1.0.0
- Get a service configuration and stateGETv1.0.0
- Get a specific registry configurationGETv1.0.0
- Get a specific subscription setGETv1.0.0
- Get a specific user in the specified accountGETv1.0.0
- Get current credential summaryGETv1.0.0
- Get current credential summaryGETv1.0.0
- Get EventGETv1.0.0
- Get image metadataGETv1.0.0
- Get image sbom in the native Anchore formatGETv1.0.0
- Get info about an user. Only available to admin user. Uses the main user Id, not a username.GETv1.0.0
- Get service config for a specific hostGETv1.0.0
- Get specific policyGETv1.0.0
- Get the content of an image by typeGETv1.0.0
- Get the content of an image by typeGETv1.0.0
- Get the content of an image by type filesGETv1.0.0
- Get the content of an image by type filesGETv1.0.0
- Get the content of an image by type javaGETv1.0.0
- Get the content of an image by type javaGETv1.0.0
- Get the content of an image by type malwareGETv1.0.0
- Get the metadata of an image by typeGETv1.0.0
- Get vulnerabilities by typeGETv1.0.0
- Get vulnerabilities by typeGETv1.0.0
- Get vulnerability typesGETv1.0.0
- Get vulnerability typesGETv1.0.0
- get_analysis_archive_ruleGETv1.0.0
- get_archived_analysisGETv1.0.0
- Invalidate operation ID so it can be garbage collectedDELETEv1.0.0
- List accounts for the userGETv1.0.0
- List all subscriptionsGETv1.0.0
- List all visible image digests and tagsGETv1.0.0
- List all visible imagesGETv1.0.0
- List authenticated user infoGETv1.0.0
- List configured registriesGETv1.0.0
- List Event TypesGETv1.0.0
- List EventsGETv1.0.0
- list feeds operations and informationGETv1.0.0
- List image content typesGETv1.0.0
- List image content typesGETv1.0.0
- List image metadata typesGETv1.0.0
- List images vulnerable to the specific vulnerability ID.GETv1.0.0
- List of images containing given packageGETv1.0.0
- List policiesGETv1.0.0
- List system servicesGETv1.0.0
- List the account for the authenticated userGETv1.0.0
- List user summaries. Only available to the system admin user.GETv1.0.0
- list_analysis_archiveGETv1.0.0
- list_analysis_archive_rulesGETv1.0.0
- list_archivesGETv1.0.0
- Listing information about given vulnerabilityGETv1.0.0
- Lookup image by docker imageIdGETv1.0.0
- Return a list of analyzer artifacts of the specified typeGETv1.0.0
- Return a list of analyzer artifacts of the specified typeGETv1.0.0
- Return a list of analyzer artifacts of the specified typeGETv1.0.0
- Service statusGETv1.0.0
- Submit a new image for analysis by the enginePOSTv1.0.0
- System statusGETv1.0.0
- toggle_feed_enabledPUTv1.0.0
- toggle_group_enabledPUTv1.0.0
- trigger feeds operationsPOSTv1.0.0
- Update an existing and specific subscriptionPUTv1.0.0
- Update policyPUTv1.0.0
- Update the state of an account to either enabled or disabled. For deletion use the DELETE routePUTv1.0.0
- Update/replace a registry configurationPUTv1.0.0
Other/Anchore Engine API Server
Update policy
v1.0.0Input
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
- 96
- 97
- 98
- 99
- 100
- 101
- 102
- 103
- 104
- 105
- 106
- 107
- 108
- 109
- 110
- 111
- 112
- 113
- 114
- 115
- 116
- 117
- 118
- 119
- 120
- 121
- 122
- 123
- 124
- 125
- 126
- 127
- 128
- 129
- 130
- 131
- 132
- 133
- 134
- 135
- 136
- 137
- 138
- 139
- 140
- 141
- 142
- 143
- 144
- 145
- 146
- 147
- 148
- 149
- 150
- 151
- 152
- 153
- 154
- 155
- 156
- 157
- 158
- 159
- 160
- 161
- 162
- 163
- 164
- 165
- 166
- 167
- 168
- 169
- 170
- 171
- 172
- 173
- 174
- 175
- 176
- 177
- 178
- 179
- 180
- 181
- 182
- 183
- 184
- 185
- 186
- 187
- 188
- 189
- 190
- 191
- 192
- 193
- 194
- 195
- 196
- 197
- 198
- 199
- 200
- 201
- 202
- 203
- 204
- 205
- 206
- 207
- 208
- 209
- 210
- 211
- 212
- 213
- 214
- 215
- 216
- 217
- 218
- 219
- 220
- 221
- 222
- 223
- 224
- 225
- 226
- 227
- 228
- 229
- 230
- 231
- 232
- 233
- 234
- 235
- 236
- 237
- 238
- 239
- 240
- 241
- 242
- 243
- 244
- 245
- 246
- 247
- 248
- 249
- 250
- 251
- 252
- 253
- 254
- 255
- 256
- 257
- 258
- 259
- 260
- 261
- 262
- 263
- 264
- 265
- 266
- 267
- 268
- 269
- 270
- 271
- 272
- 273
- 274
- 275
- 276
- 277
- 278
- 279
- 280
- 281
- 282
- 283
- 284
- 285
- 286
- 287
- 288
- 289
- 290
- 291
- 292
- 293
- 294
- 295
- 296
- 297
- 298
- 299
- 300
- 301
- 302
- 303
- 304
- 305
- 306
- 307
- 308
- 309
- 310
- 311
- 312
- 313
- 314
- 315
- 316
- 317
- 318
- 319
- 320
- 321
- 322
- 323
- 324
- 325
- 326
- 327
- 328
- 329
- 330
- 331
- 332
- 333
- 334
- 335
- 336
- 337
- 338
- 339
- 340
- 341
- 342
- 343
- 344
- 345
- 346
- 347
- 348
- 349
- 350
- 351
- 352
{
"type": "object",
"properties": {
"active": {
"type": "boolean"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"last_updated": {
"type": "string",
"format": "date-time"
},
"policyId": {
"type": "string"
},
"policy_source": {
"type": "string",
"description": "Source location of where the policy bundle originated"
},
"policybundle": {
"type": "object",
"description": "A bundle containing a set of policies, whitelists, and rules for mapping them to specific images",
"required": [
"id",
"mappings",
"policies",
"version"
],
"properties": {
"blacklisted_images": {
"type": "array",
"description": "List of mapping rules that define which images should always result in a STOP/FAIL policy result regardless of policy content or presence in whitelisted_images",
"items": {
"type": "object",
"required": [
"name",
"registry",
"repository",
"image"
],
"properties": {
"id": {
"type": "string"
},
"image": {
"type": "object",
"description": "A reference to an image",
"required": [
"type",
"value"
],
"properties": {
"type": {
"enum": [
"tag",
"digest",
"id"
],
"type": "object"
},
"value": {
"type": "string"
}
}
},
"name": {
"type": "string"
},
"registry": {
"type": "string"
},
"repository": {
"type": "string"
}
}
}
},
"comment": {
"type": "string",
"description": "Description of the bundle, human readable"
},
"id": {
"type": "string",
"description": "Id of the bundle"
},
"mappings": {
"type": "array",
"description": "Mapping rules for defining which policy and whitelist(s) to apply to an image based on a match of the image tag or id. Evaluated in order.",
"items": {
"type": "object",
"required": [
"name",
"registry",
"repository",
"image"
],
"properties": {
"id": {
"type": "string"
},
"image": {
"type": "object",
"description": "A reference to an image",
"required": [
"type",
"value"
],
"properties": {
"type": {
"enum": [
"tag",
"digest",
"id"
],
"type": "object"
},
"value": {
"type": "string"
}
}
},
"name": {
"type": "string"
},
"policy_id": {
"type": "string",
"description": "Optional single policy to evalute, if set will override any value in policy_ids, for backwards compatibility. Generally, policy_ids should be used even with a array of length 1."
},
"policy_ids": {
"type": "array",
"description": "List of policyIds to evaluate in order, to completion",
"items": {
"type": "string",
"description": "PolicyId to evaluate"
}
},
"registry": {
"type": "string"
},
"repository": {
"type": "string"
},
"whitelist_ids": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"name": {
"type": "string",
"description": "Human readable name for the bundle"
},
"policies": {
"type": "array",
"description": "Policies which define the go/stop/warn status of an image using rule matches on image properties",
"items": {
"type": "object",
"required": [
"id",
"version"
],
"properties": {
"comment": {
"type": "string"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"rules": {
"type": "array",
"items": {
"type": "object",
"description": "A rule that defines and decision value if the match is found true for a given image.",
"required": [
"gate",
"trigger",
"action"
],
"properties": {
"action": {
"enum": [
"GO",
"STOP",
"WARN"
],
"type": "object"
},
"gate": {
"type": "string"
},
"id": {
"type": "string"
},
"params": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"value"
],
"properties": {
"name": {
"type": "object",
"additionalProperties": true
},
"value": {
"type": "object",
"additionalProperties": true
}
}
}
},
"trigger": {
"type": "string"
}
}
}
},
"version": {
"type": "string"
}
}
}
},
"version": {
"type": "string",
"description": "Version id for this bundle format"
},
"whitelisted_images": {
"type": "array",
"description": "List of mapping rules that define which images should always be passed (unless also on the blacklist), regardless of policy result.",
"items": {
"type": "object",
"required": [
"name",
"registry",
"repository",
"image"
],
"properties": {
"id": {
"type": "string"
},
"image": {
"type": "object",
"description": "A reference to an image",
"required": [
"type",
"value"
],
"properties": {
"type": {
"enum": [
"tag",
"digest",
"id"
],
"type": "object"
},
"value": {
"type": "string"
}
}
},
"name": {
"type": "string"
},
"registry": {
"type": "string"
},
"repository": {
"type": "string"
}
}
}
},
"whitelists": {
"type": "array",
"description": "Whitelists which define which policy matches to disregard explicitly in the final policy decision",
"items": {
"type": "object",
"description": "A collection of whitelist items to match a policy evaluation against.",
"required": [
"id",
"version"
],
"properties": {
"comment": {
"type": "string"
},
"id": {
"type": "string"
},
"items": {
"type": "array",
"items": {
"type": "object",
"description": "Identifies a specific gate and trigger match from a policy against an image and indicates it should be ignored in final policy decisions",
"required": [
"gate",
"trigger_id"
],
"properties": {
"expires_on": {
"type": "string",
"format": "date-time"
},
"gate": {
"type": "string"
},
"id": {
"type": "string"
},
"trigger_id": {
"type": "string"
}
}
}
},
"name": {
"type": "string"
},
"version": {
"type": "string"
}
}
}
}
}
},
"userId": {
"type": "string",
"description": "UserId of the user that owns the bundle"
},
"x-anchore-account": {
"type": "string"
}
},
"required": [
"policyId"
],
"additionalProperties": false
}Output
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
- 96
- 97
- 98
- 99
- 100
- 101
- 102
- 103
- 104
- 105
- 106
- 107
- 108
- 109
- 110
- 111
- 112
- 113
- 114
- 115
- 116
- 117
- 118
- 119
- 120
- 121
- 122
- 123
- 124
- 125
- 126
- 127
- 128
- 129
- 130
- 131
- 132
- 133
- 134
- 135
- 136
- 137
- 138
- 139
- 140
- 141
- 142
- 143
- 144
- 145
- 146
- 147
- 148
- 149
- 150
- 151
- 152
- 153
- 154
- 155
- 156
- 157
- 158
- 159
- 160
- 161
- 162
- 163
- 164
- 165
- 166
- 167
- 168
- 169
- 170
- 171
- 172
- 173
- 174
- 175
- 176
- 177
- 178
- 179
- 180
- 181
- 182
- 183
- 184
- 185
- 186
- 187
- 188
- 189
- 190
- 191
- 192
- 193
- 194
- 195
- 196
- 197
- 198
- 199
- 200
- 201
- 202
- 203
- 204
- 205
- 206
- 207
- 208
- 209
- 210
- 211
- 212
- 213
- 214
- 215
- 216
- 217
- 218
- 219
- 220
- 221
- 222
- 223
- 224
- 225
- 226
- 227
- 228
- 229
- 230
- 231
- 232
- 233
- 234
- 235
- 236
- 237
- 238
- 239
- 240
- 241
- 242
- 243
- 244
- 245
- 246
- 247
- 248
- 249
- 250
- 251
- 252
- 253
- 254
- 255
- 256
- 257
- 258
- 259
- 260
- 261
- 262
- 263
- 264
- 265
- 266
- 267
- 268
- 269
- 270
- 271
- 272
- 273
- 274
- 275
- 276
- 277
- 278
- 279
- 280
- 281
- 282
- 283
- 284
- 285
- 286
- 287
- 288
- 289
- 290
- 291
- 292
- 293
- 294
- 295
- 296
- 297
- 298
- 299
- 300
- 301
- 302
- 303
- 304
- 305
- 306
- 307
- 308
- 309
- 310
- 311
- 312
- 313
- 314
- 315
- 316
- 317
- 318
- 319
- 320
- 321
- 322
- 323
- 324
- 325
- 326
- 327
- 328
- 329
- 330
- 331
- 332
- 333
- 334
- 335
- 336
- 337
- 338
- 339
{
"type": "array",
"description": "List of PolicyBundleRecord objects",
"items": {
"type": "object",
"description": "A policy bundle plus some metadata",
"properties": {
"active": {
"type": "boolean",
"description": "True if the bundle is currently defined to be used automatically"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"last_updated": {
"type": "string",
"format": "date-time"
},
"policyId": {
"type": "string",
"description": "The bundle's identifier"
},
"policy_source": {
"type": "string",
"description": "Source location of where the policy bundle originated"
},
"policybundle": {
"type": "object",
"description": "A bundle containing a set of policies, whitelists, and rules for mapping them to specific images",
"required": [
"id",
"version",
"policies",
"mappings"
],
"properties": {
"blacklisted_images": {
"type": "array",
"description": "List of mapping rules that define which images should always result in a STOP/FAIL policy result regardless of policy content or presence in whitelisted_images",
"items": {
"type": "object",
"required": [
"name",
"registry",
"repository",
"image"
],
"properties": {
"id": {
"type": "string"
},
"image": {
"type": "object",
"description": "A reference to an image",
"required": [
"type",
"value"
],
"properties": {
"type": {
"enum": [
"tag",
"digest",
"id"
],
"type": "object"
},
"value": {
"type": "string"
}
}
},
"name": {
"type": "string"
},
"registry": {
"type": "string"
},
"repository": {
"type": "string"
}
}
}
},
"comment": {
"type": "string",
"description": "Description of the bundle, human readable"
},
"id": {
"type": "string",
"description": "Id of the bundle"
},
"mappings": {
"type": "array",
"description": "Mapping rules for defining which policy and whitelist(s) to apply to an image based on a match of the image tag or id. Evaluated in order.",
"items": {
"type": "object",
"required": [
"name",
"registry",
"repository",
"image"
],
"properties": {
"id": {
"type": "string"
},
"image": {
"type": "object",
"description": "A reference to an image",
"required": [
"type",
"value"
],
"properties": {
"type": {
"enum": [
"tag",
"digest",
"id"
],
"type": "object"
},
"value": {
"type": "string"
}
}
},
"name": {
"type": "string"
},
"policy_id": {
"type": "string",
"description": "Optional single policy to evalute, if set will override any value in policy_ids, for backwards compatibility. Generally, policy_ids should be used even with a array of length 1."
},
"policy_ids": {
"type": "array",
"description": "List of policyIds to evaluate in order, to completion",
"items": {
"type": "string",
"description": "PolicyId to evaluate"
}
},
"registry": {
"type": "string"
},
"repository": {
"type": "string"
},
"whitelist_ids": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"name": {
"type": "string",
"description": "Human readable name for the bundle"
},
"policies": {
"type": "array",
"description": "Policies which define the go/stop/warn status of an image using rule matches on image properties",
"items": {
"type": "object",
"required": [
"id",
"version"
],
"properties": {
"comment": {
"type": "string"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"rules": {
"type": "array",
"items": {
"type": "object",
"description": "A rule that defines and decision value if the match is found true for a given image.",
"required": [
"gate",
"trigger",
"action"
],
"properties": {
"action": {
"enum": [
"GO",
"STOP",
"WARN"
],
"type": "object"
},
"gate": {
"type": "string"
},
"id": {
"type": "string"
},
"params": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
"trigger": {
"type": "string"
}
}
}
},
"version": {
"type": "string"
}
}
}
},
"version": {
"type": "string",
"description": "Version id for this bundle format"
},
"whitelisted_images": {
"type": "array",
"description": "List of mapping rules that define which images should always be passed (unless also on the blacklist), regardless of policy result.",
"items": {
"type": "object",
"required": [
"name",
"registry",
"repository",
"image"
],
"properties": {
"id": {
"type": "string"
},
"image": {
"type": "object",
"description": "A reference to an image",
"required": [
"type",
"value"
],
"properties": {
"type": {
"enum": [
"tag",
"digest",
"id"
],
"type": "object"
},
"value": {
"type": "string"
}
}
},
"name": {
"type": "string"
},
"registry": {
"type": "string"
},
"repository": {
"type": "string"
}
}
}
},
"whitelists": {
"type": "array",
"description": "Whitelists which define which policy matches to disregard explicitly in the final policy decision",
"items": {
"type": "object",
"description": "A collection of whitelist items to match a policy evaluation against.",
"required": [
"id",
"version"
],
"properties": {
"comment": {
"type": "string"
},
"id": {
"type": "string"
},
"items": {
"type": "array",
"items": {
"type": "object",
"description": "Identifies a specific gate and trigger match from a policy against an image and indicates it should be ignored in final policy decisions",
"required": [
"gate",
"trigger_id"
],
"properties": {
"expires_on": {
"type": "string",
"format": "date-time"
},
"gate": {
"type": "string"
},
"id": {
"type": "string"
},
"trigger_id": {
"type": "string"
}
}
}
},
"name": {
"type": "string"
},
"version": {
"type": "string"
}
}
}
}
}
},
"userId": {
"type": "string",
"description": "UserId of the user that owns the bundle"
}
}
}
}