organization_secrets
Overview
Name | organization_secrets |
Type | Resource |
Id | github.codespaces.organization_secrets |
Fields
Name | Datatype | Description |
---|---|---|
name | string | The name of the secret |
created_at | string | The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. |
selected_repositories_url | string | The API URL at which the list of repositories this secret is visible to can be retrieved |
updated_at | string | The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. |
visibility | string | The type of repositories in the organization that the secret is visible to |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get_org_secret | SELECT | org, secret_name | Gets 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_secrets | SELECT | org | Lists 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_secret | INSERT | org, secret_name, data__visibility | Creates 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_secret | DELETE | org, secret_name | Deletes an organization secret using the secret name. You must authenticate using an access token with the admin:org scope to use this endpoint. |