Update Tag Rule
Prisma Cloud Code Security supports tagging management for IaC templates, based on the company’s open-source tool Yor (https://yor.io/). With tag rules, you can manage your tagging strategies easily across providers and repositories, even before they go live. Such capability allows users to enable out-of-the-box (OOTB) Prisma Cloud Code Security tag rules, such as the traceability tag (“yor_trace”) used for code-to-cloud resource tracing and drift detection. Furthermore, Prisma Cloud Code Security enables custom tag rule creation and management (edit, clone, enable, disable and delete).
This API is used to update a custom or OOTB tag rule definition based on input of:
- Repositories
- Rule definition
- Key name
- Rule status (enabled/disabled)
- Description
The response includes:
- Repositories where the rule is applied
- Rule Definition
- Rule status (enabled/disabled)
- Rule ID
- Rule name
- Description
Path Parameters
- tagRuleId string required
- The tag rule id to update
- application/json
Request Body required
- description string
- isEnabled boolean
- name string
- repositories string[]
ruleDefinition object
tag_groups object[] required
Array [name string requiredtags object[] required
Array [name string requiredvalue object required
default stringmatches object[]
Array []]]- tagRuleOOTBId string
Responses
- 200
- 422
Tag updated
- application/json
- Schema
- Example (from schema)
Schema
- msg string
- upserted boolean required
{
"msg": "string",
"upserted": true
}
Request arguments validation error
Loading...