Oracle Cloud Infrastructure
getLogSetsCount
This data source provides details about a specific Log Sets Count resource in Oracle Cloud Infrastructure Log Analytics service.
This API returns the count of distinct log sets.
Example Usage
using Pulumi;
using Oci = Pulumi.Oci;
class MyStack : Stack
{
public MyStack()
{
var testLogSetsCount = Output.Create(Oci.LogAnalytics.GetLogSetsCount.InvokeAsync(new Oci.LogAnalytics.GetLogSetsCountArgs
{
Namespace = @var.Log_sets_count_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.GetLogSetsCount(ctx, &loganalytics.GetLogSetsCountArgs{
Namespace: _var.Log_sets_count_namespace,
}, nil)
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_oci as oci
test_log_sets_count = oci.LogAnalytics.get_log_sets_count(namespace=var["log_sets_count_namespace"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testLogSetsCount = oci.LogAnalytics.getLogSetsCount({
namespace: _var.log_sets_count_namespace,
});
Coming soon!
Using getLogSetsCount
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 getLogSetsCount(args: GetLogSetsCountArgs, opts?: InvokeOptions): Promise<GetLogSetsCountResult>
function getLogSetsCountOutput(args: GetLogSetsCountOutputArgs, opts?: InvokeOptions): Output<GetLogSetsCountResult>
def get_log_sets_count(namespace: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLogSetsCountResult
def get_log_sets_count_output(namespace: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLogSetsCountResult]
func GetLogSetsCount(ctx *Context, args *GetLogSetsCountArgs, opts ...InvokeOption) (*GetLogSetsCountResult, error)
func GetLogSetsCountOutput(ctx *Context, args *GetLogSetsCountOutputArgs, opts ...InvokeOption) GetLogSetsCountResultOutput
> Note: This function is named GetLogSetsCount
in the Go SDK.
public static class GetLogSetsCount
{
public static Task<GetLogSetsCountResult> InvokeAsync(GetLogSetsCountArgs args, InvokeOptions? opts = null)
public static Output<GetLogSetsCountResult> Invoke(GetLogSetsCountInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLogSetsCountResult> getLogSetsCount(GetLogSetsCountArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: oci:LogAnalytics/getLogSetsCount:getLogSetsCount
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.
getLogSetsCount Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Log
Sets stringCount This is the total number of log sets the tenancy has configured.
- Namespace string
- Id string
The provider-assigned unique ID for this managed resource.
- Log
Sets stringCount This is the total number of log sets the tenancy has configured.
- Namespace string
- id String
The provider-assigned unique ID for this managed resource.
- log
Sets StringCount This is the total number of log sets the tenancy has configured.
- namespace String
- id string
The provider-assigned unique ID for this managed resource.
- log
Sets stringCount This is the total number of log sets the tenancy has configured.
- namespace string
- id str
The provider-assigned unique ID for this managed resource.
- log_
sets_ strcount This is the total number of log sets the tenancy has configured.
- namespace str
- id String
The provider-assigned unique ID for this managed resource.
- log
Sets StringCount This is the total number of log sets the tenancy has configured.
- namespace String
Package Details
- Repository
- https://github.com/pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.