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

oci.Marketplace.getMarketplaceMetadataPublicKeys

Explore with Pulumi AI

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

    This data source provides the list of Marketplace Metadata Public Keys in Oracle Cloud Infrastructure Marketplace service.

    Get public certificates used in JWT signing, in JSON Web Key Sets format

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testMarketplaceMetadataPublicKeys = oci.Marketplace.getMarketplaceMetadataPublicKeys({
        compartmentId: compartmentId,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_marketplace_metadata_public_keys = oci.Marketplace.get_marketplace_metadata_public_keys(compartment_id=compartment_id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/marketplace"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := marketplace.GetMarketplaceMetadataPublicKeys(ctx, &marketplace.GetMarketplaceMetadataPublicKeysArgs{
    			CompartmentId: pulumi.StringRef(compartmentId),
    		}, 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 testMarketplaceMetadataPublicKeys = Oci.Marketplace.GetMarketplaceMetadataPublicKeys.Invoke(new()
        {
            CompartmentId = compartmentId,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Marketplace.MarketplaceFunctions;
    import com.pulumi.oci.Marketplace.inputs.GetMarketplaceMetadataPublicKeysArgs;
    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 testMarketplaceMetadataPublicKeys = MarketplaceFunctions.getMarketplaceMetadataPublicKeys(GetMarketplaceMetadataPublicKeysArgs.builder()
                .compartmentId(compartmentId)
                .build());
    
        }
    }
    
    variables:
      testMarketplaceMetadataPublicKeys:
        fn::invoke:
          function: oci:Marketplace:getMarketplaceMetadataPublicKeys
          arguments:
            compartmentId: ${compartmentId}
    

    Using getMarketplaceMetadataPublicKeys

    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 getMarketplaceMetadataPublicKeys(args: GetMarketplaceMetadataPublicKeysArgs, opts?: InvokeOptions): Promise<GetMarketplaceMetadataPublicKeysResult>
    function getMarketplaceMetadataPublicKeysOutput(args: GetMarketplaceMetadataPublicKeysOutputArgs, opts?: InvokeOptions): Output<GetMarketplaceMetadataPublicKeysResult>
    def get_marketplace_metadata_public_keys(compartment_id: Optional[str] = None,
                                             filters: Optional[Sequence[GetMarketplaceMetadataPublicKeysFilter]] = None,
                                             opts: Optional[InvokeOptions] = None) -> GetMarketplaceMetadataPublicKeysResult
    def get_marketplace_metadata_public_keys_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                             filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetMarketplaceMetadataPublicKeysFilterArgs]]]] = None,
                                             opts: Optional[InvokeOptions] = None) -> Output[GetMarketplaceMetadataPublicKeysResult]
    func GetMarketplaceMetadataPublicKeys(ctx *Context, args *GetMarketplaceMetadataPublicKeysArgs, opts ...InvokeOption) (*GetMarketplaceMetadataPublicKeysResult, error)
    func GetMarketplaceMetadataPublicKeysOutput(ctx *Context, args *GetMarketplaceMetadataPublicKeysOutputArgs, opts ...InvokeOption) GetMarketplaceMetadataPublicKeysResultOutput

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

    public static class GetMarketplaceMetadataPublicKeys 
    {
        public static Task<GetMarketplaceMetadataPublicKeysResult> InvokeAsync(GetMarketplaceMetadataPublicKeysArgs args, InvokeOptions? opts = null)
        public static Output<GetMarketplaceMetadataPublicKeysResult> Invoke(GetMarketplaceMetadataPublicKeysInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMarketplaceMetadataPublicKeysResult> getMarketplaceMetadataPublicKeys(GetMarketplaceMetadataPublicKeysArgs args, InvokeOptions options)
    public static Output<GetMarketplaceMetadataPublicKeysResult> getMarketplaceMetadataPublicKeys(GetMarketplaceMetadataPublicKeysArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:Marketplace/getMarketplaceMetadataPublicKeys:getMarketplaceMetadataPublicKeys
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The unique identifier for the compartment.
    Filters List<GetMarketplaceMetadataPublicKeysFilter>
    CompartmentId string
    The unique identifier for the compartment.
    Filters []GetMarketplaceMetadataPublicKeysFilter
    compartmentId String
    The unique identifier for the compartment.
    filters List<GetMetadataPublicKeysFilter>
    compartmentId string
    The unique identifier for the compartment.
    filters GetMarketplaceMetadataPublicKeysFilter[]
    compartment_id str
    The unique identifier for the compartment.
    filters Sequence[GetMarketplaceMetadataPublicKeysFilter]
    compartmentId String
    The unique identifier for the compartment.
    filters List<Property Map>

    getMarketplaceMetadataPublicKeys Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    MarketplaceMetadataPublicKeys List<GetMarketplaceMetadataPublicKeysMarketplaceMetadataPublicKey>
    The list of marketplace_metadata_public_keys.
    CompartmentId string
    Filters List<GetMarketplaceMetadataPublicKeysFilter>
    Id string
    The provider-assigned unique ID for this managed resource.
    MarketplaceMetadataPublicKeys []GetMarketplaceMetadataPublicKeysMarketplaceMetadataPublicKey
    The list of marketplace_metadata_public_keys.
    CompartmentId string
    Filters []GetMarketplaceMetadataPublicKeysFilter
    id String
    The provider-assigned unique ID for this managed resource.
    marketplaceMetadataPublicKeys List<GetMetadataPublicKeysMetadataPublicKey>
    The list of marketplace_metadata_public_keys.
    compartmentId String
    filters List<GetMetadataPublicKeysFilter>
    id string
    The provider-assigned unique ID for this managed resource.
    marketplaceMetadataPublicKeys GetMarketplaceMetadataPublicKeysMarketplaceMetadataPublicKey[]
    The list of marketplace_metadata_public_keys.
    compartmentId string
    filters GetMarketplaceMetadataPublicKeysFilter[]
    id String
    The provider-assigned unique ID for this managed resource.
    marketplaceMetadataPublicKeys List<Property Map>
    The list of marketplace_metadata_public_keys.
    compartmentId String
    filters List<Property Map>

    Supporting Types

    GetMarketplaceMetadataPublicKeysFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetMarketplaceMetadataPublicKeysMarketplaceMetadataPublicKey

    CertificateChains List<string>
    chain of certificates used to sign JWT
    CertificateThumbprint string
    unique identifier of associated X509 certificate
    Exponent string
    base64 encoded exponent for public key
    KeyAlgorithm string
    algorithm for public key (i.e. RS256)
    KeyId string
    unique id that maps to public certificate, directs user which certificate to use to verfiy
    KeyType string
    key type (i.e. RSA)
    KeyUse string
    how key is to be used
    Modulus string
    RSA public modulus
    CertificateChains []string
    chain of certificates used to sign JWT
    CertificateThumbprint string
    unique identifier of associated X509 certificate
    Exponent string
    base64 encoded exponent for public key
    KeyAlgorithm string
    algorithm for public key (i.e. RS256)
    KeyId string
    unique id that maps to public certificate, directs user which certificate to use to verfiy
    KeyType string
    key type (i.e. RSA)
    KeyUse string
    how key is to be used
    Modulus string
    RSA public modulus
    certificateChains List<String>
    chain of certificates used to sign JWT
    certificateThumbprint String
    unique identifier of associated X509 certificate
    exponent String
    base64 encoded exponent for public key
    keyAlgorithm String
    algorithm for public key (i.e. RS256)
    keyId String
    unique id that maps to public certificate, directs user which certificate to use to verfiy
    keyType String
    key type (i.e. RSA)
    keyUse String
    how key is to be used
    modulus String
    RSA public modulus
    certificateChains string[]
    chain of certificates used to sign JWT
    certificateThumbprint string
    unique identifier of associated X509 certificate
    exponent string
    base64 encoded exponent for public key
    keyAlgorithm string
    algorithm for public key (i.e. RS256)
    keyId string
    unique id that maps to public certificate, directs user which certificate to use to verfiy
    keyType string
    key type (i.e. RSA)
    keyUse string
    how key is to be used
    modulus string
    RSA public modulus
    certificate_chains Sequence[str]
    chain of certificates used to sign JWT
    certificate_thumbprint str
    unique identifier of associated X509 certificate
    exponent str
    base64 encoded exponent for public key
    key_algorithm str
    algorithm for public key (i.e. RS256)
    key_id str
    unique id that maps to public certificate, directs user which certificate to use to verfiy
    key_type str
    key type (i.e. RSA)
    key_use str
    how key is to be used
    modulus str
    RSA public modulus
    certificateChains List<String>
    chain of certificates used to sign JWT
    certificateThumbprint String
    unique identifier of associated X509 certificate
    exponent String
    base64 encoded exponent for public key
    keyAlgorithm String
    algorithm for public key (i.e. RS256)
    keyId String
    unique id that maps to public certificate, directs user which certificate to use to verfiy
    keyType String
    key type (i.e. RSA)
    keyUse String
    how key is to be used
    modulus String
    RSA public modulus

    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