Sysdig · Capability

Sysdig Secure API — Policies

Sysdig Secure API — Policies. 5 operations. Lead operation: List Policies. Self-contained Naftiko capability covering one Sysdig business surface.

Run with Naftiko SysdigPolicies

What You Can Do

GET
Listpolicies — List Policies
/v1/api/policies/v2
POST
Createpolicy — Create Policy
/v1/api/policies/v2
GET
Getpolicy — Get Policy
/v1/api/policies/v2/{policyid}
PUT
Updatepolicy — Update Policy
/v1/api/policies/v2/{policyid}
DELETE
Deletepolicy — Delete Policy
/v1/api/policies/v2/{policyid}

MCP Tools

list-policies

List Policies

read-only idempotent
create-policy

Create Policy

get-policy

Get Policy

read-only idempotent
update-policy

Update Policy

idempotent
delete-policy

Delete Policy

idempotent

Capability Spec

secure-policies.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Sysdig Secure API — Policies
  description: 'Sysdig Secure API — Policies. 5 operations. Lead operation: List Policies. Self-contained Naftiko capability
    covering one Sysdig business surface.'
  tags:
  - Sysdig
  - Policies
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SYSDIG_API_KEY: SYSDIG_API_KEY
capability:
  consumes:
  - type: http
    namespace: secure-policies
    baseUri: https://api.us1.sysdig.com
    description: Sysdig Secure API — Policies business capability. Self-contained, no shared references.
    resources:
    - name: api-policies-v2
      path: /api/policies/v2
      operations:
      - name: listpolicies
        method: GET
        description: List Policies
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: type
          in: query
          type: string
          description: Filter by policy type
        - name: limit
          in: query
          type: integer
      - name: createpolicy
        method: POST
        description: Create Policy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-policies-v2-policyId
      path: /api/policies/v2/{policyId}
      operations:
      - name: getpolicy
        method: GET
        description: Get Policy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatepolicy
        method: PUT
        description: Update Policy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletepolicy
        method: DELETE
        description: Delete Policy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.SYSDIG_API_KEY}}'
  exposes:
  - type: rest
    namespace: secure-policies-rest
    port: 8080
    description: REST adapter for Sysdig Secure API — Policies. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/api/policies/v2
      name: api-policies-v2
      description: REST surface for api-policies-v2.
      operations:
      - method: GET
        name: listpolicies
        description: List Policies
        call: secure-policies.listpolicies
        with:
          type: rest.type
          limit: rest.limit
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createpolicy
        description: Create Policy
        call: secure-policies.createpolicy
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/policies/v2/{policyid}
      name: api-policies-v2-policyid
      description: REST surface for api-policies-v2-policyId.
      operations:
      - method: GET
        name: getpolicy
        description: Get Policy
        call: secure-policies.getpolicy
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatepolicy
        description: Update Policy
        call: secure-policies.updatepolicy
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletepolicy
        description: Delete Policy
        call: secure-policies.deletepolicy
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: secure-policies-mcp
    port: 9090
    transport: http
    description: MCP adapter for Sysdig Secure API — Policies. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-policies
      description: List Policies
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: secure-policies.listpolicies
      with:
        type: tools.type
        limit: tools.limit
      outputParameters:
      - type: object
        mapping: $.
    - name: create-policy
      description: Create Policy
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: secure-policies.createpolicy
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-policy
      description: Get Policy
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: secure-policies.getpolicy
      outputParameters:
      - type: object
        mapping: $.
    - name: update-policy
      description: Update Policy
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: secure-policies.updatepolicy
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-policy
      description: Delete Policy
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: secure-policies.deletepolicy
      outputParameters:
      - type: object
        mapping: $.