This data source provides the list of Namespaces in Oracle Cloud Infrastructure Log Analytics service.
Given a tenancy OCID, this API returns the namespace of the tenancy if it is valid and subscribed to the region. The result also indicates if the tenancy is onboarded with Logging Analytics.
data "oci_log_analytics_namespaces" "test_namespaces" {
#Required
compartment_id = var.compartment_id
}
The following arguments are supported:
compartment_id
- (Required) The ID of the compartment in which to list resources.The following attributes are exported:
namespace_collection
- The list of namespace_collection.The following attributes are exported:
compartment_id
- The is the tenancy IDis_onboarded
- This indicates if the tenancy is onboarded to Logging Analyticsnamespace
- This is the namespace name of a tenancy