openapi: 3.0.3 info: title: Oracle Cloud Compute Alarms Functions API description: Manage compute instances, images, shapes, and related resources in Oracle Cloud Infrastructure. version: '20160918' x-generated-from: documentation x-last-validated: '2026-04-18' contact: name: Oracle Cloud Infrastructure url: https://docs.oracle.com/en-us/iaas/Content/Compute/home.htm servers: - url: https://iaas.{region}.oraclecloud.com/20160918 description: OCI Compute API server variables: region: default: us-ashburn-1 description: OCI region identifier security: - ociSignature: [] tags: - name: Functions paths: /functions: get: operationId: listFunctions summary: Oracle Cloud List Functions description: Lists functions in an application. tags: - Functions parameters: - name: applicationId in: query required: true description: The OCID of the application. schema: type: string example: ocid1.resource.oc1.iad.abcdefg123456 responses: '200': description: Successfully retrieved. content: application/json: schema: type: array items: $ref: '#/components/schemas/FunctionSummary' examples: ListFunctions200Example: summary: Default listFunctions 200 response x-microcks-default: true value: - id: ocid1.resource.oc1.iad.abcdefg123456 applicationId: ocid1.resource.oc1.iad.abcdefg123456 displayName: my-resource image: ocid1.image.oc1.iad.abcdefg123456 memoryInMBs: 1 lifecycleState: example-value timeCreated: '2026-04-18T10:30:00Z' x-microcks-operation: delay: 0 dispatcher: FALLBACK post: operationId: createFunction summary: Oracle Cloud Create Function description: Creates a new function. tags: - Functions requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateFunctionDetails' examples: CreateFunctionRequestExample: summary: Default createFunction request x-microcks-default: true value: applicationId: ocid1.resource.oc1.iad.abcdefg123456 displayName: my-resource image: ocid1.image.oc1.iad.abcdefg123456 memoryInMBs: 1 timeoutInSeconds: 30 config: key1: value1 responses: '200': description: Successfully created. content: application/json: schema: $ref: '#/components/schemas/Function' examples: CreateFunction200Example: summary: Default createFunction 200 response x-microcks-default: true value: id: ocid1.resource.oc1.iad.abcdefg123456 applicationId: ocid1.resource.oc1.iad.abcdefg123456 compartmentId: ocid1.resource.oc1.iad.abcdefg123456 displayName: my-function image: iad.ocir.io/my-namespace/my-app/my-function:0.0.1 memoryInMBs: 256 timeoutInSeconds: 30 lifecycleState: CREATING invokeEndpoint: example-value timeCreated: '2026-04-18T10:30:00Z' config: key1: value1 x-microcks-operation: delay: 0 dispatcher: FALLBACK /functions/{functionId}: get: operationId: getFunction summary: Oracle Cloud Get Function description: Gets a function. tags: - Functions parameters: - name: functionId in: path required: true description: The OCID of the function. schema: type: string example: ocid1.resource.oc1.iad.abcdefg123456 responses: '200': description: Successfully retrieved. content: application/json: schema: $ref: '#/components/schemas/Function' examples: GetFunction200Example: summary: Default getFunction 200 response x-microcks-default: true value: id: ocid1.resource.oc1.iad.abcdefg123456 applicationId: ocid1.resource.oc1.iad.abcdefg123456 compartmentId: ocid1.resource.oc1.iad.abcdefg123456 displayName: my-function image: iad.ocir.io/my-namespace/my-app/my-function:0.0.1 memoryInMBs: 256 timeoutInSeconds: 30 lifecycleState: CREATING invokeEndpoint: example-value timeCreated: '2026-04-18T10:30:00Z' config: key1: value1 x-microcks-operation: delay: 0 dispatcher: FALLBACK delete: operationId: deleteFunction summary: Oracle Cloud Delete Function description: Deletes a function. tags: - Functions parameters: - name: functionId in: path required: true description: The OCID of the function. schema: type: string example: ocid1.resource.oc1.iad.abcdefg123456 responses: '204': description: Successfully deleted. x-microcks-operation: delay: 0 dispatcher: FALLBACK /functions/{functionId}/actions/invoke: post: operationId: invokeFunction summary: Oracle Cloud Invoke Function description: Invokes a function synchronously. tags: - Functions parameters: - name: functionId in: path required: true description: The OCID of the function. schema: type: string example: ocid1.resource.oc1.iad.abcdefg123456 requestBody: content: application/octet-stream: schema: type: string format: binary responses: '200': description: Function invoked successfully. content: application/octet-stream: schema: type: string format: binary x-microcks-operation: delay: 0 dispatcher: FALLBACK components: schemas: FunctionSummary: type: object properties: id: type: string example: ocid1.resource.oc1.iad.abcdefg123456 applicationId: type: string example: ocid1.resource.oc1.iad.abcdefg123456 displayName: type: string example: my-resource image: type: string example: ocid1.image.oc1.iad.abcdefg123456 memoryInMBs: type: integer example: 1 lifecycleState: type: string example: example-value timeCreated: type: string format: date-time example: '2026-04-18T10:30:00Z' Function: type: object description: A serverless function. properties: id: type: string example: ocid1.resource.oc1.iad.abcdefg123456 applicationId: type: string example: ocid1.resource.oc1.iad.abcdefg123456 compartmentId: type: string example: ocid1.resource.oc1.iad.abcdefg123456 displayName: type: string example: my-function image: type: string example: iad.ocir.io/my-namespace/my-app/my-function:0.0.1 memoryInMBs: type: integer example: 256 timeoutInSeconds: type: integer example: 30 lifecycleState: type: string enum: - CREATING - ACTIVE - INACTIVE - UPDATING - DELETING - DELETED - FAILED example: CREATING invokeEndpoint: type: string example: example-value timeCreated: type: string format: date-time example: '2026-04-18T10:30:00Z' config: type: object additionalProperties: type: string example: key1: value1 CreateFunctionDetails: type: object required: - applicationId - displayName - image - memoryInMBs properties: applicationId: type: string example: ocid1.resource.oc1.iad.abcdefg123456 displayName: type: string example: my-resource image: type: string example: ocid1.image.oc1.iad.abcdefg123456 memoryInMBs: type: integer example: 1 timeoutInSeconds: type: integer default: 30 example: 30 config: type: object additionalProperties: type: string example: key1: value1 securitySchemes: ociSignature: type: http scheme: bearer description: OCI request signature authentication using API signing keys.