Oracle Cloud Identity and Access Management API — Policies

Oracle Cloud Identity and Access Management API — Policies. 2 operations. Lead operation: Oracle Cloud List Policies. Self-contained Naftiko capability covering one Oracle Cloud business surface.

Run with Naftiko Oracle CloudPolicies

What You Can Do

GET
Listpolicies — Oracle Cloud List Policies
/v1/policies
POST
Createpolicy — Oracle Cloud Create Policy
/v1/policies

MCP Tools

oracle-cloud-list-policies

Oracle Cloud List Policies

read-only idempotent
oracle-cloud-create-policy

Oracle Cloud Create Policy

Capability Spec

iam-policies.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Oracle Cloud Identity and Access Management API — Policies
  description: 'Oracle Cloud Identity and Access Management API — Policies. 2 operations. Lead operation: Oracle Cloud List
    Policies. Self-contained Naftiko capability covering one Oracle Cloud business surface.'
  tags:
  - Oracle Cloud
  - Policies
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ORACLE_CLOUD_API_KEY: ORACLE_CLOUD_API_KEY
capability:
  consumes:
  - type: http
    namespace: iam-policies
    baseUri: https://identity.{region}.oraclecloud.com/20160918
    description: Oracle Cloud Identity and Access Management API — Policies business capability. Self-contained, no shared
      references.
    resources:
    - name: policies
      path: /policies
      operations:
      - name: listpolicies
        method: GET
        description: Oracle Cloud List Policies
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: compartmentId
          in: query
          type: string
          description: The OCID of the compartment.
          required: true
      - name: createpolicy
        method: POST
        description: Oracle Cloud Create Policy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.ORACLE_CLOUD_API_KEY}}'
  exposes:
  - type: rest
    namespace: iam-policies-rest
    port: 8080
    description: REST adapter for Oracle Cloud Identity and Access Management API — Policies. One Spectral-compliant resource
      per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/policies
      name: policies
      description: REST surface for policies.
      operations:
      - method: GET
        name: listpolicies
        description: Oracle Cloud List Policies
        call: iam-policies.listpolicies
        with:
          compartmentId: rest.compartmentId
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createpolicy
        description: Oracle Cloud Create Policy
        call: iam-policies.createpolicy
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: iam-policies-mcp
    port: 9090
    transport: http
    description: MCP adapter for Oracle Cloud Identity and Access Management API — Policies. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: oracle-cloud-list-policies
      description: Oracle Cloud List Policies
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: iam-policies.listpolicies
      with:
        compartmentId: tools.compartmentId
      outputParameters:
      - type: object
        mapping: $.
    - name: oracle-cloud-create-policy
      description: Oracle Cloud Create Policy
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: iam-policies.createpolicy
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.