ibm.getIsVolumeInstanceProfiles
Explore with Pulumi AI
Provides a read-only data source to retrieve information about an VolumeInstanceProfileCollection.For more information, about the volume concepts, see expandable volume concepts for VPC..
Note:
VPC infrastructure services are a regional specific based endpoint, by default targets to us-south
. Please make sure to target right region in the provider block as shown in the provider.tf
file, if VPC service is created in region other than us-south
.
provider.tf
import * as pulumi from "@pulumi/pulumi";
import pulumi
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
return await Deployment.RunAsync(() =>
{
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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) {
}
}
{}
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const example = ibm.getIsVolumeInstanceProfiles({
identifier: "ibm_is_instance.example.boot_volume.0.volume_id",
});
import pulumi
import pulumi_ibm as ibm
example = ibm.get_is_volume_instance_profiles(identifier="ibm_is_instance.example.boot_volume.0.volume_id")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.GetIsVolumeInstanceProfiles(ctx, &ibm.GetIsVolumeInstanceProfilesArgs{
Identifier: "ibm_is_instance.example.boot_volume.0.volume_id",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var example = Ibm.GetIsVolumeInstanceProfiles.Invoke(new()
{
Identifier = "ibm_is_instance.example.boot_volume.0.volume_id",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetIsVolumeInstanceProfilesArgs;
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 example = IbmFunctions.getIsVolumeInstanceProfiles(GetIsVolumeInstanceProfilesArgs.builder()
.identifier("ibm_is_instance.example.boot_volume.0.volume_id")
.build());
}
}
variables:
example:
fn::invoke:
function: ibm:getIsVolumeInstanceProfiles
arguments:
identifier: ibm_is_instance.example.boot_volume.0.volume_id
Using getIsVolumeInstanceProfiles
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 getIsVolumeInstanceProfiles(args: GetIsVolumeInstanceProfilesArgs, opts?: InvokeOptions): Promise<GetIsVolumeInstanceProfilesResult>
function getIsVolumeInstanceProfilesOutput(args: GetIsVolumeInstanceProfilesOutputArgs, opts?: InvokeOptions): Output<GetIsVolumeInstanceProfilesResult>
def get_is_volume_instance_profiles(id: Optional[str] = None,
identifier: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIsVolumeInstanceProfilesResult
def get_is_volume_instance_profiles_output(id: Optional[pulumi.Input[str]] = None,
identifier: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIsVolumeInstanceProfilesResult]
func GetIsVolumeInstanceProfiles(ctx *Context, args *GetIsVolumeInstanceProfilesArgs, opts ...InvokeOption) (*GetIsVolumeInstanceProfilesResult, error)
func GetIsVolumeInstanceProfilesOutput(ctx *Context, args *GetIsVolumeInstanceProfilesOutputArgs, opts ...InvokeOption) GetIsVolumeInstanceProfilesResultOutput
> Note: This function is named GetIsVolumeInstanceProfiles
in the Go SDK.
public static class GetIsVolumeInstanceProfiles
{
public static Task<GetIsVolumeInstanceProfilesResult> InvokeAsync(GetIsVolumeInstanceProfilesArgs args, InvokeOptions? opts = null)
public static Output<GetIsVolumeInstanceProfilesResult> Invoke(GetIsVolumeInstanceProfilesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIsVolumeInstanceProfilesResult> getIsVolumeInstanceProfiles(GetIsVolumeInstanceProfilesArgs args, InvokeOptions options)
public static Output<GetIsVolumeInstanceProfilesResult> getIsVolumeInstanceProfiles(GetIsVolumeInstanceProfilesArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getIsVolumeInstanceProfiles:getIsVolumeInstanceProfiles
arguments:
# arguments dictionary
The following arguments are supported:
- Identifier string
- The volume identifier.
- Id string
- The unique identifier of the VolumeInstanceProfileCollection.
- Identifier string
- The volume identifier.
- Id string
- The unique identifier of the VolumeInstanceProfileCollection.
- identifier String
- The volume identifier.
- id String
- The unique identifier of the VolumeInstanceProfileCollection.
- identifier string
- The volume identifier.
- id string
- The unique identifier of the VolumeInstanceProfileCollection.
- identifier str
- The volume identifier.
- id str
- The unique identifier of the VolumeInstanceProfileCollection.
- identifier String
- The volume identifier.
- id String
- The unique identifier of the VolumeInstanceProfileCollection.
getIsVolumeInstanceProfiles Result
The following output properties are available:
- Id string
- The unique identifier of the VolumeInstanceProfileCollection.
- Identifier string
- Instance
Profiles List<GetIs Volume Instance Profiles Instance Profile> - (List) A page of instance profiles compatible with the volume.
- Id string
- The unique identifier of the VolumeInstanceProfileCollection.
- Identifier string
- Instance
Profiles []GetIs Volume Instance Profiles Instance Profile - (List) A page of instance profiles compatible with the volume.
- id String
- The unique identifier of the VolumeInstanceProfileCollection.
- identifier String
- instance
Profiles List<GetIs Volume Instance Profiles Instance Profile> - (List) A page of instance profiles compatible with the volume.
- id string
- The unique identifier of the VolumeInstanceProfileCollection.
- identifier string
- instance
Profiles GetIs Volume Instance Profiles Instance Profile[] - (List) A page of instance profiles compatible with the volume.
- id str
- The unique identifier of the VolumeInstanceProfileCollection.
- identifier str
- instance_
profiles Sequence[GetIs Volume Instance Profiles Instance Profile] - (List) A page of instance profiles compatible with the volume.
- id String
- The unique identifier of the VolumeInstanceProfileCollection.
- identifier String
- instance
Profiles List<Property Map> - (List) A page of instance profiles compatible with the volume.
Supporting Types
GetIsVolumeInstanceProfilesInstanceProfile
- Href string
- (String) The URL for this virtual server instance profile.
- Name string
- (String) The globally unique name for this virtual server instance profile.
- Resource
Type string - (String) The resource type.
- Href string
- (String) The URL for this virtual server instance profile.
- Name string
- (String) The globally unique name for this virtual server instance profile.
- Resource
Type string - (String) The resource type.
- href String
- (String) The URL for this virtual server instance profile.
- name String
- (String) The globally unique name for this virtual server instance profile.
- resource
Type String - (String) The resource type.
- href string
- (String) The URL for this virtual server instance profile.
- name string
- (String) The globally unique name for this virtual server instance profile.
- resource
Type string - (String) The resource type.
- href str
- (String) The URL for this virtual server instance profile.
- name str
- (String) The globally unique name for this virtual server instance profile.
- resource_
type str - (String) The resource type.
- href String
- (String) The URL for this virtual server instance profile.
- name String
- (String) The globally unique name for this virtual server instance profile.
- resource
Type String - (String) The resource type.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.