Skip to content

Latest commit

 

History

History
76 lines (50 loc) · 3.39 KB

WebhookSecretKeyService.md

File metadata and controls

76 lines (50 loc) · 3.39 KB

WebhookSecretKeyService

A list of all methods in the WebhookSecretKeyService service. Click on the method name to view detailed information about that method.

Methods Description
get_webhook_secret_key Gets the webhook secret key
update_webhook_secret_key Updates the webhook secret key

get_webhook_secret_key

Gets the webhook secret key

  • HTTP Method: GET
  • Endpoint: /organizations/{organization_name}/webhook-secret-key

Parameters

Name Type Required Description
organization_name str Your organization name. This identifies the billing context for the API operation and represents a security boundary for SaladCloud resources. The organization must be created before using the API, and you must be a member of the organization.

Return Type

WebhookSecretKey

Example Usage Code Snippet

from salad_cloud_sdk import SaladCloudSdk, Environment

sdk = SaladCloudSdk(
    api_key="YOUR_API_KEY",
    api_key_header="YOUR_API_KEY_HEADER",
    base_url=Environment.DEFAULT.value,
    timeout=10000
)

result = sdk.webhook_secret_key.get_webhook_secret_key(organization_name="mouv4w914sp420zyiuo43jexocjzq6rnxf04dqmccakipx9g3a72svbj")

print(result)

update_webhook_secret_key

Updates the webhook secret key

  • HTTP Method: POST
  • Endpoint: /organizations/{organization_name}/webhook-secret-key

Parameters

Name Type Required Description
organization_name str Your organization name. This identifies the billing context for the API operation and represents a security boundary for SaladCloud resources. The organization must be created before using the API, and you must be a member of the organization.

Return Type

WebhookSecretKey

Example Usage Code Snippet

from salad_cloud_sdk import SaladCloudSdk, Environment

sdk = SaladCloudSdk(
    api_key="YOUR_API_KEY",
    api_key_header="YOUR_API_KEY_HEADER",
    base_url=Environment.DEFAULT.value,
    timeout=10000
)

result = sdk.webhook_secret_key.update_webhook_secret_key(organization_name="mouv4w914sp420zyiuo43jexocjzq6rnxf04dqmccakipx9g3a72svbj")

print(result)