Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.CapacityManagement.getOccHandoverResourceBlockDetails
Explore with Pulumi AI
This data source provides the list of Occ Handover Resource Block Details in Oracle Cloud Infrastructure Capacity Management service.
List details about a given occHandoverResourceBlock.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testOccHandoverResourceBlockDetails = oci.CapacityManagement.getOccHandoverResourceBlockDetails({
occHandoverResourceBlockId: testOccHandoverResourceBlock.id,
hostId: testHost.id,
});
import pulumi
import pulumi_oci as oci
test_occ_handover_resource_block_details = oci.CapacityManagement.get_occ_handover_resource_block_details(occ_handover_resource_block_id=test_occ_handover_resource_block["id"],
host_id=test_host["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/CapacityManagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := CapacityManagement.GetOccHandoverResourceBlockDetails(ctx, &capacitymanagement.GetOccHandoverResourceBlockDetailsArgs{
OccHandoverResourceBlockId: testOccHandoverResourceBlock.Id,
HostId: pulumi.StringRef(testHost.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 testOccHandoverResourceBlockDetails = Oci.CapacityManagement.GetOccHandoverResourceBlockDetails.Invoke(new()
{
OccHandoverResourceBlockId = testOccHandoverResourceBlock.Id,
HostId = testHost.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.CapacityManagement.CapacityManagementFunctions;
import com.pulumi.oci.CapacityManagement.inputs.GetOccHandoverResourceBlockDetailsArgs;
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 testOccHandoverResourceBlockDetails = CapacityManagementFunctions.getOccHandoverResourceBlockDetails(GetOccHandoverResourceBlockDetailsArgs.builder()
.occHandoverResourceBlockId(testOccHandoverResourceBlock.id())
.hostId(testHost.id())
.build());
}
}
variables:
testOccHandoverResourceBlockDetails:
fn::invoke:
Function: oci:CapacityManagement:getOccHandoverResourceBlockDetails
Arguments:
occHandoverResourceBlockId: ${testOccHandoverResourceBlock.id}
hostId: ${testHost.id}
Using getOccHandoverResourceBlockDetails
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 getOccHandoverResourceBlockDetails(args: GetOccHandoverResourceBlockDetailsArgs, opts?: InvokeOptions): Promise<GetOccHandoverResourceBlockDetailsResult>
function getOccHandoverResourceBlockDetailsOutput(args: GetOccHandoverResourceBlockDetailsOutputArgs, opts?: InvokeOptions): Output<GetOccHandoverResourceBlockDetailsResult>
def get_occ_handover_resource_block_details(filters: Optional[Sequence[_capacitymanagement.GetOccHandoverResourceBlockDetailsFilter]] = None,
host_id: Optional[str] = None,
occ_handover_resource_block_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetOccHandoverResourceBlockDetailsResult
def get_occ_handover_resource_block_details_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_capacitymanagement.GetOccHandoverResourceBlockDetailsFilterArgs]]]] = None,
host_id: Optional[pulumi.Input[str]] = None,
occ_handover_resource_block_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetOccHandoverResourceBlockDetailsResult]
func GetOccHandoverResourceBlockDetails(ctx *Context, args *GetOccHandoverResourceBlockDetailsArgs, opts ...InvokeOption) (*GetOccHandoverResourceBlockDetailsResult, error)
func GetOccHandoverResourceBlockDetailsOutput(ctx *Context, args *GetOccHandoverResourceBlockDetailsOutputArgs, opts ...InvokeOption) GetOccHandoverResourceBlockDetailsResultOutput
> Note: This function is named GetOccHandoverResourceBlockDetails
in the Go SDK.
public static class GetOccHandoverResourceBlockDetails
{
public static Task<GetOccHandoverResourceBlockDetailsResult> InvokeAsync(GetOccHandoverResourceBlockDetailsArgs args, InvokeOptions? opts = null)
public static Output<GetOccHandoverResourceBlockDetailsResult> Invoke(GetOccHandoverResourceBlockDetailsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetOccHandoverResourceBlockDetailsResult> getOccHandoverResourceBlockDetails(GetOccHandoverResourceBlockDetailsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:CapacityManagement/getOccHandoverResourceBlockDetails:getOccHandoverResourceBlockDetails
arguments:
# arguments dictionary
The following arguments are supported:
- Occ
Handover stringResource Block Id - The OCID of the OccHandoverResource which is a required query parameter for listing OccHandoverResourceDetails.
- Filters
List<Get
Occ Handover Resource Block Details Filter> - Host
Id string - This fiter is applicable only for COMPUTE namespace. It helps in fetching of all resource block details for which the hostId is equal to the one provided in this query param.
- Occ
Handover stringResource Block Id - The OCID of the OccHandoverResource which is a required query parameter for listing OccHandoverResourceDetails.
- Filters
[]Get
Occ Handover Resource Block Details Filter - Host
Id string - This fiter is applicable only for COMPUTE namespace. It helps in fetching of all resource block details for which the hostId is equal to the one provided in this query param.
- occ
Handover StringResource Block Id - The OCID of the OccHandoverResource which is a required query parameter for listing OccHandoverResourceDetails.
- filters
List<Get
Occ Handover Resource Block Details Filter> - host
Id String - This fiter is applicable only for COMPUTE namespace. It helps in fetching of all resource block details for which the hostId is equal to the one provided in this query param.
- occ
Handover stringResource Block Id - The OCID of the OccHandoverResource which is a required query parameter for listing OccHandoverResourceDetails.
- filters
Get
Occ Handover Resource Block Details Filter[] - host
Id string - This fiter is applicable only for COMPUTE namespace. It helps in fetching of all resource block details for which the hostId is equal to the one provided in this query param.
- occ_
handover_ strresource_ block_ id - The OCID of the OccHandoverResource which is a required query parameter for listing OccHandoverResourceDetails.
- filters
Sequence[capacitymanagement.
Get Occ Handover Resource Block Details Filter] - host_
id str - This fiter is applicable only for COMPUTE namespace. It helps in fetching of all resource block details for which the hostId is equal to the one provided in this query param.
- occ
Handover StringResource Block Id - The OCID of the OccHandoverResource which is a required query parameter for listing OccHandoverResourceDetails.
- filters List<Property Map>
- host
Id String - This fiter is applicable only for COMPUTE namespace. It helps in fetching of all resource block details for which the hostId is equal to the one provided in this query param.
getOccHandoverResourceBlockDetails Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Occ
Handover List<GetResource Block Detail Collections Occ Handover Resource Block Details Occ Handover Resource Block Detail Collection> - The list of occ_handover_resource_block_detail_collection.
- Occ
Handover stringResource Block Id - Filters
List<Get
Occ Handover Resource Block Details Filter> - Host
Id string
- Id string
- The provider-assigned unique ID for this managed resource.
- Occ
Handover []GetResource Block Detail Collections Occ Handover Resource Block Details Occ Handover Resource Block Detail Collection - The list of occ_handover_resource_block_detail_collection.
- Occ
Handover stringResource Block Id - Filters
[]Get
Occ Handover Resource Block Details Filter - Host
Id string
- id String
- The provider-assigned unique ID for this managed resource.
- occ
Handover List<GetResource Block Detail Collections Occ Handover Resource Block Details Occ Handover Resource Block Detail Collection> - The list of occ_handover_resource_block_detail_collection.
- occ
Handover StringResource Block Id - filters
List<Get
Occ Handover Resource Block Details Filter> - host
Id String
- id string
- The provider-assigned unique ID for this managed resource.
- occ
Handover GetResource Block Detail Collections Occ Handover Resource Block Details Occ Handover Resource Block Detail Collection[] - The list of occ_handover_resource_block_detail_collection.
- occ
Handover stringResource Block Id - filters
Get
Occ Handover Resource Block Details Filter[] - host
Id string
- id str
- The provider-assigned unique ID for this managed resource.
- occ_
handover_ Sequence[capacitymanagement.resource_ block_ detail_ collections Get Occ Handover Resource Block Details Occ Handover Resource Block Detail Collection] - The list of occ_handover_resource_block_detail_collection.
- occ_
handover_ strresource_ block_ id - filters
Sequence[capacitymanagement.
Get Occ Handover Resource Block Details Filter] - host_
id str
- id String
- The provider-assigned unique ID for this managed resource.
- occ
Handover List<Property Map>Resource Block Detail Collections - The list of occ_handover_resource_block_detail_collection.
- occ
Handover StringResource Block Id - filters List<Property Map>
- host
Id String
Supporting Types
GetOccHandoverResourceBlockDetailsFilter
GetOccHandoverResourceBlockDetailsOccHandoverResourceBlockDetailCollection
- Items
List<Get
Occ Handover Resource Block Details Occ Handover Resource Block Detail Collection Item> - An array of details about an occ handover resource block.
- Items
[]Get
Occ Handover Resource Block Details Occ Handover Resource Block Detail Collection Item - An array of details about an occ handover resource block.
- items
List<Get
Occ Handover Resource Block Details Occ Handover Resource Block Detail Collection Item> - An array of details about an occ handover resource block.
- items
Get
Occ Handover Resource Block Details Occ Handover Resource Block Detail Collection Item[] - An array of details about an occ handover resource block.
- items
Sequence[capacitymanagement.
Get Occ Handover Resource Block Details Occ Handover Resource Block Detail Collection Item] - An array of details about an occ handover resource block.
- items List<Property Map>
- An array of details about an occ handover resource block.
GetOccHandoverResourceBlockDetailsOccHandoverResourceBlockDetailCollectionItem
- Details Dictionary<string, string>
- A map that contains additional details for a given handover resource. For example for compute namespace this includes host ocid, host serial etc.
- Occ
Resource stringHandover Block Id - The OCID of the occResourceHandoverBlock.
- Details map[string]string
- A map that contains additional details for a given handover resource. For example for compute namespace this includes host ocid, host serial etc.
- Occ
Resource stringHandover Block Id - The OCID of the occResourceHandoverBlock.
- details Map<String,String>
- A map that contains additional details for a given handover resource. For example for compute namespace this includes host ocid, host serial etc.
- occ
Resource StringHandover Block Id - The OCID of the occResourceHandoverBlock.
- details {[key: string]: string}
- A map that contains additional details for a given handover resource. For example for compute namespace this includes host ocid, host serial etc.
- occ
Resource stringHandover Block Id - The OCID of the occResourceHandoverBlock.
- details Mapping[str, str]
- A map that contains additional details for a given handover resource. For example for compute namespace this includes host ocid, host serial etc.
- occ_
resource_ strhandover_ block_ id - The OCID of the occResourceHandoverBlock.
- details Map<String>
- A map that contains additional details for a given handover resource. For example for compute namespace this includes host ocid, host serial etc.
- occ
Resource StringHandover Block Id - The OCID of the occResourceHandoverBlock.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.