1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ManagementAgent
  5. getManagementAgentNamedCredentialsMetadata
Oracle Cloud Infrastructure v3.9.0 published on Wednesday, Sep 24, 2025 by Pulumi

oci.ManagementAgent.getManagementAgentNamedCredentialsMetadata

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v3.9.0 published on Wednesday, Sep 24, 2025 by Pulumi

    This data source provides details about a specific Management Agent Named Credentials Metadata resource in Oracle Cloud Infrastructure Management Agent service.

    Return the Metadata definition for Named Credentials supported by Management Agent.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testManagementAgentNamedCredentialsMetadata = oci.ManagementAgent.getManagementAgentNamedCredentialsMetadata({
        compartmentId: compartmentId,
        managementAgentId: testManagementAgent.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_management_agent_named_credentials_metadata = oci.ManagementAgent.get_management_agent_named_credentials_metadata(compartment_id=compartment_id,
        management_agent_id=test_management_agent["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/managementagent"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := managementagent.GetManagementAgentNamedCredentialsMetadata(ctx, &managementagent.GetManagementAgentNamedCredentialsMetadataArgs{
    			CompartmentId:     compartmentId,
    			ManagementAgentId: pulumi.StringRef(testManagementAgent.Id),
    		}, 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 testManagementAgentNamedCredentialsMetadata = Oci.ManagementAgent.GetManagementAgentNamedCredentialsMetadata.Invoke(new()
        {
            CompartmentId = compartmentId,
            ManagementAgentId = testManagementAgent.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.ManagementAgent.ManagementAgentFunctions;
    import com.pulumi.oci.ManagementAgent.inputs.GetManagementAgentNamedCredentialsMetadataArgs;
    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 testManagementAgentNamedCredentialsMetadata = ManagementAgentFunctions.getManagementAgentNamedCredentialsMetadata(GetManagementAgentNamedCredentialsMetadataArgs.builder()
                .compartmentId(compartmentId)
                .managementAgentId(testManagementAgent.id())
                .build());
    
        }
    }
    
    variables:
      testManagementAgentNamedCredentialsMetadata:
        fn::invoke:
          function: oci:ManagementAgent:getManagementAgentNamedCredentialsMetadata
          arguments:
            compartmentId: ${compartmentId}
            managementAgentId: ${testManagementAgent.id}
    

    Using getManagementAgentNamedCredentialsMetadata

    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 getManagementAgentNamedCredentialsMetadata(args: GetManagementAgentNamedCredentialsMetadataArgs, opts?: InvokeOptions): Promise<GetManagementAgentNamedCredentialsMetadataResult>
    function getManagementAgentNamedCredentialsMetadataOutput(args: GetManagementAgentNamedCredentialsMetadataOutputArgs, opts?: InvokeOptions): Output<GetManagementAgentNamedCredentialsMetadataResult>
    def get_management_agent_named_credentials_metadata(compartment_id: Optional[str] = None,
                                                        management_agent_id: Optional[str] = None,
                                                        opts: Optional[InvokeOptions] = None) -> GetManagementAgentNamedCredentialsMetadataResult
    def get_management_agent_named_credentials_metadata_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                                        management_agent_id: Optional[pulumi.Input[str]] = None,
                                                        opts: Optional[InvokeOptions] = None) -> Output[GetManagementAgentNamedCredentialsMetadataResult]
    func GetManagementAgentNamedCredentialsMetadata(ctx *Context, args *GetManagementAgentNamedCredentialsMetadataArgs, opts ...InvokeOption) (*GetManagementAgentNamedCredentialsMetadataResult, error)
    func GetManagementAgentNamedCredentialsMetadataOutput(ctx *Context, args *GetManagementAgentNamedCredentialsMetadataOutputArgs, opts ...InvokeOption) GetManagementAgentNamedCredentialsMetadataResultOutput

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

    public static class GetManagementAgentNamedCredentialsMetadata 
    {
        public static Task<GetManagementAgentNamedCredentialsMetadataResult> InvokeAsync(GetManagementAgentNamedCredentialsMetadataArgs args, InvokeOptions? opts = null)
        public static Output<GetManagementAgentNamedCredentialsMetadataResult> Invoke(GetManagementAgentNamedCredentialsMetadataInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagementAgentNamedCredentialsMetadataResult> getManagementAgentNamedCredentialsMetadata(GetManagementAgentNamedCredentialsMetadataArgs args, InvokeOptions options)
    public static Output<GetManagementAgentNamedCredentialsMetadataResult> getManagementAgentNamedCredentialsMetadata(GetManagementAgentNamedCredentialsMetadataArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:ManagementAgent/getManagementAgentNamedCredentialsMetadata:getManagementAgentNamedCredentialsMetadata
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The OCID of the compartment to which a request will be scoped.
    ManagementAgentId string
    Filter the named credential metadata which is compatible with the given Management Agent identifier.
    CompartmentId string
    The OCID of the compartment to which a request will be scoped.
    ManagementAgentId string
    Filter the named credential metadata which is compatible with the given Management Agent identifier.
    compartmentId String
    The OCID of the compartment to which a request will be scoped.
    managementAgentId String
    Filter the named credential metadata which is compatible with the given Management Agent identifier.
    compartmentId string
    The OCID of the compartment to which a request will be scoped.
    managementAgentId string
    Filter the named credential metadata which is compatible with the given Management Agent identifier.
    compartment_id str
    The OCID of the compartment to which a request will be scoped.
    management_agent_id str
    Filter the named credential metadata which is compatible with the given Management Agent identifier.
    compartmentId String
    The OCID of the compartment to which a request will be scoped.
    managementAgentId String
    Filter the named credential metadata which is compatible with the given Management Agent identifier.

    getManagementAgentNamedCredentialsMetadata Result

    The following output properties are available:

    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Metadatas List<GetManagementAgentNamedCredentialsMetadataMetadata>
    List of supported metadata definitions.
    ManagementAgentId string
    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Metadatas []GetManagementAgentNamedCredentialsMetadataMetadata
    List of supported metadata definitions.
    ManagementAgentId string
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    metadatas List<GetNamedCredentialsMetadataMetadata>
    List of supported metadata definitions.
    managementAgentId String
    compartmentId string
    id string
    The provider-assigned unique ID for this managed resource.
    metadatas GetManagementAgentNamedCredentialsMetadataMetadata[]
    List of supported metadata definitions.
    managementAgentId string
    compartment_id str
    id str
    The provider-assigned unique ID for this managed resource.
    metadatas Sequence[GetManagementAgentNamedCredentialsMetadataMetadata]
    List of supported metadata definitions.
    management_agent_id str
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    metadatas List<Property Map>
    List of supported metadata definitions.
    managementAgentId String

    Supporting Types

    GetManagementAgentNamedCredentialsMetadataMetadata

    DisplayName string
    The field display name
    MinimumAgentVersion string
    This Named Credential type is supported on management agents at this version or above.
    Properties List<GetManagementAgentNamedCredentialsMetadataMetadataProperty>
    The property definitions for this named credential metadata
    Type string
    The type of the Named Credential.
    DisplayName string
    The field display name
    MinimumAgentVersion string
    This Named Credential type is supported on management agents at this version or above.
    Properties []GetManagementAgentNamedCredentialsMetadataMetadataProperty
    The property definitions for this named credential metadata
    Type string
    The type of the Named Credential.
    displayName String
    The field display name
    minimumAgentVersion String
    This Named Credential type is supported on management agents at this version or above.
    properties List<GetNamedCredentialsMetadataMetadataProperty>
    The property definitions for this named credential metadata
    type String
    The type of the Named Credential.
    displayName string
    The field display name
    minimumAgentVersion string
    This Named Credential type is supported on management agents at this version or above.
    properties GetManagementAgentNamedCredentialsMetadataMetadataProperty[]
    The property definitions for this named credential metadata
    type string
    The type of the Named Credential.
    display_name str
    The field display name
    minimum_agent_version str
    This Named Credential type is supported on management agents at this version or above.
    properties Sequence[GetManagementAgentNamedCredentialsMetadataMetadataProperty]
    The property definitions for this named credential metadata
    type str
    The type of the Named Credential.
    displayName String
    The field display name
    minimumAgentVersion String
    This Named Credential type is supported on management agents at this version or above.
    properties List<Property Map>
    The property definitions for this named credential metadata
    type String
    The type of the Named Credential.

    GetManagementAgentNamedCredentialsMetadataMetadataProperty

    AllowedValues List<string>
    List of values which can be applied to the value when valueCategory is ALLOWED_VALUES
    DefaultValue string
    The default value which will be used if no value is set. If defaultValue is empty, then no default will be set.
    DisplayName string
    The field display name
    IsRequired bool
    Set to true if the field must be defined
    Name string
    The field name
    Regex string
    Optional regular expression definition which will be applied to the value when valueCategory is CLEAR_TEXT
    ValueCategories List<string>
    List of value categories of field allowed for this property
    AllowedValues []string
    List of values which can be applied to the value when valueCategory is ALLOWED_VALUES
    DefaultValue string
    The default value which will be used if no value is set. If defaultValue is empty, then no default will be set.
    DisplayName string
    The field display name
    IsRequired bool
    Set to true if the field must be defined
    Name string
    The field name
    Regex string
    Optional regular expression definition which will be applied to the value when valueCategory is CLEAR_TEXT
    ValueCategories []string
    List of value categories of field allowed for this property
    allowedValues List<String>
    List of values which can be applied to the value when valueCategory is ALLOWED_VALUES
    defaultValue String
    The default value which will be used if no value is set. If defaultValue is empty, then no default will be set.
    displayName String
    The field display name
    isRequired Boolean
    Set to true if the field must be defined
    name String
    The field name
    regex String
    Optional regular expression definition which will be applied to the value when valueCategory is CLEAR_TEXT
    valueCategories List<String>
    List of value categories of field allowed for this property
    allowedValues string[]
    List of values which can be applied to the value when valueCategory is ALLOWED_VALUES
    defaultValue string
    The default value which will be used if no value is set. If defaultValue is empty, then no default will be set.
    displayName string
    The field display name
    isRequired boolean
    Set to true if the field must be defined
    name string
    The field name
    regex string
    Optional regular expression definition which will be applied to the value when valueCategory is CLEAR_TEXT
    valueCategories string[]
    List of value categories of field allowed for this property
    allowed_values Sequence[str]
    List of values which can be applied to the value when valueCategory is ALLOWED_VALUES
    default_value str
    The default value which will be used if no value is set. If defaultValue is empty, then no default will be set.
    display_name str
    The field display name
    is_required bool
    Set to true if the field must be defined
    name str
    The field name
    regex str
    Optional regular expression definition which will be applied to the value when valueCategory is CLEAR_TEXT
    value_categories Sequence[str]
    List of value categories of field allowed for this property
    allowedValues List<String>
    List of values which can be applied to the value when valueCategory is ALLOWED_VALUES
    defaultValue String
    The default value which will be used if no value is set. If defaultValue is empty, then no default will be set.
    displayName String
    The field display name
    isRequired Boolean
    Set to true if the field must be defined
    name String
    The field name
    regex String
    Optional regular expression definition which will be applied to the value when valueCategory is CLEAR_TEXT
    valueCategories List<String>
    List of value categories of field allowed for this property

    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 v3.9.0 published on Wednesday, Sep 24, 2025 by Pulumi