This topic describes how to use the Elastic Container Instance terminal and integrate it into your own system.
Use the Elastic Container Instance terminal
If you want to perform operations in a container when you use an elastic container instance, you can call the ExecContainerCommand operation to obtain the WebSocketUri value. The value indicates the WebSocket URL. The WebSocket URL cannot be directly accessed by using a browser. You can use the HTTP URL returned by the ExecContainerCommand operation.
The HTTP URL is effective for 30 seconds. To use the HTTP URL to access a container, you must access this URL in your browser within 30 seconds after the ExecContainerCommand operation is called.
This operation of accessing a container is audited. Audit information includes:
The time, ID, client IP address, and parameters of the API request that was sent to obtain the HTTP URL
The client IP address that corresponds to the HTTP URL
Audit information can be retained for up to 30 days. You can view audit records on the Terminal Operational Log page in the Elastic Container Service console.
Integrate the Elastic Container Instance terminal into your own system
After you obtain the HTTP URL by calling the ExecContainerCommand operation, you can use one of the following methods to integrate the Elastic Container Instance terminal into your own system:
Access the HTTP URL in a separate window.
Use a frontend application to access the HTTP URL in a new window.
Embed the HTTP URL into the current page.
Embed the HTTP URL into a page of your own system by using an iframe.