Oracle Cloud Infrastructure v3.12.0 published on Friday, Nov 21, 2025 by Pulumi
Oracle Cloud Infrastructure v3.12.0 published on Friday, Nov 21, 2025 by Pulumi
This data source provides the list of Api Platform Instances in Oracle Cloud Infrastructure Api Platform service.
Gets a list of API Platform Instances
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testApiPlatformInstances = oci.oci.getApiPlatformApiPlatformInstances({
compartmentId: compartmentId,
id: apiPlatformInstanceId,
name: apiPlatformInstanceName,
state: apiPlatformInstanceState,
});
import pulumi
import pulumi_oci as oci
test_api_platform_instances = oci.oci.get_api_platform_api_platform_instances(compartment_id=compartment_id,
id=api_platform_instance_id,
name=api_platform_instance_name,
state=api_platform_instance_state)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/oci"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := oci.GetApiPlatformApiPlatformInstances(ctx, &oci.GetApiPlatformApiPlatformInstancesArgs{
CompartmentId: pulumi.StringRef(compartmentId),
Id: pulumi.StringRef(apiPlatformInstanceId),
Name: pulumi.StringRef(apiPlatformInstanceName),
State: pulumi.StringRef(apiPlatformInstanceState),
}, 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 testApiPlatformInstances = Oci.Oci.GetApiPlatformApiPlatformInstances.Invoke(new()
{
CompartmentId = compartmentId,
Id = apiPlatformInstanceId,
Name = apiPlatformInstanceName,
State = apiPlatformInstanceState,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.oci.OciFunctions;
import com.pulumi.oci.oci.inputs.GetApiPlatformApiPlatformInstancesArgs;
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 testApiPlatformInstances = OciFunctions.getApiPlatformApiPlatformInstances(GetApiPlatformApiPlatformInstancesArgs.builder()
.compartmentId(compartmentId)
.id(apiPlatformInstanceId)
.name(apiPlatformInstanceName)
.state(apiPlatformInstanceState)
.build());
}
}
variables:
testApiPlatformInstances:
fn::invoke:
function: oci:oci:getApiPlatformApiPlatformInstances
arguments:
compartmentId: ${compartmentId}
id: ${apiPlatformInstanceId}
name: ${apiPlatformInstanceName}
state: ${apiPlatformInstanceState}
Using getApiPlatformApiPlatformInstances
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 getApiPlatformApiPlatformInstances(args: GetApiPlatformApiPlatformInstancesArgs, opts?: InvokeOptions): Promise<GetApiPlatformApiPlatformInstancesResult>
function getApiPlatformApiPlatformInstancesOutput(args: GetApiPlatformApiPlatformInstancesOutputArgs, opts?: InvokeOptions): Output<GetApiPlatformApiPlatformInstancesResult>def get_api_platform_api_platform_instances(compartment_id: Optional[str] = None,
filters: Optional[Sequence[GetApiPlatformApiPlatformInstancesFilter]] = None,
id: Optional[str] = None,
name: Optional[str] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetApiPlatformApiPlatformInstancesResult
def get_api_platform_api_platform_instances_output(compartment_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetApiPlatformApiPlatformInstancesFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetApiPlatformApiPlatformInstancesResult]func GetApiPlatformApiPlatformInstances(ctx *Context, args *GetApiPlatformApiPlatformInstancesArgs, opts ...InvokeOption) (*GetApiPlatformApiPlatformInstancesResult, error)
func GetApiPlatformApiPlatformInstancesOutput(ctx *Context, args *GetApiPlatformApiPlatformInstancesOutputArgs, opts ...InvokeOption) GetApiPlatformApiPlatformInstancesResultOutput> Note: This function is named GetApiPlatformApiPlatformInstances in the Go SDK.
public static class GetApiPlatformApiPlatformInstances
{
public static Task<GetApiPlatformApiPlatformInstancesResult> InvokeAsync(GetApiPlatformApiPlatformInstancesArgs args, InvokeOptions? opts = null)
public static Output<GetApiPlatformApiPlatformInstancesResult> Invoke(GetApiPlatformApiPlatformInstancesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetApiPlatformApiPlatformInstancesResult> getApiPlatformApiPlatformInstances(GetApiPlatformApiPlatformInstancesArgs args, InvokeOptions options)
public static Output<GetApiPlatformApiPlatformInstancesResult> getApiPlatformApiPlatformInstances(GetApiPlatformApiPlatformInstancesArgs args, InvokeOptions options)
fn::invoke:
function: oci:oci/getApiPlatformApiPlatformInstances:getApiPlatformApiPlatformInstances
arguments:
# arguments dictionaryThe following arguments are supported:
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Filters
List<Get
Api Platform Api Platform Instances Filter> - Id string
- The OCID of the instance
- Name string
- A filter to return only resources that match the given name exactly
- State string
- A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Filters
[]Get
Api Platform Api Platform Instances Filter - Id string
- The OCID of the instance
- Name string
- A filter to return only resources that match the given name exactly
- State string
- A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
- compartment
Id String - The OCID of the compartment in which to list resources.
- filters
List<Get
Api Platform Api Platform Instances Filter> - id String
- The OCID of the instance
- name String
- A filter to return only resources that match the given name exactly
- state String
- A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
- compartment
Id string - The OCID of the compartment in which to list resources.
- filters
Get
Api Platform Api Platform Instances Filter[] - id string
- The OCID of the instance
- name string
- A filter to return only resources that match the given name exactly
- state string
- A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
- compartment_
id str - The OCID of the compartment in which to list resources.
- filters
Sequence[Get
Api Platform Api Platform Instances Filter] - id str
- The OCID of the instance
- name str
- A filter to return only resources that match the given name exactly
- state str
- A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
- compartment
Id String - The OCID of the compartment in which to list resources.
- filters List<Property Map>
- id String
- The OCID of the instance
- name String
- A filter to return only resources that match the given name exactly
- state String
- A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
getApiPlatformApiPlatformInstances Result
The following output properties are available:
- Api
Platform List<GetInstance Collections Api Platform Api Platform Instances Api Platform Instance Collection> - The list of api_platform_instance_collection.
- Compartment
Id string - The OCID of the compartment
- Filters
List<Get
Api Platform Api Platform Instances Filter> - Id string
- The OCID of the instance
- Name string
- A regionally unique, non-changeable instance name provided by the user during instance creation
- State string
- The current state of the instance
- Api
Platform []GetInstance Collections Api Platform Api Platform Instances Api Platform Instance Collection - The list of api_platform_instance_collection.
- Compartment
Id string - The OCID of the compartment
- Filters
[]Get
Api Platform Api Platform Instances Filter - Id string
- The OCID of the instance
- Name string
- A regionally unique, non-changeable instance name provided by the user during instance creation
- State string
- The current state of the instance
- api
Platform List<GetInstance Collections Api Platform Api Platform Instances Api Platform Instance Collection> - The list of api_platform_instance_collection.
- compartment
Id String - The OCID of the compartment
- filters
List<Get
Api Platform Api Platform Instances Filter> - id String
- The OCID of the instance
- name String
- A regionally unique, non-changeable instance name provided by the user during instance creation
- state String
- The current state of the instance
- api
Platform GetInstance Collections Api Platform Api Platform Instances Api Platform Instance Collection[] - The list of api_platform_instance_collection.
- compartment
Id string - The OCID of the compartment
- filters
Get
Api Platform Api Platform Instances Filter[] - id string
- The OCID of the instance
- name string
- A regionally unique, non-changeable instance name provided by the user during instance creation
- state string
- The current state of the instance
- api_
platform_ Sequence[Getinstance_ collections Api Platform Api Platform Instances Api Platform Instance Collection] - The list of api_platform_instance_collection.
- compartment_
id str - The OCID of the compartment
- filters
Sequence[Get
Api Platform Api Platform Instances Filter] - id str
- The OCID of the instance
- name str
- A regionally unique, non-changeable instance name provided by the user during instance creation
- state str
- The current state of the instance
- api
Platform List<Property Map>Instance Collections - The list of api_platform_instance_collection.
- compartment
Id String - The OCID of the compartment
- filters List<Property Map>
- id String
- The OCID of the instance
- name String
- A regionally unique, non-changeable instance name provided by the user during instance creation
- state String
- The current state of the instance
Supporting Types
GetApiPlatformApiPlatformInstancesApiPlatformInstanceCollection
GetApiPlatformApiPlatformInstancesApiPlatformInstanceCollectionItem
- 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. Example:
{"foo-namespace.bar-key": "value"} - Description string
- User-provided changeable and non-unique description of the instance
- Dictionary<string, string>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - Id string
- The OCID of the instance
- Idcs
Apps List<GetApi Platform Api Platform Instances Api Platform Instance Collection Item Idcs App> - IDCS app associated with the instance, that can be used to manage the roles of the users
- Lifecycle
Details string - A message that describes the current state of the instance in more detail. For example, can be used to provide actionable information for a resource in the Failed state
- Name string
- A filter to return only resources that match the given name exactly
- State string
- A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
- 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 instance was created, in the format defined by RFC 3339 Example:
2016-08-25T21:10:29.600Z - Time
Updated string - The date and time the instance was updated, in the format defined by RFC 3339 Example:
2016-08-25T21:10:29.600Z - Uris
List<Get
Api Platform Api Platform Instances Api Platform Instance Collection Item Uri> - Service URIs pertaining to the instance
- 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. Example:
{"foo-namespace.bar-key": "value"} - Description string
- User-provided changeable and non-unique description of the instance
- map[string]string
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - Id string
- The OCID of the instance
- Idcs
Apps []GetApi Platform Api Platform Instances Api Platform Instance Collection Item Idcs App - IDCS app associated with the instance, that can be used to manage the roles of the users
- Lifecycle
Details string - A message that describes the current state of the instance in more detail. For example, can be used to provide actionable information for a resource in the Failed state
- Name string
- A filter to return only resources that match the given name exactly
- State string
- A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
- 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 instance was created, in the format defined by RFC 3339 Example:
2016-08-25T21:10:29.600Z - Time
Updated string - The date and time the instance was updated, in the format defined by RFC 3339 Example:
2016-08-25T21:10:29.600Z - Uris
[]Get
Api Platform Api Platform Instances Api Platform Instance Collection Item Uri - Service URIs pertaining to the instance
- 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. Example:
{"foo-namespace.bar-key": "value"} - description String
- User-provided changeable and non-unique description of the instance
- Map<String,String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - id String
- The OCID of the instance
- idcs
Apps List<GetApi Platform Api Platform Instances Api Platform Instance Collection Item Idcs App> - IDCS app associated with the instance, that can be used to manage the roles of the users
- lifecycle
Details String - A message that describes the current state of the instance in more detail. For example, can be used to provide actionable information for a resource in the Failed state
- name String
- A filter to return only resources that match the given name exactly
- state String
- A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
- 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 instance was created, in the format defined by RFC 3339 Example:
2016-08-25T21:10:29.600Z - time
Updated String - The date and time the instance was updated, in the format defined by RFC 3339 Example:
2016-08-25T21:10:29.600Z - uris
List<Get
Api Platform Api Platform Instances Api Platform Instance Collection Item Uri> - Service URIs pertaining to the instance
- 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. Example:
{"foo-namespace.bar-key": "value"} - description string
- User-provided changeable and non-unique description of the instance
- {[key: string]: string}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - id string
- The OCID of the instance
- idcs
Apps GetApi Platform Api Platform Instances Api Platform Instance Collection Item Idcs App[] - IDCS app associated with the instance, that can be used to manage the roles of the users
- lifecycle
Details string - A message that describes the current state of the instance in more detail. For example, can be used to provide actionable information for a resource in the Failed state
- name string
- A filter to return only resources that match the given name exactly
- state string
- A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
- {[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 instance was created, in the format defined by RFC 3339 Example:
2016-08-25T21:10:29.600Z - time
Updated string - The date and time the instance was updated, in the format defined by RFC 3339 Example:
2016-08-25T21:10:29.600Z - uris
Get
Api Platform Api Platform Instances Api Platform Instance Collection Item Uri[] - Service URIs pertaining to the instance
- 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. Example:
{"foo-namespace.bar-key": "value"} - description str
- User-provided changeable and non-unique description of the instance
- Mapping[str, str]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - id str
- The OCID of the instance
- idcs_
apps Sequence[GetApi Platform Api Platform Instances Api Platform Instance Collection Item Idcs App] - IDCS app associated with the instance, that can be used to manage the roles of the users
- lifecycle_
details str - A message that describes the current state of the instance in more detail. For example, can be used to provide actionable information for a resource in the Failed state
- name str
- A filter to return only resources that match the given name exactly
- state str
- A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
- 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 instance was created, in the format defined by RFC 3339 Example:
2016-08-25T21:10:29.600Z - time_
updated str - The date and time the instance was updated, in the format defined by RFC 3339 Example:
2016-08-25T21:10:29.600Z - uris
Sequence[Get
Api Platform Api Platform Instances Api Platform Instance Collection Item Uri] - Service URIs pertaining to the instance
- 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. Example:
{"foo-namespace.bar-key": "value"} - description String
- User-provided changeable and non-unique description of the instance
- Map<String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - id String
- The OCID of the instance
- idcs
Apps List<Property Map> - IDCS app associated with the instance, that can be used to manage the roles of the users
- lifecycle
Details String - A message that describes the current state of the instance in more detail. For example, can be used to provide actionable information for a resource in the Failed state
- name String
- A filter to return only resources that match the given name exactly
- state String
- A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
- 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 instance was created, in the format defined by RFC 3339 Example:
2016-08-25T21:10:29.600Z - time
Updated String - The date and time the instance was updated, in the format defined by RFC 3339 Example:
2016-08-25T21:10:29.600Z - uris List<Property Map>
- Service URIs pertaining to the instance
GetApiPlatformApiPlatformInstancesApiPlatformInstanceCollectionItemIdcsApp
- Url string
- IDCS URL of the app
- Url string
- IDCS URL of the app
- url String
- IDCS URL of the app
- url string
- IDCS URL of the app
- url str
- IDCS URL of the app
- url String
- IDCS URL of the app
GetApiPlatformApiPlatformInstancesApiPlatformInstanceCollectionItemUri
- Developers
Portal stringUri - Developer's Portal URI of the instance (/developers)
- Management
Portal stringUri - Management Portal URI of the instance (/apiplatform)
- Developers
Portal stringUri - Developer's Portal URI of the instance (/developers)
- Management
Portal stringUri - Management Portal URI of the instance (/apiplatform)
- developers
Portal StringUri - Developer's Portal URI of the instance (/developers)
- management
Portal StringUri - Management Portal URI of the instance (/apiplatform)
- developers
Portal stringUri - Developer's Portal URI of the instance (/developers)
- management
Portal stringUri - Management Portal URI of the instance (/apiplatform)
- developers_
portal_ struri - Developer's Portal URI of the instance (/developers)
- management_
portal_ struri - Management Portal URI of the instance (/apiplatform)
- developers
Portal StringUri - Developer's Portal URI of the instance (/developers)
- management
Portal StringUri - Management Portal URI of the instance (/apiplatform)
GetApiPlatformApiPlatformInstancesFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Oracle Cloud Infrastructure v3.12.0 published on Friday, Nov 21, 2025 by Pulumi
