Display the context-bindable Pulsar clusters available in the current StreamNative Cloud session. This information helps you select the appropriate cluster before binding the session to cluster-specific tools.
- sncloud_context_available_clusters
- No parameters required
You can use sncloud_context_use_cluster to bind the current session to a specific Pulsar cluster. You will need to ask for user confirmation of the target cluster if there are multiple clusters available.
Bind the current session to a specific StreamNative Cloud cluster. Once the session is bound, you can use Pulsar and Kafka tools that require cluster context.
- sncloud_context_use_cluster
instanceName(string, required): The name of the Pulsar instance to useclusterName(string, required): The name of the Pulsar cluster to use
If you encounter ContextNotSetErr, use sncloud_context_available_clusters to list the available clusters and bind the session to a specific cluster.
Display the currently logged-in service account. Returns the name of the authenticated service account and the organization.
- sncloud_context_whoami
- No parameters required
This tool returns a JSON object containing the service account name and organization.
Display logs of resources in StreamNative Cloud, including Pulsar functions, source connectors, sink connectors, and Kafka Connect connectors. This tool helps debug issues with resources in the cluster currently bound to the session.
- sncloud_logs
component(string, required): The component type to get logs from- Options: sink, source, function, kafka-connect
name(string, required): The name of the resource to get logs fromtenant(string, required): The Pulsar tenant of the resource (default: "public")- Required for Pulsar functions, sources, and sinks
- Optional for Kafka Connect connectors
namespace(string, required): The Pulsar namespace of the resource (default: "default")- Required for Pulsar functions, sources, and sinks
- Optional for Kafka Connect connectors
size(string, optional): Number of log lines to retrieve (default: "20")replica_id(number, optional): The replica index for resources with multiple replicas (default: -1, which means all replicas)timestamp(string, optional): Start timestamp of logs in milliseconds (e.g., "1662430984225")since(string, optional): Retrieve logs from a relative time in the past (e.g., "1h" for one hour ago)previous_container(boolean, optional): Return logs from previously terminated container (default: false)
Apply (create or update) StreamNative Cloud resources from JSON definitions. This tool manages infrastructure resources such as Instances, PulsarInstances, PulsarClusters, and KafkaClusters in the organization currently bound to the session.
- sncloud_resources_apply
json_content(string, required): The JSON content to apply, defining the resource according to the StreamNative Cloud API schemadry_run(boolean, optional): If true, only validate the resource without applying it to the server (default: false)
Supported resource types:
- Instance (apiVersion: cloud.streamnative.io/v1alpha1)
- PulsarInstance (apiVersion: cloud.streamnative.io/v1alpha1)
- PulsarCluster (apiVersion: cloud.streamnative.io/v1alpha1)
- KafkaCluster (apiVersion: cloud.streamnative.io/v1alpha1)
Delete StreamNative Cloud resources. This tool removes resources from the organization currently bound to the session.
- sncloud_resources_delete
name(string, required): The name of the resource to deletetype(string, required): The type of the resource to delete- Options: Instance, PulsarInstance, PulsarCluster, KafkaCluster
This is a destructive operation that cannot be undone. Use with caution.