1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Jms
  5. getFleetBlocklists
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

oci.Jms.getFleetBlocklists

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

This data source provides the list of Fleet Blocklists in Oracle Cloud Infrastructure Jms service.

Returns a list of blocklist entities contained by a fleet.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testFleetBlocklists = oci.Jms.getFleetBlocklists({
    fleetId: testFleet.id,
    managedInstanceId: fleetBlocklistManagedInstanceId,
    operation: fleetBlocklistOperation,
});
Copy
import pulumi
import pulumi_oci as oci

test_fleet_blocklists = oci.Jms.get_fleet_blocklists(fleet_id=test_fleet["id"],
    managed_instance_id=fleet_blocklist_managed_instance_id,
    operation=fleet_blocklist_operation)
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/jms"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := jms.GetFleetBlocklists(ctx, &jms.GetFleetBlocklistsArgs{
			FleetId:           testFleet.Id,
			ManagedInstanceId: pulumi.StringRef(fleetBlocklistManagedInstanceId),
			Operation:         pulumi.StringRef(fleetBlocklistOperation),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testFleetBlocklists = Oci.Jms.GetFleetBlocklists.Invoke(new()
    {
        FleetId = testFleet.Id,
        ManagedInstanceId = fleetBlocklistManagedInstanceId,
        Operation = fleetBlocklistOperation,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Jms.JmsFunctions;
import com.pulumi.oci.Jms.inputs.GetFleetBlocklistsArgs;
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 testFleetBlocklists = JmsFunctions.getFleetBlocklists(GetFleetBlocklistsArgs.builder()
            .fleetId(testFleet.id())
            .managedInstanceId(fleetBlocklistManagedInstanceId)
            .operation(fleetBlocklistOperation)
            .build());

    }
}
Copy
variables:
  testFleetBlocklists:
    fn::invoke:
      function: oci:Jms:getFleetBlocklists
      arguments:
        fleetId: ${testFleet.id}
        managedInstanceId: ${fleetBlocklistManagedInstanceId}
        operation: ${fleetBlocklistOperation}
Copy

Using getFleetBlocklists

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 getFleetBlocklists(args: GetFleetBlocklistsArgs, opts?: InvokeOptions): Promise<GetFleetBlocklistsResult>
function getFleetBlocklistsOutput(args: GetFleetBlocklistsOutputArgs, opts?: InvokeOptions): Output<GetFleetBlocklistsResult>
Copy
def get_fleet_blocklists(filters: Optional[Sequence[_jms.GetFleetBlocklistsFilter]] = None,
                         fleet_id: Optional[str] = None,
                         managed_instance_id: Optional[str] = None,
                         operation: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetFleetBlocklistsResult
def get_fleet_blocklists_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_jms.GetFleetBlocklistsFilterArgs]]]] = None,
                         fleet_id: Optional[pulumi.Input[str]] = None,
                         managed_instance_id: Optional[pulumi.Input[str]] = None,
                         operation: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetFleetBlocklistsResult]
Copy
func GetFleetBlocklists(ctx *Context, args *GetFleetBlocklistsArgs, opts ...InvokeOption) (*GetFleetBlocklistsResult, error)
func GetFleetBlocklistsOutput(ctx *Context, args *GetFleetBlocklistsOutputArgs, opts ...InvokeOption) GetFleetBlocklistsResultOutput
Copy

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

