Get Tag Rule by ID
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 get the definition of a tag rule based on a rule ID input. The response includes:
- Rule Name
- Description
- Rule status (enabled/disabled)
- Repositories - a list of repositories the rule applies to
Path Parameters
- tagRuleId string required
- The tag rule ID to get
Responses
- 200
- 422
Get tag
- application/json
- Schema
- Example (from schema)
Schema
- canDoActions boolean
- createdBy string required
- creationDate string required
definition object required
tag_groups object[] required
Array [name string requiredtags object[] required
Array [name string requiredvalue object required
default stringmatches object[]
Array []]]- description string
- id string required
- isEnabled boolean required
- name string required
- repositories string[] required
- tagRuleOOTBId string
{
"canDoActions": true,
"createdBy": "string",
"creationDate": "string",
"definition": {
"tag_groups": [
{
"name": "string",
"tags": [
{
"name": "string",
"value": {
"default": "string",
"matches": [
{}
]
}
}
]
}
]
},
"description": "string",
"id": "string",
"isEnabled": true,
"name": "string",
"repositories": [
"string"
],
"tagRuleOOTBId": "string"
}
Request arguments validation error
Loading...