Skip to main content

project_certificates

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

Overview

Nameproject_certificates
TypeResource
Idopenai_admin.certificates.project_certificates

Fields

The following fields are returned by SELECT queries:

Certificates listed successfully.

NameDatatypeDescription
idstringThe identifier, which can be referenced in API endpoints
namestringThe name of the certificate.
activebooleanWhether the certificate is currently active at the project level.
certificate_detailsobject
created_atinteger (unixtime)The Unix timestamp (in seconds) of when the certificate was uploaded.
objectstringThe object type, which is always organization.project.certificate. (organization.project.certificate)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectproject_idlimit, after, order
activateexecproject_id, certificate_ids
deactivateexecproject_id, certificate_ids

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
project_idstringThe ID of the project.
afterstringA cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
limitintegerA limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.
orderstringSort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.

SELECT examples

Certificates listed successfully.

SELECT
id,
name,
active,
certificate_details,
created_at,
object
FROM openai_admin.certificates.project_certificates
WHERE project_id = '{{ project_id }}' -- required
AND limit = '{{ limit }}'
AND after = '{{ after }}'
AND order = '{{ order }}'
;

Lifecycle Methods

Certificates activated successfully.

EXEC openai_admin.certificates.project_certificates.activate
@project_id='{{ project_id }}' --required
@@json=
'{
"certificate_ids": "{{ certificate_ids }}"
}'
;