Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.CapacityManagement.getInternalOccHandoverResourceBlockDetails
Explore with Pulumi AI
This data source provides the list of Internal 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 testInternalOccHandoverResourceBlockDetails = oci.CapacityManagement.getInternalOccHandoverResourceBlockDetails({
occHandoverResourceBlockId: testOccHandoverResourceBlock.id,
hostId: testHost.id,
});
import pulumi
import pulumi_oci as oci
test_internal_occ_handover_resource_block_details = oci.CapacityManagement.get_internal_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.GetInternalOccHandoverResourceBlockDetails(ctx, &capacitymanagement.GetInternalOccHandoverResourceBlockDetailsArgs{
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 testInternalOccHandoverResourceBlockDetails = Oci.CapacityManagement.GetInternalOccHandoverResourceBlockDetails.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.GetInternalOccHandoverResourceBlockDetailsArgs;
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 testInternalOccHandoverResourceBlockDetails = CapacityManagementFunctions.getInternalOccHandoverResourceBlockDetails(GetInternalOccHandoverResourceBlockDetailsArgs.builder()
.occHandoverResourceBlockId(testOccHandoverResourceBlock.id())
.hostId(testHost.id())
.build());
}
}
variables:
testInternalOccHandoverResourceBlockDetails:
fn::invoke:
Function: oci:CapacityManagement:getInternalOccHandoverResourceBlockDetails
Arguments:
occHandoverResourceBlockId: ${testOccHandoverResourceBlock.id}
hostId: ${testHost.id}
Using getInternalOccHandoverResourceBlockDetails
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 getInternalOccHandoverResourceBlockDetails(args: GetInternalOccHandoverResourceBlockDetailsArgs, opts?: InvokeOptions): Promise<GetInternalOccHandoverResourceBlockDetailsResult>
function getInternalOccHandoverResourceBlockDetailsOutput(args: GetInternalOccHandoverResourceBlockDetailsOutputArgs, opts?: InvokeOptions): Output<GetInternalOccHandoverResourceBlockDetailsResult>
def get_internal_occ_handover_resource_block_details(filters: Optional[Sequence[_capacitymanagement.GetInternalOccHandoverResourceBlockDetailsFilter]] = None,
host_id: Optional[str] = None,
occ_handover_resource_block_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetInternalOccHandoverResourceBlockDetailsResult
def get_internal_occ_handover_resource_block_details_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_capacitymanagement.GetInternalOccHandoverResourceBlockDetailsFilterArgs]]]] = None,
host_id: Optional[pulumi.Input[str]] = None,
occ_handover_resource_block_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetInternalOccHandoverResourceBlockDetailsResult]
func GetInternalOccHandoverResourceBlockDetails(ctx *Context, args *GetInternalOccHandoverResourceBlockDetailsArgs, opts ...InvokeOption) (*GetInternalOccHandoverResourceBlockDetailsResult, error)
func GetInternalOccHandoverResourceBlockDetailsOutput(ctx *Context, args *GetInternalOccHandoverResourceBlockDetailsOutputArgs, opts ...InvokeOption) GetInternalOccHandoverResourceBlockDetailsResultOutput
> Note: This function is named GetInternalOccHandoverResourceBlockDetails
in the Go SDK.
public static class GetInternalOccHandoverResourceBlockDetails
{
public static Task<GetInternalOccHandoverResourceBlockDetailsResult> InvokeAsync(GetInternalOccHandoverResourceBlockDetailsArgs args, InvokeOptions? opts = null)
public static Output<GetInternalOccHandoverResourceBlockDetailsResult> Invoke(GetInternalOccHandoverResourceBlockDetailsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetInternalOccHandoverResourceBlockDetailsResult> getInternalOccHandoverResourceBlockDetails(GetInternalOccHandoverResourceBlockDetailsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:CapacityManagement/getInternalOccHandoverResourceBlockDetails:getInternalOccHandoverResourceBlockDetails
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
Internal 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
Internal 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
Internal 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
Internal 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 Internal 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.
getInternalOccHandoverResourceBlockDetails 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 Internal 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
Internal 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 Internal 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
Internal 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 Internal 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
Internal 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 Internal 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
Internal 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 Internal 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 Internal 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
GetInternalOccHandoverResourceBlockDetailsFilter
GetInternalOccHandoverResourceBlockDetailsOccHandoverResourceBlockDetailCollection
- Items
List<Get
Internal Occ Handover Resource Block Details Occ Handover Resource Block Detail Collection Item> - An array of details about an occ handover resource block.
- Items
[]Get
Internal 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
Internal Occ Handover Resource Block Details Occ Handover Resource Block Detail Collection Item> - An array of details about an occ handover resource block.
- items
Get
Internal 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 Internal 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.
GetInternalOccHandoverResourceBlockDetailsOccHandoverResourceBlockDetailCollectionItem
- 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.