Sonatype · Capability

Sonatype Lifecycle Public REST API — Data Retention Policies

Sonatype Lifecycle Public REST API — Data Retention Policies. 3 operations. Lead operation: Data Retention Policies. Self-contained Naftiko capability covering one Sonatype business surface.

Run with Naftiko SonatypeData Retention Policies

What You Can Do

GET
Getdataretentionpolicies — Data retention policies help to limit the disk space consumption by removing obsolete data. Use this method to inspect the retention policies that are in effect for an organization. Application reports created by continuous monitoring are n
/v1/api/v2/dataretentionpolicies/organizations/{organizationid}
PUT
Setdataretentionpolicies — Data retention policies help to limit the disk space consumption by removing obsolete data. Use this method to set the retention policies for an organization. Application reports created by continuous monitoring are not affected by the stag
/v1/api/v2/dataretentionpolicies/organizations/{organizationid}
GET
Getparentdataretentionpolicies — Data retention policies help to limit the disk space consumption by removing obsolete data. Use this method to inspect the retention policies that are in effect for the parent organization of the given organization. Application reports crea
/v1/api/v2/dataretentionpolicies/organizations/{organizationid}/parent

MCP Tools

data-retention-policies-help-limit

Data retention policies help to limit the disk space consumption by removing obsolete data. Use this method to inspect the retention policies that are in effect for an organization. Application reports created by continuous monitoring are n

read-only idempotent
data-retention-policies-help-limit-2

Data retention policies help to limit the disk space consumption by removing obsolete data. Use this method to set the retention policies for an organization. Application reports created by continuous monitoring are not affected by the stag

idempotent
data-retention-policies-help-limit-3

Data retention policies help to limit the disk space consumption by removing obsolete data. Use this method to inspect the retention policies that are in effect for the parent organization of the given organization. Application reports crea

read-only idempotent

Capability Spec

lifecycle-data-retention-policies.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Sonatype Lifecycle Public REST API — Data Retention Policies
  description: 'Sonatype Lifecycle Public REST API — Data Retention Policies. 3 operations. Lead operation: Data Retention
    Policies. Self-contained Naftiko capability covering one Sonatype business surface.'
  tags:
  - Sonatype
  - Data Retention Policies
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SONATYPE_API_KEY: SONATYPE_API_KEY
capability:
  consumes:
  - type: http
    namespace: lifecycle-data-retention-policies
    baseUri: ''
    description: Sonatype Lifecycle Public REST API — Data Retention Policies business capability. Self-contained, no shared
      references.
    resources:
    - name: api-v2-dataRetentionPolicies-organizations-organizationId
      path: /api/v2/dataRetentionPolicies/organizations/{organizationId}
      operations:
      - name: getdataretentionpolicies
        method: GET
        description: Data retention policies help to limit the disk space consumption by removing obsolete data. Use this
          method to inspect the retention policies that are in effect for an organization. Application reports created by
          continuous monitoring are n
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: organizationId
          in: path
          type: string
          description: The organizationId assigned by IQ Server. Use the organization REST API to retrieve the organizationId.
          required: true
      - name: setdataretentionpolicies
        method: PUT
        description: Data retention policies help to limit the disk space consumption by removing obsolete data. Use this
          method to set the retention policies for an organization. Application reports created by continuous monitoring are
          not affected by the stag
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: organizationId
          in: path
          type: string
          description: The organizationId for the organization you want to set the data retention policy. Use the organization
            REST API to retrieve the organizationId.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-v2-dataRetentionPolicies-organizations-organizationId-parent
      path: /api/v2/dataRetentionPolicies/organizations/{organizationId}/parent
      operations:
      - name: getparentdataretentionpolicies
        method: GET
        description: Data retention policies help to limit the disk space consumption by removing obsolete data. Use this
          method to inspect the retention policies that are in effect for the parent organization of the given organization.
          Application reports crea
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: organizationId
          in: path
          type: string
          description: The organizationId assigned by IQ Server. Use the organization REST API to retrieve the parent organizationId
          required: true
    authentication:
      type: bearer
      token: '{{env.SONATYPE_API_KEY}}'
  exposes:
  - type: rest
    namespace: lifecycle-data-retention-policies-rest
    port: 8080
    description: REST adapter for Sonatype Lifecycle Public REST API — Data Retention Policies. One Spectral-compliant resource
      per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/api/v2/dataretentionpolicies/organizations/{organizationid}
      name: api-v2-dataretentionpolicies-organizations-organizationid
      description: REST surface for api-v2-dataRetentionPolicies-organizations-organizationId.
      operations:
      - method: GET
        name: getdataretentionpolicies
        description: Data retention policies help to limit the disk space consumption by removing obsolete data. Use this
          method to inspect the retention policies that are in effect for an organization. Application reports created by
          continuous monitoring are n
        call: lifecycle-data-retention-policies.getdataretentionpolicies
        with:
          organizationId: rest.organizationId
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setdataretentionpolicies
        description: Data retention policies help to limit the disk space consumption by removing obsolete data. Use this
          method to set the retention policies for an organization. Application reports created by continuous monitoring are
          not affected by the stag
        call: lifecycle-data-retention-policies.setdataretentionpolicies
        with:
          organizationId: rest.organizationId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v2/dataretentionpolicies/organizations/{organizationid}/parent
      name: api-v2-dataretentionpolicies-organizations-organizationid-parent
      description: REST surface for api-v2-dataRetentionPolicies-organizations-organizationId-parent.
      operations:
      - method: GET
        name: getparentdataretentionpolicies
        description: Data retention policies help to limit the disk space consumption by removing obsolete data. Use this
          method to inspect the retention policies that are in effect for the parent organization of the given organization.
          Application reports crea
        call: lifecycle-data-retention-policies.getparentdataretentionpolicies
        with:
          organizationId: rest.organizationId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: lifecycle-data-retention-policies-mcp
    port: 9090
    transport: http
    description: MCP adapter for Sonatype Lifecycle Public REST API — Data Retention Policies. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: data-retention-policies-help-limit
      description: Data retention policies help to limit the disk space consumption by removing obsolete data. Use this method
        to inspect the retention policies that are in effect for an organization. Application reports created by continuous
        monitoring are n
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: lifecycle-data-retention-policies.getdataretentionpolicies
      with:
        organizationId: tools.organizationId
      outputParameters:
      - type: object
        mapping: $.
    - name: data-retention-policies-help-limit-2
      description: Data retention policies help to limit the disk space consumption by removing obsolete data. Use this method
        to set the retention policies for an organization. Application reports created by continuous monitoring are not affected
        by the stag
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: lifecycle-data-retention-policies.setdataretentionpolicies
      with:
        organizationId: tools.organizationId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: data-retention-policies-help-limit-3
      description: Data retention policies help to limit the disk space consumption by removing obsolete data. Use this method
        to inspect the retention policies that are in effect for the parent organization of the given organization. Application
        reports crea
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: lifecycle-data-retention-policies.getparentdataretentionpolicies
      with:
        organizationId: tools.organizationId
      outputParameters:
      - type: object
        mapping: $.