Data Source: oci_log_analytics_namespaces
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.
Example Usage
data "oci_log_analytics_namespaces" "test_namespaces" {
#Required
compartment_id = var.compartment_id
}
Argument Reference
The following arguments are supported:
compartment_id
- (Required) The ID of the compartment in which to list resources.
Attributes Reference
The following attributes are exported:
namespace_collection
- The list of namespace_collection.
Namespace Reference
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