1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. CapacityManagement
  5. getInternalOccHandoverResourceBlockDetails
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.CapacityManagement.getInternalOccHandoverResourceBlockDetails

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    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:

    OccHandoverResourceBlockId string
    The OCID of the OccHandoverResource which is a required query parameter for listing OccHandoverResourceDetails.
    Filters List<GetInternalOccHandoverResourceBlockDetailsFilter>
    HostId 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.
    OccHandoverResourceBlockId string
    The OCID of the OccHandoverResource which is a required query parameter for listing OccHandoverResourceDetails.
    Filters []GetInternalOccHandoverResourceBlockDetailsFilter
    HostId 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.
    occHandoverResourceBlockId String
    The OCID of the OccHandoverResource which is a required query parameter for listing OccHandoverResourceDetails.
    filters List<GetInternalOccHandoverResourceBlockDetailsFilter>
    hostId 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.
    occHandoverResourceBlockId string
    The OCID of the OccHandoverResource which is a required query parameter for listing OccHandoverResourceDetails.
    filters GetInternalOccHandoverResourceBlockDetailsFilter[]
    hostId 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_resource_block_id str
    The OCID of the OccHandoverResource which is a required query parameter for listing OccHandoverResourceDetails.
    filters Sequence[capacitymanagement.GetInternalOccHandoverResourceBlockDetailsFilter]
    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.
    occHandoverResourceBlockId String
    The OCID of the OccHandoverResource which is a required query parameter for listing OccHandoverResourceDetails.
    filters List<Property Map>
    hostId 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.
    occHandoverResourceBlockDetailCollections List<Property Map>
    The list of occ_handover_resource_block_detail_collection.
    occHandoverResourceBlockId String
    filters List<Property Map>
    hostId String

    Supporting Types

    GetInternalOccHandoverResourceBlockDetailsFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetInternalOccHandoverResourceBlockDetailsOccHandoverResourceBlockDetailCollection

    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.
    OccResourceHandoverBlockId string
    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.
    OccResourceHandoverBlockId string
    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.
    occResourceHandoverBlockId String
    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.
    occResourceHandoverBlockId string
    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_handover_block_id str
    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.
    occResourceHandoverBlockId String
    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.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi