Class Webhooks


  • public class Webhooks
    extends com.ibm.cloud.sdk.core.service.BaseService
    CIS Alert Webhooks. API Version: 1.0.0
    • Constructor Detail

      • Webhooks

        public Webhooks​(String crn,
                        String serviceName,
                        com.ibm.cloud.sdk.core.security.Authenticator authenticator)
        Constructs an instance of the `Webhooks` client. The specified service name and authenticator are used to configure the client instance.
        Parameters:
        crn - Full url-encoded CRN of the service instance.
        serviceName - the service name to be used when configuring the client instance
        authenticator - the Authenticator instance to be configured for this client
    • Method Detail

      • newInstance

        public static Webhooks newInstance​(String crn)
        Class method which constructs an instance of the `Webhooks` client. The default service name is used to configure the client instance.
        Parameters:
        crn - Full url-encoded CRN of the service instance.
        Returns:
        an instance of the `Webhooks` client using external configuration
      • newInstance

        public static Webhooks newInstance​(String crn,
                                           String serviceName)
        Class method which constructs an instance of the `Webhooks` client. The specified service name is used to configure the client instance.
        Parameters:
        crn - Full url-encoded CRN of the service instance.
        serviceName - the service name to be used when configuring the client instance
        Returns:
        an instance of the `Webhooks` client using external configuration
      • getCrn

        public String getCrn()
        Gets the crn. Full url-encoded CRN of the service instance.
        Returns:
        the crn
      • setCrn

        public void setCrn​(String crn)
        Sets the crn.
        Parameters:
        crn - the new crn
      • listWebhooks

        public com.ibm.cloud.sdk.core.http.ServiceCall<ListAlertWebhooksResp> listWebhooks()
        List alert webhooks. List configured alert webhooks for the CIS instance.
        Returns:
        a ServiceCall with a result of type ListAlertWebhooksResp
      • createAlertWebhook

        public com.ibm.cloud.sdk.core.http.ServiceCall<WebhookSuccessResp> createAlertWebhook()
        Create an alert webhook. Create a new alert webhook for the CIS instance.
        Returns:
        a ServiceCall with a result of type WebhookSuccessResp