public static class GetFleetBlocklists 
{
    public static Task<GetFleetBlocklistsResult> InvokeAsync(GetFleetBlocklistsArgs args, InvokeOptions? opts = null)
    public static Output<GetFleetBlocklistsResult> Invoke(GetFleetBlocklistsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetFleetBlocklistsResult> getFleetBlocklists(GetFleetBlocklistsArgs args, InvokeOptions options)
public static Output<GetFleetBlocklistsResult> getFleetBlocklists(GetFleetBlocklistsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Jms/getFleetBlocklists:getFleetBlocklists
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

FleetId This property is required. string
The OCID of the Fleet.
Filters Changes to this property will trigger replacement. List<GetFleetBlocklistsFilter>
ManagedInstanceId string
The Fleet-unique identifier of the related managed instance.
Operation string
The operation type.
FleetId This property is required. string
The OCID of the Fleet.
Filters Changes to this property will trigger replacement. []GetFleetBlocklistsFilter
ManagedInstanceId string
The Fleet-unique identifier of the related managed instance.
Operation string
The operation type.
fleetId This property is required. String
The OCID of the Fleet.
filters Changes to this property will trigger replacement. List<GetFleetBlocklistsFilter>
managedInstanceId String
The Fleet-unique identifier of the related managed instance.
operation String
The operation type.
fleetId This property is required. string
The OCID of the Fleet.
filters Changes to this property will trigger replacement. GetFleetBlocklistsFilter[]
managedInstanceId string
The Fleet-unique identifier of the related managed instance.
operation string
The operation type.
fleet_id This property is required. str
The OCID of the Fleet.
filters Changes to this property will trigger replacement. Sequence[jms.GetFleetBlocklistsFilter]
managed_instance_id str
The Fleet-unique identifier of the related managed instance.
operation str
The operation type.
fleetId This property is required. String
The OCID of the Fleet.
filters Changes to this property will trigger replacement. List<Property Map>
managedInstanceId String
The Fleet-unique identifier of the related managed instance.
operation String
The operation type.

getFleetBlocklists Result

The following output properties are available:

FleetId string
The OCID of the fleet.
Id string
The provider-assigned unique ID for this managed resource.
Items List<GetFleetBlocklistsItem>
The blocklist
Filters List<GetFleetBlocklistsFilter>
ManagedInstanceId string
The OCID of the related managed instance.
Operation string
The operation type
FleetId string
The OCID of the fleet.
Id string
The provider-assigned unique ID for this managed resource.
Items []GetFleetBlocklistsItem
The blocklist
Filters []GetFleetBlocklistsFilter
ManagedInstanceId string
The OCID of the related managed instance.
Operation string
The operation type
fleetId String
The OCID of the fleet.
id String
The provider-assigned unique ID for this managed resource.
items List<GetFleetBlocklistsItem>
The blocklist
filters List<GetFleetBlocklistsFilter>
managedInstanceId String
The OCID of the related managed instance.
operation String
The operation type
fleetId string
The OCID of the fleet.
id string
The provider-assigned unique ID for this managed resource.
items GetFleetBlocklistsItem[]
The blocklist
filters GetFleetBlocklistsFilter[]
managedInstanceId string
The OCID of the related managed instance.
operation string
The operation type
fleet_id str
The OCID of the fleet.
id str
The provider-assigned unique ID for this managed resource.
items Sequence[jms.GetFleetBlocklistsItem]
The blocklist
filters Sequence[jms.GetFleetBlocklistsFilter]
managed_instance_id str
The OCID of the related managed instance.
operation str
The operation type
fleetId String
The OCID of the fleet.
id String
The provider-assigned unique ID for this managed resource.
items List<Property Map>
The blocklist
filters List<Property Map>
managedInstanceId String
The OCID of the related managed instance.
operation String
The operation type

Supporting Types

GetFleetBlocklistsFilter

Name This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean

GetFleetBlocklistsItem

Key This property is required. string
The unique identifier of this blocklist record.
Operation This property is required. string
The operation type.
Reason This property is required. string
The reason why the operation is blocklisted.
Targets This property is required. List<GetFleetBlocklistsItemTarget>
A resource to blocklist for certain operation.
Key This property is required. string
The unique identifier of this blocklist record.
Operation This property is required. string
The operation type.
Reason This property is required. string
The reason why the operation is blocklisted.
Targets This property is required. []GetFleetBlocklistsItemTarget
A resource to blocklist for certain operation.
key This property is required. String
The unique identifier of this blocklist record.
operation This property is required. String
The operation type.
reason This property is required. String
The reason why the operation is blocklisted.
targets This property is required. List<GetFleetBlocklistsItemTarget>
A resource to blocklist for certain operation.
key This property is required. string
The unique identifier of this blocklist record.
operation This property is required. string
The operation type.
reason This property is required. string
The reason why the operation is blocklisted.
targets This property is required. GetFleetBlocklistsItemTarget[]
A resource to blocklist for certain operation.
key This property is required. str
The unique identifier of this blocklist record.
operation This property is required. str
The operation type.
reason This property is required. str
The reason why the operation is blocklisted.
targets This property is required. Sequence[jms.GetFleetBlocklistsItemTarget]
A resource to blocklist for certain operation.
key This property is required. String
The unique identifier of this blocklist record.
operation This property is required. String
The operation type.
reason This property is required. String
The reason why the operation is blocklisted.
targets This property is required. List<Property Map>
A resource to blocklist for certain operation.

GetFleetBlocklistsItemTarget

FleetId This property is required. string
The OCID of the Fleet.
InstallationKey This property is required. string
The unique identifier for the installation of Java Runtime at a specific path on a specific operating system.
ManagedInstanceId This property is required. string
The Fleet-unique identifier of the related managed instance.
FleetId This property is required. string
The OCID of the Fleet.
InstallationKey This property is required. string
The unique identifier for the installation of Java Runtime at a specific path on a specific operating system.
ManagedInstanceId This property is required. string
The Fleet-unique identifier of the related managed instance.
fleetId This property is required. String
The OCID of the Fleet.
installationKey This property is required. String
The unique identifier for the installation of Java Runtime at a specific path on a specific operating system.
managedInstanceId This property is required. String
The Fleet-unique identifier of the related managed instance.
fleetId This property is required. string
The OCID of the Fleet.
installationKey This property is required. string
The unique identifier for the installation of Java Runtime at a specific path on a specific operating system.
managedInstanceId This property is required. string
The Fleet-unique identifier of the related managed instance.
fleet_id This property is required. str
The OCID of the Fleet.
installation_key This property is required. str
The unique identifier for the installation of Java Runtime at a specific path on a specific operating system.
managed_instance_id This property is required. str
The Fleet-unique identifier of the related managed instance.
fleetId This property is required. String
The OCID of the Fleet.
installationKey This property is required. String
The unique identifier for the installation of Java Runtime at a specific path on a specific operating system.
managedInstanceId This property is required. String
The Fleet-unique identifier of the related managed instance.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi