---
layout: "fastly"
page_title: "Fastly: fastly_api_security_operation_tag"
sidebar_current: "docs-fastly-resource-api-security-operation-tag"
description: |-
  Manages an API Security operation tag for a Fastly service.
---

# fastly_api_security_operation_tag

Manages an API Security operation tag for a Fastly service. Operation tags can be used to group and organize operations.

## Example Usage

Basic usage:

```terraform
resource "fastly_service_vcl" "svc1" {
  name          = "test-svc-1-example"
  force_destroy = true

  backend {
    address = "example.com"
    name    = "tf-test-backend-1"
  }
}

resource "fastly_api_security_operation_tag" "example" {
  service_id  = fastly_service_vcl.svc1.id
  name        = "production"
  description = "Tag for production endpoints"
}
```

## Import

API Security operation tags can be imported using a composite ID of the form `<service_id>/<tag_id>`, e.g.

```sh
terraform import fastly_api_security_operation_tag.example <service_id>/<tag_id>
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `name` (String) The name of the operation tag.
- `service_id` (String) Service ID the tag belongs to. To import, use: <service_id>/<tag_id>.

### Optional

- `description` (String) The description of the operation tag.

### Read-Only

- `created_at` (String) Created timestamp (when present).
- `id` (String) The ID of this resource.
- `operation_count` (Number) Number of operations associated with this tag (when present).
- `tag_id` (String) The tag ID.
- `updated_at` (String) Updated timestamp (when present).
