1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. LogAnalytics
  5. getNamespacePropertiesMetadata
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.LogAnalytics.getNamespacePropertiesMetadata

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    This data source provides the list of Namespace Properties Metadata in Oracle Cloud Infrastructure Log Analytics service.

    Returns a list of properties along with their metadata.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testNamespacePropertiesMetadata = oci.LogAnalytics.getNamespacePropertiesMetadata({
        namespace: namespacePropertiesMetadataNamespace,
        constraints: namespacePropertiesMetadataConstraints,
        displayText: namespacePropertiesMetadataDisplayText,
        level: namespacePropertiesMetadataLevel,
        name: namespacePropertiesMetadataName,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_namespace_properties_metadata = oci.LogAnalytics.get_namespace_properties_metadata(namespace=namespace_properties_metadata_namespace,
        constraints=namespace_properties_metadata_constraints,
        display_text=namespace_properties_metadata_display_text,
        level=namespace_properties_metadata_level,
        name=namespace_properties_metadata_name)
    
    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.GetNamespacePropertiesMetadata(ctx, &loganalytics.GetNamespacePropertiesMetadataArgs{
    			Namespace:   namespacePropertiesMetadataNamespace,
    			Constraints: pulumi.StringRef(namespacePropertiesMetadataConstraints),
    			DisplayText: pulumi.StringRef(namespacePropertiesMetadataDisplayText),
    			Level:       pulumi.StringRef(namespacePropertiesMetadataLevel),
    			Name:        pulumi.StringRef(namespacePropertiesMetadataName),
    		}, 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 testNamespacePropertiesMetadata = Oci.LogAnalytics.GetNamespacePropertiesMetadata.Invoke(new()
        {
            Namespace = namespacePropertiesMetadataNamespace,
            Constraints = namespacePropertiesMetadataConstraints,
            DisplayText = namespacePropertiesMetadataDisplayText,
            Level = namespacePropertiesMetadataLevel,
            Name = namespacePropertiesMetadataName,
        });
    
    });
    
    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.GetNamespacePropertiesMetadataArgs;
    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 testNamespacePropertiesMetadata = LogAnalyticsFunctions.getNamespacePropertiesMetadata(GetNamespacePropertiesMetadataArgs.builder()
                .namespace(namespacePropertiesMetadataNamespace)
                .constraints(namespacePropertiesMetadataConstraints)
                .displayText(namespacePropertiesMetadataDisplayText)
                .level(namespacePropertiesMetadataLevel)
                .name(namespacePropertiesMetadataName)
                .build());
    
        }
    }
    
    variables:
      testNamespacePropertiesMetadata:
        fn::invoke:
          Function: oci:LogAnalytics:getNamespacePropertiesMetadata
          Arguments:
            namespace: ${namespacePropertiesMetadataNamespace}
            constraints: ${namespacePropertiesMetadataConstraints}
            displayText: ${namespacePropertiesMetadataDisplayText}
            level: ${namespacePropertiesMetadataLevel}
            name: ${namespacePropertiesMetadataName}
    

    Using getNamespacePropertiesMetadata

    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 getNamespacePropertiesMetadata(args: GetNamespacePropertiesMetadataArgs, opts?: InvokeOptions): Promise<GetNamespacePropertiesMetadataResult>
    function getNamespacePropertiesMetadataOutput(args: GetNamespacePropertiesMetadataOutputArgs, opts?: InvokeOptions): Output<GetNamespacePropertiesMetadataResult>
    def get_namespace_properties_metadata(constraints: Optional[str] = None,
                                          display_text: Optional[str] = None,
                                          filters: Optional[Sequence[_loganalytics.GetNamespacePropertiesMetadataFilter]] = None,
                                          level: Optional[str] = None,
                                          name: Optional[str] = None,
                                          namespace: Optional[str] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetNamespacePropertiesMetadataResult
    def get_namespace_properties_metadata_output(constraints: Optional[pulumi.Input[str]] = None,
                                          display_text: Optional[pulumi.Input[str]] = None,
                                          filters: Optional[pulumi.Input[Sequence[pulumi.Input[_loganalytics.GetNamespacePropertiesMetadataFilterArgs]]]] = None,
                                          level: Optional[pulumi.Input[str]] = None,
                                          name: Optional[pulumi.Input[str]] = None,
                                          namespace: Optional[pulumi.Input[str]] = None,
                                          opts: Optional[InvokeOptions] = None) -> Output[GetNamespacePropertiesMetadataResult]
    func GetNamespacePropertiesMetadata(ctx *Context, args *GetNamespacePropertiesMetadataArgs, opts ...InvokeOption) (*GetNamespacePropertiesMetadataResult, error)
    func GetNamespacePropertiesMetadataOutput(ctx *Context, args *GetNamespacePropertiesMetadataOutputArgs, opts ...InvokeOption) GetNamespacePropertiesMetadataResultOutput

    > Note: This function is named GetNamespacePropertiesMetadata in the Go SDK.

    public static class GetNamespacePropertiesMetadata 
    {
        public static Task<GetNamespacePropertiesMetadataResult> InvokeAsync(GetNamespacePropertiesMetadataArgs args, InvokeOptions? opts = null)
        public static Output<GetNamespacePropertiesMetadataResult> Invoke(GetNamespacePropertiesMetadataInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNamespacePropertiesMetadataResult> getNamespacePropertiesMetadata(GetNamespacePropertiesMetadataArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:LogAnalytics/getNamespacePropertiesMetadata:getNamespacePropertiesMetadata
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Namespace string
    The Logging Analytics namespace used for the request.
    Constraints string
    The constraints that apply to the properties at a certain level.
    DisplayText string
    The property display text used for filtering. Only properties matching the specified display name or description will be returned.
    Filters List<GetNamespacePropertiesMetadataFilter>
    Level string
    The level for which applicable properties are to be listed.
    Name string
    The property name used for filtering.
    Namespace string
    The Logging Analytics namespace used for the request.
    Constraints string
    The constraints that apply to the properties at a certain level.
    DisplayText string
    The property display text used for filtering. Only properties matching the specified display name or description will be returned.
    Filters []GetNamespacePropertiesMetadataFilter
    Level string
    The level for which applicable properties are to be listed.
    Name string
    The property name used for filtering.
    namespace String
    The Logging Analytics namespace used for the request.
    constraints String
    The constraints that apply to the properties at a certain level.
    displayText String
    The property display text used for filtering. Only properties matching the specified display name or description will be returned.
    filters List<GetNamespacePropertiesMetadataFilter>
    level String
    The level for which applicable properties are to be listed.
    name String
    The property name used for filtering.
    namespace string
    The Logging Analytics namespace used for the request.
    constraints string
    The constraints that apply to the properties at a certain level.
    displayText string
    The property display text used for filtering. Only properties matching the specified display name or description will be returned.
    filters GetNamespacePropertiesMetadataFilter[]
    level string
    The level for which applicable properties are to be listed.
    name string
    The property name used for filtering.
    namespace str
    The Logging Analytics namespace used for the request.
    constraints str
    The constraints that apply to the properties at a certain level.
    display_text str
    The property display text used for filtering. Only properties matching the specified display name or description will be returned.
    filters Sequence[loganalytics.GetNamespacePropertiesMetadataFilter]
    level str
    The level for which applicable properties are to be listed.
    name str
    The property name used for filtering.
    namespace String
    The Logging Analytics namespace used for the request.
    constraints String
    The constraints that apply to the properties at a certain level.
    displayText String
    The property display text used for filtering. Only properties matching the specified display name or description will be returned.
    filters List<Property Map>
    level String
    The level for which applicable properties are to be listed.
    name String
    The property name used for filtering.

    getNamespacePropertiesMetadata Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Namespace string
    PropertyMetadataSummaryCollections List<GetNamespacePropertiesMetadataPropertyMetadataSummaryCollection>
    The list of property_metadata_summary_collection.
    Constraints string
    A string representation of constraints that apply at this level. For example, a property defined at SOURCE level could further be applicable only for SOURCE_TYPE:database_sql.
    DisplayText string
    Filters List<GetNamespacePropertiesMetadataFilter>
    Level string
    Name string
    The property name.
    Id string
    The provider-assigned unique ID for this managed resource.
    Namespace string
    PropertyMetadataSummaryCollections []GetNamespacePropertiesMetadataPropertyMetadataSummaryCollection
    The list of property_metadata_summary_collection.
    Constraints string
    A string representation of constraints that apply at this level. For example, a property defined at SOURCE level could further be applicable only for SOURCE_TYPE:database_sql.
    DisplayText string
    Filters []GetNamespacePropertiesMetadataFilter
    Level string
    Name string
    The property name.
    id String
    The provider-assigned unique ID for this managed resource.
    namespace String
    propertyMetadataSummaryCollections List<GetNamespacePropertiesMetadataPropertyMetadataSummaryCollection>
    The list of property_metadata_summary_collection.
    constraints String
    A string representation of constraints that apply at this level. For example, a property defined at SOURCE level could further be applicable only for SOURCE_TYPE:database_sql.
    displayText String
    filters List<GetNamespacePropertiesMetadataFilter>
    level String
    name String
    The property name.
    id string
    The provider-assigned unique ID for this managed resource.
    namespace string
    propertyMetadataSummaryCollections GetNamespacePropertiesMetadataPropertyMetadataSummaryCollection[]
    The list of property_metadata_summary_collection.
    constraints string
    A string representation of constraints that apply at this level. For example, a property defined at SOURCE level could further be applicable only for SOURCE_TYPE:database_sql.
    displayText string
    filters GetNamespacePropertiesMetadataFilter[]
    level string
    name string
    The property name.
    id str
    The provider-assigned unique ID for this managed resource.
    namespace str
    property_metadata_summary_collections Sequence[loganalytics.GetNamespacePropertiesMetadataPropertyMetadataSummaryCollection]
    The list of property_metadata_summary_collection.
    constraints str
    A string representation of constraints that apply at this level. For example, a property defined at SOURCE level could further be applicable only for SOURCE_TYPE:database_sql.
    display_text str
    filters Sequence[loganalytics.GetNamespacePropertiesMetadataFilter]
    level str
    name str
    The property name.
    id String
    The provider-assigned unique ID for this managed resource.
    namespace String
    propertyMetadataSummaryCollections List<Property Map>
    The list of property_metadata_summary_collection.
    constraints String
    A string representation of constraints that apply at this level. For example, a property defined at SOURCE level could further be applicable only for SOURCE_TYPE:database_sql.
    displayText String
    filters List<Property Map>
    level String
    name String
    The property name.

    Supporting Types

    GetNamespacePropertiesMetadataFilter

    Name string
    The property name used for filtering.
    Values List<string>
    Regex bool
    Name string
    The property name used for filtering.
    Values []string
    Regex bool
    name String
    The property name used for filtering.
    values List<String>
    regex Boolean
    name string
    The property name used for filtering.
    values string[]
    regex boolean
    name str
    The property name used for filtering.
    values Sequence[str]
    regex bool
    name String
    The property name used for filtering.
    values List<String>
    regex Boolean

    GetNamespacePropertiesMetadataPropertyMetadataSummaryCollection

    Items List<GetNamespacePropertiesMetadataPropertyMetadataSummaryCollectionItem>
    An array of properties along with their metadata summary.
    Items []GetNamespacePropertiesMetadataPropertyMetadataSummaryCollectionItem
    An array of properties along with their metadata summary.
    items List<GetNamespacePropertiesMetadataPropertyMetadataSummaryCollectionItem>
    An array of properties along with their metadata summary.
    items GetNamespacePropertiesMetadataPropertyMetadataSummaryCollectionItem[]
    An array of properties along with their metadata summary.
    items List<Property Map>
    An array of properties along with their metadata summary.

    GetNamespacePropertiesMetadataPropertyMetadataSummaryCollectionItem

    DefaultValue string
    The default property value.
    Description string
    The property description.
    DisplayName string
    The property display name.
    Levels List<GetNamespacePropertiesMetadataPropertyMetadataSummaryCollectionItemLevel>
    A list of levels at which the property could be defined.
    Name string
    The property name used for filtering.
    DefaultValue string
    The default property value.
    Description string
    The property description.
    DisplayName string
    The property display name.
    Levels []GetNamespacePropertiesMetadataPropertyMetadataSummaryCollectionItemLevel
    A list of levels at which the property could be defined.
    Name string
    The property name used for filtering.
    defaultValue String
    The default property value.
    description String
    The property description.
    displayName String
    The property display name.
    levels List<GetNamespacePropertiesMetadataPropertyMetadataSummaryCollectionItemLevel>
    A list of levels at which the property could be defined.
    name String
    The property name used for filtering.
    defaultValue string
    The default property value.
    description string
    The property description.
    displayName string
    The property display name.
    levels GetNamespacePropertiesMetadataPropertyMetadataSummaryCollectionItemLevel[]
    A list of levels at which the property could be defined.
    name string
    The property name used for filtering.
    default_value str
    The default property value.
    description str
    The property description.
    display_name str
    The property display name.
    levels Sequence[loganalytics.GetNamespacePropertiesMetadataPropertyMetadataSummaryCollectionItemLevel]
    A list of levels at which the property could be defined.
    name str
    The property name used for filtering.
    defaultValue String
    The default property value.
    description String
    The property description.
    displayName String
    The property display name.
    levels List<Property Map>
    A list of levels at which the property could be defined.
    name String
    The property name used for filtering.

    GetNamespacePropertiesMetadataPropertyMetadataSummaryCollectionItemLevel

    Constraints string
    The constraints that apply to the properties at a certain level.
    Name string
    The property name used for filtering.
    Constraints string
    The constraints that apply to the properties at a certain level.
    Name string
    The property name used for filtering.
    constraints String
    The constraints that apply to the properties at a certain level.
    name String
    The property name used for filtering.
    constraints string
    The constraints that apply to the properties at a certain level.
    name string
    The property name used for filtering.
    constraints str
    The constraints that apply to the properties at a certain level.
    name str
    The property name used for filtering.
    constraints String
    The constraints that apply to the properties at a certain level.
    name String
    The property name used for filtering.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi