1. Registry
  2. Packages
  3. Oracle Cloud Infrastructure
  4. API Docs
  5. GenerativeAi
  6. getHostedApplicationStorage
Viewing docs for Oracle Cloud Infrastructure v5.0.0
published on Thursday, Sep 17, 2026 by Pulumi
oci logo oci logo
Viewing docs for Oracle Cloud Infrastructure v5.0.0
published on Thursday, Sep 17, 2026 by Pulumi

    This data source provides details about a specific Hosted Application Storage resource in Oracle Cloud Infrastructure Generative AI service.

    Gets information about a hosted application storage.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testHostedApplicationStorage = oci.generativeai.getHostedApplicationStorage({
        hostedApplicationStorageId: testHostedApplicationStorageOciGenerativeAiHostedApplicationStorage.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_hosted_application_storage = oci.generativeai.get_hosted_application_storage(hosted_application_storage_id=test_hosted_application_storage_oci_generative_ai_hosted_application_storage["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v5/go/oci/generativeai"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := generativeai.GetHostedApplicationStorage(ctx, &generativeai.GetHostedApplicationStorageArgs{
    			HostedApplicationStorageId: testHostedApplicationStorageOciGenerativeAiHostedApplicationStorage.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 testHostedApplicationStorage = Oci.GenerativeAi.GetHostedApplicationStorage.Invoke(new()
        {
            HostedApplicationStorageId = testHostedApplicationStorageOciGenerativeAiHostedApplicationStorage.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.GenerativeAi.GenerativeAiFunctions;
    import com.pulumi.oci.GenerativeAi.inputs.GetHostedApplicationStorageArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 testHostedApplicationStorage = GenerativeAiFunctions.getHostedApplicationStorage(GetHostedApplicationStorageArgs.builder()
                .hostedApplicationStorageId(testHostedApplicationStorageOciGenerativeAiHostedApplicationStorage.id())
                .build());
    
        }
    }
    
    variables:
      testHostedApplicationStorage:
        fn::invoke:
          function: oci:GenerativeAi:getHostedApplicationStorage
          arguments:
            hostedApplicationStorageId: ${testHostedApplicationStorageOciGenerativeAiHostedApplicationStorage.id}
    
    pulumi {
      required_providers {
        oci = {
          source = "pulumi/oci"
        }
      }
    }
    
    data "oci_generativeai_gethostedapplicationstorage" "testHostedApplicationStorage" {
      hosted_application_storage_id = testHostedApplicationStorageOciGenerativeAiHostedApplicationStorage.id
    }
    

    Using getHostedApplicationStorage

    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 getHostedApplicationStorage(args: GetHostedApplicationStorageArgs, opts?: InvokeOptions): Promise<GetHostedApplicationStorageResult>
    function getHostedApplicationStorageOutput(args: GetHostedApplicationStorageOutputArgs, opts?: InvokeOutputOptions): Output<GetHostedApplicationStorageResult>
    def get_hosted_application_storage(hosted_application_storage_id: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetHostedApplicationStorageResult
    def get_hosted_application_storage_output(hosted_application_storage_id: pulumi.Input[Optional[str]] = None,
                                       opts: Optional[InvokeOutputOptions] = None) -> Output[GetHostedApplicationStorageResult]
    func LookupHostedApplicationStorage(ctx *Context, args *LookupHostedApplicationStorageArgs, opts ...InvokeOption) (*LookupHostedApplicationStorageResult, error)
    func LookupHostedApplicationStorageOutput(ctx *Context, args *LookupHostedApplicationStorageOutputArgs, opts ...InvokeOption) LookupHostedApplicationStorageResultOutput

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

    public static class GetHostedApplicationStorage 
    {
        public static Task<GetHostedApplicationStorageResult> InvokeAsync(GetHostedApplicationStorageArgs args, InvokeOptions? opts = null)
        public static Output<GetHostedApplicationStorageResult> Invoke(GetHostedApplicationStorageInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetHostedApplicationStorageResult> Invoke(GetHostedApplicationStorageInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetHostedApplicationStorageResult> getHostedApplicationStorage(GetHostedApplicationStorageArgs args, InvokeOptions options)
    public static Output<GetHostedApplicationStorageResult> getHostedApplicationStorage(GetHostedApplicationStorageArgs args, InvokeOptions options)
    public static Output<GetHostedApplicationStorageResult> getHostedApplicationStorage(GetHostedApplicationStorageArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: oci:GenerativeAi/getHostedApplicationStorage:getHostedApplicationStorage
      arguments:
        # arguments dictionary
    data "oci_generative_ai_get_hosted_application_storage" "name" {
        # arguments
    }

    The following arguments are supported:

    HostedApplicationStorageId string
    The OCID of the hosted application storage.
    HostedApplicationStorageId string
    The OCID of the hosted application storage.
    hosted_application_storage_id string
    The OCID of the hosted application storage.
    hostedApplicationStorageId String
    The OCID of the hosted application storage.
    hostedApplicationStorageId string
    The OCID of the hosted application storage.
    hosted_application_storage_id str
    The OCID of the hosted application storage.
    hostedApplicationStorageId String
    The OCID of the hosted application storage.

    getHostedApplicationStorage Result

    The following output properties are available:

    ApplicationIds List<string>
    A list of application OCID.
    CompartmentId string
    The compartment OCID to create the hosted application in.
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    Description string
    An optional description of the hosted application storage.
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable.
    FreeformTags Dictionary<string, string>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    HostedApplicationStorageId string
    Id string
    The OCID of the hosted application storage.
    LifecycleDetails string
    A message describing the current state of the hosted application storage in more detail that can provide actionable information.
    State string
    The current state of the hosted application storage.
    StorageType string
    type like Cache, Postgresql and ADB.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the hosted application was created, in the format defined by RFC 3339
    TimeUpdated string
    The date and time the hosted application was updated, in the format defined by RFC 3339
    ApplicationIds []string
    A list of application OCID.
    CompartmentId string
    The compartment OCID to create the hosted application in.
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    Description string
    An optional description of the hosted application storage.
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable.
    FreeformTags map[string]string
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    HostedApplicationStorageId string
    Id string
    The OCID of the hosted application storage.
    LifecycleDetails string
    A message describing the current state of the hosted application storage in more detail that can provide actionable information.
    State string
    The current state of the hosted application storage.
    StorageType string
    type like Cache, Postgresql and ADB.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the hosted application was created, in the format defined by RFC 3339
    TimeUpdated string
    The date and time the hosted application was updated, in the format defined by RFC 3339
    application_ids list(string)
    A list of application OCID.
    compartment_id string
    The compartment OCID to create the hosted application in.
    defined_tags map(string)
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description string
    An optional description of the hosted application storage.
    display_name string
    A user-friendly name. Does not have to be unique, and it's changeable.
    freeform_tags map(string)
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    hosted_application_storage_id string
    id string
    The OCID of the hosted application storage.
    lifecycle_details string
    A message describing the current state of the hosted application storage in more detail that can provide actionable information.
    state string
    The current state of the hosted application storage.
    storage_type string
    type like Cache, Postgresql and ADB.
    system_tags map(string)
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created string
    The date and time the hosted application was created, in the format defined by RFC 3339
    time_updated string
    The date and time the hosted application was updated, in the format defined by RFC 3339
    applicationIds List<String>
    A list of application OCID.
    compartmentId String
    The compartment OCID to create the hosted application in.
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description String
    An optional description of the hosted application storage.
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable.
    freeformTags Map<String,String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    hostedApplicationStorageId String
    id String
    The OCID of the hosted application storage.
    lifecycleDetails String
    A message describing the current state of the hosted application storage in more detail that can provide actionable information.
    state String
    The current state of the hosted application storage.
    storageType String
    type like Cache, Postgresql and ADB.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the hosted application was created, in the format defined by RFC 3339
    timeUpdated String
    The date and time the hosted application was updated, in the format defined by RFC 3339
    applicationIds string[]
    A list of application OCID.
    compartmentId string
    The compartment OCID to create the hosted application in.
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description string
    An optional description of the hosted application storage.
    displayName string
    A user-friendly name. Does not have to be unique, and it's changeable.
    freeformTags {[key: string]: string}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    hostedApplicationStorageId string
    id string
    The OCID of the hosted application storage.
    lifecycleDetails string
    A message describing the current state of the hosted application storage in more detail that can provide actionable information.
    state string
    The current state of the hosted application storage.
    storageType string
    type like Cache, Postgresql and ADB.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The date and time the hosted application was created, in the format defined by RFC 3339
    timeUpdated string
    The date and time the hosted application was updated, in the format defined by RFC 3339
    application_ids Sequence[str]
    A list of application OCID.
    compartment_id str
    The compartment OCID to create the hosted application in.
    defined_tags Mapping[str, str]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description str
    An optional description of the hosted application storage.
    display_name str
    A user-friendly name. Does not have to be unique, and it's changeable.
    freeform_tags Mapping[str, str]
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    hosted_application_storage_id str
    id str
    The OCID of the hosted application storage.
    lifecycle_details str
    A message describing the current state of the hosted application storage in more detail that can provide actionable information.
    state str
    The current state of the hosted application storage.
    storage_type str
    type like Cache, Postgresql and ADB.
    system_tags Mapping[str, str]
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The date and time the hosted application was created, in the format defined by RFC 3339
    time_updated str
    The date and time the hosted application was updated, in the format defined by RFC 3339
    applicationIds List<String>
    A list of application OCID.
    compartmentId String
    The compartment OCID to create the hosted application in.
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description String
    An optional description of the hosted application storage.
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable.
    freeformTags Map<String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    hostedApplicationStorageId String
    id String
    The OCID of the hosted application storage.
    lifecycleDetails String
    A message describing the current state of the hosted application storage in more detail that can provide actionable information.
    state String
    The current state of the hosted application storage.
    storageType String
    type like Cache, Postgresql and ADB.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the hosted application was created, in the format defined by RFC 3339
    timeUpdated String
    The date and time the hosted application was updated, in the format defined by RFC 3339

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo oci logo
    Viewing docs for Oracle Cloud Infrastructure v5.0.0
    published on Thursday, Sep 17, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial