Viewing docs for Oracle Cloud Infrastructure v4.3.0
published on Thursday, Mar 19, 2026 by Pulumi
published on Thursday, Mar 19, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v4.3.0
published on Thursday, Mar 19, 2026 by Pulumi
published on Thursday, Mar 19, 2026 by Pulumi
This data source provides details about a specific Namespace resource in Oracle Cloud Infrastructure Log Analytics service.
This API gets the namespace details of a tenancy already onboarded in Log Analytics Application
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testNamespace = oci.LogAnalytics.getNamespace({
namespace: namespaceNamespace,
});
import pulumi
import pulumi_oci as oci
test_namespace = oci.LogAnalytics.get_namespace(namespace=namespace_namespace)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/loganalytics"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := loganalytics.GetNamespace(ctx, &loganalytics.GetNamespaceArgs{
Namespace: namespaceNamespace,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testNamespace = Oci.LogAnalytics.GetNamespace.Invoke(new()
{
Namespace = namespaceNamespace,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.LogAnalytics.LogAnalyticsFunctions;
import com.pulumi.oci.LogAnalytics.inputs.GetNamespaceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var testNamespace = LogAnalyticsFunctions.getNamespace(GetNamespaceArgs.builder()
.namespace(namespaceNamespace)
.build());
}
}
variables:
testNamespace:
fn::invoke:
function: oci:LogAnalytics:getNamespace
arguments:
namespace: ${namespaceNamespace}
Using getNamespace
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getNamespace(args: GetNamespaceArgs, opts?: InvokeOptions): Promise<GetNamespaceResult>
function getNamespaceOutput(args: GetNamespaceOutputArgs, opts?: InvokeOptions): Output<GetNamespaceResult>def get_namespace(namespace: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNamespaceResult
def get_namespace_output(namespace: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNamespaceResult]func LookupNamespace(ctx *Context, args *LookupNamespaceArgs, opts ...InvokeOption) (*LookupNamespaceResult, error)
func LookupNamespaceOutput(ctx *Context, args *LookupNamespaceOutputArgs, opts ...InvokeOption) LookupNamespaceResultOutput> Note: This function is named LookupNamespace in the Go SDK.
public static class GetNamespace
{
public static Task<GetNamespaceResult> InvokeAsync(GetNamespaceArgs args, InvokeOptions? opts = null)
public static Output<GetNamespaceResult> Invoke(GetNamespaceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNamespaceResult> getNamespace(GetNamespaceArgs args, InvokeOptions options)
public static Output<GetNamespaceResult> getNamespace(GetNamespaceArgs args, InvokeOptions options)
fn::invoke:
function: oci:LogAnalytics/getNamespace:getNamespace
arguments:
# arguments dictionaryThe following arguments are supported:
- Namespace string
- The Log Analytics namespace used for the request. The namespace can be obtained by running 'oci os ns get'
- Namespace string
- The Log Analytics namespace used for the request. The namespace can be obtained by running 'oci os ns get'
- namespace String
- The Log Analytics namespace used for the request. The namespace can be obtained by running 'oci os ns get'
- namespace string
- The Log Analytics namespace used for the request. The namespace can be obtained by running 'oci os ns get'
- namespace str
- The Log Analytics namespace used for the request. The namespace can be obtained by running 'oci os ns get'
- namespace String
- The Log Analytics namespace used for the request. The namespace can be obtained by running 'oci os ns get'
getNamespace Result
The following output properties are available:
- Compartment
Id string - This is the tenancy ID
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Archiving boolEnabled - This indicates if old data can be archived for a tenancy
- Is
Data boolEver Ingested - This indicates if the tenancy is data ever ingested
- Is
Logset boolEnabled - Is
Onboarded bool - This indicates if the tenancy is onboarded to Log Analytics
- Namespace string
- This is the namespace name of a tenancy
- State string
- The current state of the compartment.
is_logSet_enabled- This indicates if the tenancy is logSet enable
- Compartment
Id string - This is the tenancy ID
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Archiving boolEnabled - This indicates if old data can be archived for a tenancy
- Is
Data boolEver Ingested - This indicates if the tenancy is data ever ingested
- Is
Logset boolEnabled - Is
Onboarded bool - This indicates if the tenancy is onboarded to Log Analytics
- Namespace string
- This is the namespace name of a tenancy
- State string
- The current state of the compartment.
is_logSet_enabled- This indicates if the tenancy is logSet enable
- compartment
Id String - This is the tenancy ID
- id String
- The provider-assigned unique ID for this managed resource.
- is
Archiving BooleanEnabled - This indicates if old data can be archived for a tenancy
- is
Data BooleanEver Ingested - This indicates if the tenancy is data ever ingested
- is
Logset BooleanEnabled - is
Onboarded Boolean - This indicates if the tenancy is onboarded to Log Analytics
- namespace String
- This is the namespace name of a tenancy
- state String
- The current state of the compartment.
is_logSet_enabled- This indicates if the tenancy is logSet enable
- compartment
Id string - This is the tenancy ID
- id string
- The provider-assigned unique ID for this managed resource.
- is
Archiving booleanEnabled - This indicates if old data can be archived for a tenancy
- is
Data booleanEver Ingested - This indicates if the tenancy is data ever ingested
- is
Logset booleanEnabled - is
Onboarded boolean - This indicates if the tenancy is onboarded to Log Analytics
- namespace string
- This is the namespace name of a tenancy
- state string
- The current state of the compartment.
is_logSet_enabled- This indicates if the tenancy is logSet enable
- compartment_
id str - This is the tenancy ID
- id str
- The provider-assigned unique ID for this managed resource.
- is_
archiving_ boolenabled - This indicates if old data can be archived for a tenancy
- is_
data_ boolever_ ingested - This indicates if the tenancy is data ever ingested
- is_
logset_ boolenabled - is_
onboarded bool - This indicates if the tenancy is onboarded to Log Analytics
- namespace str
- This is the namespace name of a tenancy
- state str
- The current state of the compartment.
is_logSet_enabled- This indicates if the tenancy is logSet enable
- compartment
Id String - This is the tenancy ID
- id String
- The provider-assigned unique ID for this managed resource.
- is
Archiving BooleanEnabled - This indicates if old data can be archived for a tenancy
- is
Data BooleanEver Ingested - This indicates if the tenancy is data ever ingested
- is
Logset BooleanEnabled - is
Onboarded Boolean - This indicates if the tenancy is onboarded to Log Analytics
- namespace String
- This is the namespace name of a tenancy
- state String
- The current state of the compartment.
is_logSet_enabled- This indicates if the tenancy is logSet enable
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Viewing docs for Oracle Cloud Infrastructure v4.3.0
published on Thursday, Mar 19, 2026 by Pulumi
published on Thursday, Mar 19, 2026 by Pulumi
