Python
import os from gcore import Gcore client = Gcore( api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted ) task_id_list = client.cloud.secrets.upload_tls_certificate( project_id=1, region_id=1, name="Load balancer certificate #1", payload={ "certificate": "<certificate>", "certificate_chain": "<certificate_chain>", "private_key": "<private_key>", }, ) print(task_id_list.tasks)
{ "tasks": [ "<string>" ] }
API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef
apikey
apikey 1234$abcdef
Project ID
1
Region ID
Secret name
"Load balancer certificate #1"
Secret payload.
Show child attributes
Datetime when the secret will expire. Defaults to None
"2025-12-28T19:14:44.180394"
OK
List of task IDs
["d478ae29-dedc-4869-82f0-96104425f565"]
Was this page helpful?