SnykGroupTag

Model for Snyk Group Tags (v1 API).

  1. Overview

Overview

This model represents tags that can be applied to projects within a group. Tags are key-value pairs used for organizing and filtering projects.

Uses the Snyk v1 API endpoint: /group/{groupId}/tags

Usage

import clearskies
from clearskies_snyk.models.v1 import SnykGroupTag


def my_handler(snyk_group_tag: SnykGroupTag):
    # Fetch all tags for a group
    tags = snyk_group_tag.where("group_id=group-id-123")
    for tag in tags:
        print(f"Tag: {tag.key}={tag.value}")

Tag Structure

Tags consist of:

  • key: The tag category (e.g., ‘environment’, ‘team’)
  • value: The tag value (e.g., ‘production’, ‘backend’)

Required Permissions

  • Admin access to the group