Preparation
Enabling CTS
Creating an Agency
- Log in to the IAM console, and choose Agencies in the navigation pane.
- On the Agencies page, click Create Agency.
- Set the agency information.
- For Agency Name, enter serverless_trust.
- For Agency Type, select Cloud service.
- For Cloud Service, select FunctionGraph.
- For Validity Period, select Unlimited.
- For Description, enter a description.
- Click Next. On the Select Policy/Role page, select Tenant Administrator and click Next.
Users with the Tenant Administrator permission can perform any operations on all cloud resources of the enterprise.
- Click OK.
Pushing Alarm Messages
- Create a topic named cts_test on the SMN console. For details, see Creating a Topic.
- Add subscriptions to the cts_test topic to push alarm messages. For details, see Adding a Subscription.
Alarm messages of a subscribed topic can be pushed through emails, SMS messages, and HTTP/HTTPS.
In this example, when operation log events trigger the specified function, the function filters operations that are performed by users not in the IP address whitelist, and pushes alarm messages to the subscription endpoints.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.