Oracle Cloud Infrastructure v2.15.0 published on Thursday, Oct 31, 2024 by Pulumi
oci.LogAnalytics.getNamespaceStorageRecallCount
Explore with Pulumi AI
This data source provides details about a specific Namespace Storage Recall Count resource in Oracle Cloud Infrastructure Log Analytics service.
This API gets the number of recalls made and the maximum recalls that can be made
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testNamespaceStorageRecallCount = oci.LogAnalytics.getNamespaceStorageRecallCount({
namespace: namespaceStorageRecallCountNamespace,
});
import pulumi
import pulumi_oci as oci
test_namespace_storage_recall_count = oci.LogAnalytics.get_namespace_storage_recall_count(namespace=namespace_storage_recall_count_namespace)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/LogAnalytics"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := LogAnalytics.GetNamespaceStorageRecallCount(ctx, &loganalytics.GetNamespaceStorageRecallCountArgs{
Namespace: namespaceStorageRecallCountNamespace,
}, 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 testNamespaceStorageRecallCount = Oci.LogAnalytics.GetNamespaceStorageRecallCount.Invoke(new()
{
Namespace = namespaceStorageRecallCountNamespace,
});
});
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.GetNamespaceStorageRecallCountArgs;
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 testNamespaceStorageRecallCount = LogAnalyticsFunctions.getNamespaceStorageRecallCount(GetNamespaceStorageRecallCountArgs.builder()
.namespace(namespaceStorageRecallCountNamespace)
.build());
}
}
variables:
testNamespaceStorageRecallCount:
fn::invoke:
Function: oci:LogAnalytics:getNamespaceStorageRecallCount
Arguments:
namespace: ${namespaceStorageRecallCountNamespace}
Using getNamespaceStorageRecallCount
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 getNamespaceStorageRecallCount(args: GetNamespaceStorageRecallCountArgs, opts?: InvokeOptions): Promise<GetNamespaceStorageRecallCountResult>
function getNamespaceStorageRecallCountOutput(args: GetNamespaceStorageRecallCountOutputArgs, opts?: InvokeOptions): Output<GetNamespaceStorageRecallCountResult>
def get_namespace_storage_recall_count(namespace: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNamespaceStorageRecallCountResult
def get_namespace_storage_recall_count_output(namespace: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNamespaceStorageRecallCountResult]
func GetNamespaceStorageRecallCount(ctx *Context, args *GetNamespaceStorageRecallCountArgs, opts ...InvokeOption) (*GetNamespaceStorageRecallCountResult, error)
func GetNamespaceStorageRecallCountOutput(ctx *Context, args *GetNamespaceStorageRecallCountOutputArgs, opts ...InvokeOption) GetNamespaceStorageRecallCountResultOutput
> Note: This function is named GetNamespaceStorageRecallCount
in the Go SDK.
public static class GetNamespaceStorageRecallCount
{
public static Task<GetNamespaceStorageRecallCountResult> InvokeAsync(GetNamespaceStorageRecallCountArgs args, InvokeOptions? opts = null)
public static Output<GetNamespaceStorageRecallCountResult> Invoke(GetNamespaceStorageRecallCountInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNamespaceStorageRecallCountResult> getNamespaceStorageRecallCount(GetNamespaceStorageRecallCountArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:LogAnalytics/getNamespaceStorageRecallCount:getNamespaceStorageRecallCount
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.
getNamespaceStorageRecallCount Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Namespace string
- Recall
Count int - This is the total number of recalls made so far
- Recall
Failed int - This is the number of recalls that failed
- Recall
Limit int - This is the maximum number of recalls (including successful and pending recalls) allowed
- Recall
Pending int - This is the number of recalls in pending state
- Recall
Succeeded int - This is the number of recalls that succeeded
- Id string
- The provider-assigned unique ID for this managed resource.
- Namespace string
- Recall
Count int - This is the total number of recalls made so far
- Recall
Failed int - This is the number of recalls that failed
- Recall
Limit int - This is the maximum number of recalls (including successful and pending recalls) allowed
- Recall
Pending int - This is the number of recalls in pending state
- Recall
Succeeded int - This is the number of recalls that succeeded
- id String
- The provider-assigned unique ID for this managed resource.
- namespace String
- recall
Count Integer - This is the total number of recalls made so far
- recall
Failed Integer - This is the number of recalls that failed
- recall
Limit Integer - This is the maximum number of recalls (including successful and pending recalls) allowed
- recall
Pending Integer - This is the number of recalls in pending state
- recall
Succeeded Integer - This is the number of recalls that succeeded
- id string
- The provider-assigned unique ID for this managed resource.
- namespace string
- recall
Count number - This is the total number of recalls made so far
- recall
Failed number - This is the number of recalls that failed
- recall
Limit number - This is the maximum number of recalls (including successful and pending recalls) allowed
- recall
Pending number - This is the number of recalls in pending state
- recall
Succeeded number - This is the number of recalls that succeeded
- id str
- The provider-assigned unique ID for this managed resource.
- namespace str
- recall_
count int - This is the total number of recalls made so far
- recall_
failed int - This is the number of recalls that failed
- recall_
limit int - This is the maximum number of recalls (including successful and pending recalls) allowed
- recall_
pending int - This is the number of recalls in pending state
- recall_
succeeded int - This is the number of recalls that succeeded
- id String
- The provider-assigned unique ID for this managed resource.
- namespace String
- recall
Count Number - This is the total number of recalls made so far
- recall
Failed Number - This is the number of recalls that failed
- recall
Limit Number - This is the maximum number of recalls (including successful and pending recalls) allowed
- recall
Pending Number - This is the number of recalls in pending state
- recall
Succeeded Number - This is the number of recalls that succeeded
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.