oci.LogAnalytics.getNamespace
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 Logging Analytics Application
Example Usage
using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testNamespace = Oci.LogAnalytics.GetNamespace.Invoke(new()
{
Namespace = @var.Namespace_namespace,
});
});
package main
import (
"github.com/pulumi/pulumi-oci/sdk/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: _var.Namespace_namespace,
}, nil)
if err != nil {
return err
}
return nil
})
}
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(var_.namespace_namespace())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_namespace = oci.LogAnalytics.get_namespace(namespace=var["namespace_namespace"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testNamespace = oci.LogAnalytics.getNamespace({
namespace: _var.namespace_namespace,
});
variables:
testNamespace:
fn::invoke:
Function: oci:LogAnalytics:getNamespace
Arguments:
namespace: ${var.namespace_namespace}
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 GetNamespace(ctx *Context, args *GetNamespaceArgs, opts ...InvokeOption) (*GetNamespaceResult, error)
func GetNamespaceOutput(ctx *Context, args *GetNamespaceOutputArgs, opts ...InvokeOption) GetNamespaceResultOutput
> Note: This function is named GetNamespace
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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:LogAnalytics/getNamespace:getNamespace
arguments:
# arguments dictionary
The following arguments are supported:
- Namespace string
The Logging Analytics namespace used for the request.
- Namespace string
The Logging Analytics namespace used for the request.
- namespace String
The Logging Analytics namespace used for the request.
- namespace string
The Logging Analytics namespace used for the request.
- namespace str
The Logging Analytics namespace used for the request.
- namespace String
The Logging Analytics namespace used for the request.
getNamespace Result
The following output properties are available:
- Compartment
Id string The is the tenancy ID
- Id string
The provider-assigned unique ID for this managed resource.
- Is
Onboarded bool This indicates if the tenancy is onboarded to Logging Analytics
- Namespace string
This is the namespace name of a tenancy
- Compartment
Id string The is the tenancy ID
- Id string
The provider-assigned unique ID for this managed resource.
- Is
Onboarded bool This indicates if the tenancy is onboarded to Logging Analytics
- Namespace string
This is the namespace name of a tenancy
- compartment
Id String The is the tenancy ID
- id String
The provider-assigned unique ID for this managed resource.
- is
Onboarded Boolean This indicates if the tenancy is onboarded to Logging Analytics
- namespace String
This is the namespace name of a tenancy
- compartment
Id string The is the tenancy ID
- id string
The provider-assigned unique ID for this managed resource.
- is
Onboarded boolean This indicates if the tenancy is onboarded to Logging Analytics
- namespace string
This is the namespace name of a tenancy
- compartment_
id str The is the tenancy ID
- id str
The provider-assigned unique ID for this managed resource.
- is_
onboarded bool This indicates if the tenancy is onboarded to Logging Analytics
- namespace str
This is the namespace name of a tenancy
- compartment
Id String The is the tenancy ID
- id String
The provider-assigned unique ID for this managed resource.
- is
Onboarded Boolean This indicates if the tenancy is onboarded to Logging Analytics
- namespace String
This is the namespace name of a tenancy
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.