Skip to main content

organization_secrets

Overview

Nameorganization_secrets
TypeResource
Idgithub.codespaces.organization_secrets

Fields

NameDatatypeDescription
namestringThe name of the secret
created_atstringThe date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.
selected_repositories_urlstringThe API URL at which the list of repositories this secret is visible to can be retrieved
updated_atstringThe date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.
visibilitystringThe type of repositories in the organization that the secret is visible to

Methods

NameAccessible byRequired ParamsDescription
get_org_secretSELECTorg, secret_nameGets an organization secret without revealing its encrypted value.
You must authenticate using an access token with the admin:org scope to use this endpoint.
list_org_secretsSELECTorgLists all Codespaces secrets available at the organization-level without revealing their encrypted values.
You must authenticate using an access token with the admin:org scope to use this endpoint.
create_or_update_org_secretINSERTorg, secret_name, data__visibilityCreates or updates an organization secret with an encrypted value. Encrypt your secret using
LibSodium. For more information, see "Encrypting secrets for the REST API."

You must authenticate using an access
token with the admin:org scope to use this endpoint.
delete_org_secretDELETEorg, secret_nameDeletes an organization secret using the secret name. You must authenticate using an access token with the admin:org scope to use this endpoint.