Viewing docs for Oracle Cloud Infrastructure v5.0.0
published on Thursday, Sep 17, 2026 by Pulumi
published on Thursday, Sep 17, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v5.0.0
published on Thursday, Sep 17, 2026 by Pulumi
published on Thursday, Sep 17, 2026 by Pulumi
This data source provides the list of Hosted Application Storages in Oracle Cloud Infrastructure Generative AI service.
Lists the hosted application storage in a specific compartment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testHostedApplicationStorages = oci.generativeai.getHostedApplicationStorages({
compartmentId: compartmentId,
displayName: hostedApplicationStorageDisplayName,
hostedApplicationStorageType: hostedApplicationStorageHostedApplicationStorageType,
id: hostedApplicationStorageId,
state: hostedApplicationStorageState,
});
import pulumi
import pulumi_oci as oci
test_hosted_application_storages = oci.generativeai.get_hosted_application_storages(compartment_id=compartment_id,
display_name=hosted_application_storage_display_name,
hosted_application_storage_type=hosted_application_storage_hosted_application_storage_type,
id=hosted_application_storage_id,
state=hosted_application_storage_state)
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.GetHostedApplicationStorages(ctx, &generativeai.GetHostedApplicationStoragesArgs{
CompartmentId: compartmentId,
DisplayName: pulumi.StringRef(hostedApplicationStorageDisplayName),
HostedApplicationStorageType: pulumi.StringRef(hostedApplicationStorageHostedApplicationStorageType),
Id: pulumi.StringRef(hostedApplicationStorageId),
State: pulumi.StringRef(hostedApplicationStorageState),
}, 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 testHostedApplicationStorages = Oci.GenerativeAi.GetHostedApplicationStorages.Invoke(new()
{
CompartmentId = compartmentId,
DisplayName = hostedApplicationStorageDisplayName,
HostedApplicationStorageType = hostedApplicationStorageHostedApplicationStorageType,
Id = hostedApplicationStorageId,
State = hostedApplicationStorageState,
});
});
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.GetHostedApplicationStoragesArgs;
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 testHostedApplicationStorages = GenerativeAiFunctions.getHostedApplicationStorages(GetHostedApplicationStoragesArgs.builder()
.compartmentId(compartmentId)
.displayName(hostedApplicationStorageDisplayName)
.hostedApplicationStorageType(hostedApplicationStorageHostedApplicationStorageType)
.id(hostedApplicationStorageId)
.state(hostedApplicationStorageState)
.build());
}
}
variables:
testHostedApplicationStorages:
fn::invoke:
function: oci:GenerativeAi:getHostedApplicationStorages
arguments:
compartmentId: ${compartmentId}
displayName: ${hostedApplicationStorageDisplayName}
hostedApplicationStorageType: ${hostedApplicationStorageHostedApplicationStorageType}
id: ${hostedApplicationStorageId}
state: ${hostedApplicationStorageState}
pulumi {
required_providers {
oci = {
source = "pulumi/oci"
}
}
}
data "oci_generativeai_gethostedapplicationstorages" "testHostedApplicationStorages" {
compartment_id = compartmentId
display_name = hostedApplicationStorageDisplayName
hosted_application_storage_type = hostedApplicationStorageHostedApplicationStorageType
id = hostedApplicationStorageId
state = hostedApplicationStorageState
}
Using getHostedApplicationStorages
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 getHostedApplicationStorages(args: GetHostedApplicationStoragesArgs, opts?: InvokeOptions): Promise<GetHostedApplicationStoragesResult>
function getHostedApplicationStoragesOutput(args: GetHostedApplicationStoragesOutputArgs, opts?: InvokeOutputOptions): Output<GetHostedApplicationStoragesResult>def get_hosted_application_storages(compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[GetHostedApplicationStoragesFilter]] = None,
hosted_application_storage_type: Optional[str] = None,
id: Optional[str] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetHostedApplicationStoragesResult
def get_hosted_application_storages_output(compartment_id: pulumi.Input[Optional[str]] = None,
display_name: pulumi.Input[Optional[str]] = None,
filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetHostedApplicationStoragesFilterArgs]]]] = None,
hosted_application_storage_type: pulumi.Input[Optional[str]] = None,
id: pulumi.Input[Optional[str]] = None,
state: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetHostedApplicationStoragesResult]func GetHostedApplicationStorages(ctx *Context, args *GetHostedApplicationStoragesArgs, opts ...InvokeOption) (*GetHostedApplicationStoragesResult, error)
func GetHostedApplicationStoragesOutput(ctx *Context, args *GetHostedApplicationStoragesOutputArgs, opts ...InvokeOption) GetHostedApplicationStoragesResultOutput> Note: This function is named GetHostedApplicationStorages in the Go SDK.
public static class GetHostedApplicationStorages
{
public static Task<GetHostedApplicationStoragesResult> InvokeAsync(GetHostedApplicationStoragesArgs args, InvokeOptions? opts = null)
public static Output<GetHostedApplicationStoragesResult> Invoke(GetHostedApplicationStoragesInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetHostedApplicationStoragesResult> Invoke(GetHostedApplicationStoragesInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetHostedApplicationStoragesResult> getHostedApplicationStorages(GetHostedApplicationStoragesArgs args, InvokeOptions options)
public static Output<GetHostedApplicationStoragesResult> getHostedApplicationStorages(GetHostedApplicationStoragesArgs args, InvokeOptions options)
public static Output<GetHostedApplicationStoragesResult> getHostedApplicationStorages(GetHostedApplicationStoragesArgs args, InvokeOutputOptions options)
fn::invoke:
function: oci:GenerativeAi/getHostedApplicationStorages:getHostedApplicationStorages
arguments:
# arguments dictionarydata "oci_generative_ai_get_hosted_application_storages" "name" {
# arguments
}The following arguments are supported:
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Display
Name string - A filter to return only resources that match the given display name exactly.
- Filters
List<Get
Hosted Application Storages Filter> - Hosted
Application stringStorage Type - The type of the hosted application storage.
- Id string
- The OCID of the hosted application storage.
- State string
- A filter to return only the hosted applications that their lifecycle state matches the given lifecycle state.
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Display
Name string - A filter to return only resources that match the given display name exactly.
- Filters
[]Get
Hosted Application Storages Filter - Hosted
Application stringStorage Type - The type of the hosted application storage.
- Id string
- The OCID of the hosted application storage.
- State string
- A filter to return only the hosted applications that their lifecycle state matches the given lifecycle state.
- compartment_
id string - The OCID of the compartment in which to list resources.
- display_
name string - A filter to return only resources that match the given display name exactly.
- filters list(object)
- hosted_
application_ stringstorage_ type - The type of the hosted application storage.
- id string
- The OCID of the hosted application storage.
- state string
- A filter to return only the hosted applications that their lifecycle state matches the given lifecycle state.
- compartment
Id String - The OCID of the compartment in which to list resources.
- display
Name String - A filter to return only resources that match the given display name exactly.
- filters
List<Get
Hosted Application Storages Filter> - hosted
Application StringStorage Type - The type of the hosted application storage.
- id String
- The OCID of the hosted application storage.
- state String
- A filter to return only the hosted applications that their lifecycle state matches the given lifecycle state.
- compartment
Id string - The OCID of the compartment in which to list resources.
- display
Name string - A filter to return only resources that match the given display name exactly.
- filters
Get
Hosted Application Storages Filter[] - hosted
Application stringStorage Type - The type of the hosted application storage.
- id string
- The OCID of the hosted application storage.
- state string
- A filter to return only the hosted applications that their lifecycle state matches the given lifecycle state.
- compartment_
id str - The OCID of the compartment in which to list resources.
- display_
name str - A filter to return only resources that match the given display name exactly.
- filters
Sequence[Get
Hosted Application Storages Filter] - hosted_
application_ strstorage_ type - The type of the hosted application storage.
- id str
- The OCID of the hosted application storage.
- state str
- A filter to return only the hosted applications that their lifecycle state matches the given lifecycle state.
- compartment
Id String - The OCID of the compartment in which to list resources.
- display
Name String - A filter to return only resources that match the given display name exactly.
- filters List<Property Map>
- hosted
Application StringStorage Type - The type of the hosted application storage.
- id String
- The OCID of the hosted application storage.
- state String
- A filter to return only the hosted applications that their lifecycle state matches the given lifecycle state.
getHostedApplicationStorages Result
The following output properties are available:
- Compartment
Id string - The compartment OCID to create the hosted application in.
- Hosted
Application List<GetStorage Collections Hosted Application Storages Hosted Application Storage Collection> - The list of hosted_application_storage_collection.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable.
- Filters
List<Get
Hosted Application Storages Filter> - Hosted
Application stringStorage Type - Id string
- The OCID of the hosted application storage.
- State string
- The current state of the hosted application storage.
- Compartment
Id string - The compartment OCID to create the hosted application in.
- Hosted
Application []GetStorage Collections Hosted Application Storages Hosted Application Storage Collection - The list of hosted_application_storage_collection.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable.
- Filters
[]Get
Hosted Application Storages Filter - Hosted
Application stringStorage Type - Id string
- The OCID of the hosted application storage.
- State string
- The current state of the hosted application storage.
- compartment_
id string - The compartment OCID to create the hosted application in.
- hosted_
application_ list(object)storage_ collections - The list of hosted_application_storage_collection.
- display_
name string - A user-friendly name. Does not have to be unique, and it's changeable.
- filters list(object)
- hosted_
application_ stringstorage_ type - id string
- The OCID of the hosted application storage.
- state string
- The current state of the hosted application storage.
- compartment
Id String - The compartment OCID to create the hosted application in.
- hosted
Application List<GetStorage Collections Hosted Application Storages Hosted Application Storage Collection> - The list of hosted_application_storage_collection.
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable.
- filters
List<Get
Hosted Application Storages Filter> - hosted
Application StringStorage Type - id String
- The OCID of the hosted application storage.
- state String
- The current state of the hosted application storage.
- compartment
Id string - The compartment OCID to create the hosted application in.
- hosted
Application GetStorage Collections Hosted Application Storages Hosted Application Storage Collection[] - The list of hosted_application_storage_collection.
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable.
- filters
Get
Hosted Application Storages Filter[] - hosted
Application stringStorage Type - id string
- The OCID of the hosted application storage.
- state string
- The current state of the hosted application storage.
- compartment_
id str - The compartment OCID to create the hosted application in.
- hosted_
application_ Sequence[Getstorage_ collections Hosted Application Storages Hosted Application Storage Collection] - The list of hosted_application_storage_collection.
- display_
name str - A user-friendly name. Does not have to be unique, and it's changeable.
- filters
Sequence[Get
Hosted Application Storages Filter] - hosted_
application_ strstorage_ type - id str
- The OCID of the hosted application storage.
- state str
- The current state of the hosted application storage.
- compartment
Id String - The compartment OCID to create the hosted application in.
- hosted
Application List<Property Map>Storage Collections - The list of hosted_application_storage_collection.
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable.
- filters List<Property Map>
- hosted
Application StringStorage Type - id String
- The OCID of the hosted application storage.
- state String
- The current state of the hosted application storage.
Supporting Types
GetHostedApplicationStoragesFilter
GetHostedApplicationStoragesHostedApplicationStorageCollection
GetHostedApplicationStoragesHostedApplicationStorageCollectionItem
- Application
Ids List<string> - A list of application OCID.
- Compartment
Id string - The OCID of the compartment in which to list resources.
- 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.
- Display
Name string - A filter to return only resources that match the given display name exactly.
- 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"} - 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
- A filter to return only the hosted applications that their lifecycle state matches the given lifecycle state.
- Storage
Type string - type like Cache, Postgresql and ADB.
- Dictionary<string, 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
- Application
Ids []string - A list of application OCID.
- Compartment
Id string - The OCID of the compartment in which to list resources.
- 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.
- Display
Name string - A filter to return only resources that match the given display name exactly.
- 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"} - 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
- A filter to return only the hosted applications that their lifecycle state matches the given lifecycle state.
- Storage
Type string - type like Cache, Postgresql and ADB.
- map[string]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
- application_
ids list(string) - A list of application OCID.
- compartment_
id string - The OCID of the compartment in which to list resources.
- 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 filter to return only resources that match the given display name exactly.
- 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"} - 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
- A filter to return only the hosted applications that their lifecycle state matches the given lifecycle state.
- storage_
type string - type like Cache, Postgresql and ADB.
- 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
- application
Ids List<String> - A list of application OCID.
- compartment
Id String - The OCID of the compartment in which to list resources.
- 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.
- display
Name String - A filter to return only resources that match the given display name exactly.
- 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"} - 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
- A filter to return only the hosted applications that their lifecycle state matches the given lifecycle state.
- storage
Type String - type like Cache, Postgresql and ADB.
- Map<String,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
- application
Ids string[] - A list of application OCID.
- compartment
Id string - The OCID of the compartment in which to list resources.
- {[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.
- display
Name string - A filter to return only resources that match the given display name exactly.
- {[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"} - 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
- A filter to return only the hosted applications that their lifecycle state matches the given lifecycle state.
- storage
Type string - type like Cache, Postgresql and ADB.
- {[key: string]: 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
- application_
ids Sequence[str] - A list of application OCID.
- compartment_
id str - The OCID of the compartment in which to list resources.
- 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 filter to return only resources that match the given display name exactly.
- 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"} - 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
- A filter to return only the hosted applications that their lifecycle state matches the given lifecycle state.
- storage_
type str - type like Cache, Postgresql and ADB.
- 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
- application
Ids List<String> - A list of application OCID.
- compartment
Id String - The OCID of the compartment in which to list resources.
- 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 filter to return only resources that match the given display name exactly.
- 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"} - 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
- A filter to return only the hosted applications that their lifecycle state matches the given lifecycle state.
- storage
Type String - type like Cache, Postgresql and ADB.
- 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
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Viewing docs for Oracle Cloud Infrastructure v5.0.0
published on Thursday, Sep 17, 2026 by Pulumi
published on Thursday, Sep 17, 2026 by Pulumi