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

oci.CapacityManagement.getOccHandoverResourceBlockDetails

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 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:

    OccHandoverResourceBlockId string
    The OCID of the OccHandoverResource which is a required query parameter for listing OccHandoverResourceDetails.
    Filters List<GetOccHandoverResourceBlockDetailsFilter>
    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 []GetOccHandoverResourceBlockDetailsFilter
    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<GetOccHandoverResourceBlockDetailsFilter>
    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 GetOccHandoverResourceBlockDetailsFilter[]
    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.GetOccHandoverResourceBlockDetailsFilter]
    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.

    getOccHandoverResourceBlockDetails Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    OccHandoverResourceBlockDetailCollections List<GetOccHandoverResourceBlockDetailsOccHandoverResourceBlockDetailCollection>
    The list of occ_handover_resource_block_detail_collection.
    OccHandoverResourceBlockId string
    Filters List<GetOccHandoverResourceBlockDetailsFilter>
    HostId string
    Id string
    The provider-assigned unique ID for this managed resource.
    OccHandoverResourceBlockDetailCollections []GetOccHandoverResourceBlockDetailsOccHandoverResourceBlockDetailCollection
    The list of occ_handover_resource_block_detail_collection.
    OccHandoverResourceBlockId string
    Filters []GetOccHandoverResourceBlockDetailsFilter
    HostId string
    id String
    The provider-assigned unique ID for this managed resource.
    occHandoverResourceBlockDetailCollections List<GetOccHandoverResourceBlockDetailsOccHandoverResourceBlockDetailCollection>
    The list of occ_handover_resource_block_detail_collection.
    occHandoverResourceBlockId String
    filters List<GetOccHandoverResourceBlockDetailsFilter>
    hostId String
    id string
    The provider-assigned unique ID for this managed resource.
    occHandoverResourceBlockDetailCollections GetOccHandoverResourceBlockDetailsOccHandoverResourceBlockDetailCollection[]
    The list of occ_handover_resource_block_detail_collection.
    occHandoverResourceBlockId string
    filters GetOccHandoverResourceBlockDetailsFilter[]
    hostId string
    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

    GetOccHandoverResourceBlockDetailsFilter

    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

    GetOccHandoverResourceBlockDetailsOccHandoverResourceBlockDetailCollection

    Items []GetOccHandoverResourceBlockDetailsOccHandoverResourceBlockDetailCollectionItem
    An array of details about an occ handover resource block.
    items GetOccHandoverResourceBlockDetailsOccHandoverResourceBlockDetailCollectionItem[]
    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.
    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