Skip to main content

pbf_listing_versions

Creates, updates, deletes, gets or lists a pbf_listing_versions resource.

Overview​

Namepbf_listing_versions
TypeResource
Idoci.functions.pbf_listing_versions

Fields​

The following fields are returned by SELECT queries:

Retrieves the PbfListingVersion for the given PbfListing id and version.

NameDatatypeDescription
idstringUnique identifier that is immutable on creation (example: ocid1.pbflistingversion.oc1.iad.aaaaaaaal3dkjeliven6l7kw3kiwlkbqjtfhdra6fly7uqekgmuef6forplq)
namestringSemantic version (example: 0.0.1)
changeSummarystringDetails changes are included in this version. (example: First release of the PBF.<br />)
configarrayDetails about the required and optional Function configurations needed for proper performance of the PBF. (x-default-description: null)
definedTagsobjectDefined tags for this resource. Each key is predefined and scoped to a namespace. Example: &#123;"foo-namespace": &#123;"bar-key": "value"&#125;&#125;
freeformTagsobjectSimple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: &#123;"bar-key": "value"&#125;
lifecycleStatestringThe current state of the PBF resource. (ACTIVE, INACTIVE, DELETED)
pbfListingIdstringThe OCID of the PbfListing this resource version belongs to. (example: ocid1.pbflisting.oc1.iad.aaaaaaaal3dkjeliven6l7kw3kiwlkbqjtfhdra6fly7uqekgmuef6forplq)
requirementsobjectMinimum memory required by this PBF. The user should use memory greater than or equal to this value while configuring the Function.
systemTagsobjectSystem tags for this resource. Each key is predefined and scoped to a namespace. Example: &#123;"orcl-cloud": &#123;"free-tier-retained": "true"&#125;&#125;
timeCreatedstring (date-time)The time the PbfListingVersion was created. An RFC3339 formatted datetime string. (example: 2022-09-30T0710:20:50.52Z)
timeUpdatedstring (date-time)The last time the PbfListingVersion was updated. An RFC3339 formatted datetime string. (example: 2022-09-30T0710:20:50.52Z)
triggersarrayAn array of Trigger. A list of triggers that may activate the PBF.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectpbfListingVersionId, regionopc-request-idGets a PbfListingVersion by identifier for a PbfListing.
listselectpbfListingId, regionpbfListingVersionId, name, isCurrentVersion, lifecycleState, limit, page, sortOrder, sortBy, opc-request-idFetches a wrapped list of all Pre-built Function(PBF) Listing versions. Returns a PbfListingVersionCollection <br />containing an array of PbfListingVersionSummary response models.<br /><br />Note that the PbfListingIdentifier must be provided as a query parameter, otherwise an exception shall <br />be thrown.<br />

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
pbfListingIdstringunique PbfListing identifier
pbfListingVersionIdstringunique PbfListingVersion identifier
regionstringOCI region identifier (e.g. us-ashburn-1, ap-sydney-1); resolves from OCI_REGION when not supplied in the query. (default: us-ashburn-1, x-stackQL-envVar: OCI_REGION)
isCurrentVersionbooleanMatches the current version (the most recently added version with an Active lifecycleState) associated with a PbfListing.
lifecycleStatestringA filter to return only resources their lifecycleState matches the given lifecycleState.
limitintegerThe maximum number of items to return. 1 is the minimum, 50 is the maximum. Default: 10
namestringMatches a PbfListingVersion based on a provided semantic version name for a PbfListingVersion. Each PbfListingVersion name is unique with respect to its associated PbfListing.
opc-request-idstringThe unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
pagestringThe pagination token for a list query returned by a previous operation
pbfListingVersionIdstringunique PbfListingVersion identifier
sortBystringThe field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for name is ascending.
sortOrderstringSpecifies sort order. * ASC: Ascending sort order. * DESC: Descending sort order.

SELECT examples​

Gets a PbfListingVersion by identifier for a PbfListing.

SELECT
id,
name,
changeSummary,
config,
definedTags,
freeformTags,
lifecycleState,
pbfListingId,
requirements,
systemTags,
timeCreated,
timeUpdated,
triggers
FROM oci.functions.pbf_listing_versions
WHERE pbfListingVersionId = '{{ pbfListingVersionId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
;