ibm.getIsImageBareMetalServerProfiles
Explore with Pulumi AI
Provides a read-only data source to retrieve information about an ImageBareMetalServerProfileCollection.For more information, about infrastructure image bare metal server profiles, see IBM Cloud Importing and managing custom images.
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.getIsImageBareMetalServerProfiles({
identifier: "ibm_is_image.isExampleImage.id",
});
import pulumi
import pulumi_ibm as ibm
example = ibm.get_is_image_bare_metal_server_profiles(identifier="ibm_is_image.isExampleImage.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.GetIsImageBareMetalServerProfiles(ctx, &ibm.GetIsImageBareMetalServerProfilesArgs{
Identifier: "ibm_is_image.isExampleImage.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.GetIsImageBareMetalServerProfiles.Invoke(new()
{
Identifier = "ibm_is_image.isExampleImage.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.GetIsImageBareMetalServerProfilesArgs;
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.getIsImageBareMetalServerProfiles(GetIsImageBareMetalServerProfilesArgs.builder()
.identifier("ibm_is_image.isExampleImage.id")
.build());
}
}
variables:
example:
fn::invoke:
function: ibm:getIsImageBareMetalServerProfiles
arguments:
identifier: ibm_is_image.isExampleImage.id
Using getIsImageBareMetalServerProfiles
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 getIsImageBareMetalServerProfiles(args: GetIsImageBareMetalServerProfilesArgs, opts?: InvokeOptions): Promise<GetIsImageBareMetalServerProfilesResult>
function getIsImageBareMetalServerProfilesOutput(args: GetIsImageBareMetalServerProfilesOutputArgs, opts?: InvokeOptions): Output<GetIsImageBareMetalServerProfilesResult>
def get_is_image_bare_metal_server_profiles(id: Optional[str] = None,
identifier: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIsImageBareMetalServerProfilesResult
def get_is_image_bare_metal_server_profiles_output(id: Optional[pulumi.Input[str]] = None,
identifier: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIsImageBareMetalServerProfilesResult]
func GetIsImageBareMetalServerProfiles(ctx *Context, args *GetIsImageBareMetalServerProfilesArgs, opts ...InvokeOption) (*GetIsImageBareMetalServerProfilesResult, error)
func GetIsImageBareMetalServerProfilesOutput(ctx *Context, args *GetIsImageBareMetalServerProfilesOutputArgs, opts ...InvokeOption) GetIsImageBareMetalServerProfilesResultOutput
> Note: This function is named GetIsImageBareMetalServerProfiles
in the Go SDK.
public static class GetIsImageBareMetalServerProfiles
{
public static Task<GetIsImageBareMetalServerProfilesResult> InvokeAsync(GetIsImageBareMetalServerProfilesArgs args, InvokeOptions? opts = null)
public static Output<GetIsImageBareMetalServerProfilesResult> Invoke(GetIsImageBareMetalServerProfilesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIsImageBareMetalServerProfilesResult> getIsImageBareMetalServerProfiles(GetIsImageBareMetalServerProfilesArgs args, InvokeOptions options)
public static Output<GetIsImageBareMetalServerProfilesResult> getIsImageBareMetalServerProfiles(GetIsImageBareMetalServerProfilesArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getIsImageBareMetalServerProfiles:getIsImageBareMetalServerProfiles
arguments:
# arguments dictionary
The following arguments are supported:
- Identifier string
- The image identifier.
- Id string
- The unique identifier of the ImageBareMetalServerProfileCollection.
- Identifier string
- The image identifier.
- Id string
- The unique identifier of the ImageBareMetalServerProfileCollection.
- identifier String
- The image identifier.
- id String
- The unique identifier of the ImageBareMetalServerProfileCollection.
- identifier string
- The image identifier.
- id string
- The unique identifier of the ImageBareMetalServerProfileCollection.
- identifier str
- The image identifier.
- id str
- The unique identifier of the ImageBareMetalServerProfileCollection.
- identifier String
- The image identifier.
- id String
- The unique identifier of the ImageBareMetalServerProfileCollection.
getIsImageBareMetalServerProfiles Result
The following output properties are available:
- Bare
Metal List<GetServer Profiles Is Image Bare Metal Server Profiles Bare Metal Server Profile> - (List) A page of bare metal server profiles compatible with the image.
- Id string
- The unique identifier of the ImageBareMetalServerProfileCollection.
- Identifier string
- Bare
Metal []GetServer Profiles Is Image Bare Metal Server Profiles Bare Metal Server Profile - (List) A page of bare metal server profiles compatible with the image.
- Id string
- The unique identifier of the ImageBareMetalServerProfileCollection.
- Identifier string
- bare
Metal List<GetServer Profiles Is Image Bare Metal Server Profiles Bare Metal Server Profile> - (List) A page of bare metal server profiles compatible with the image.
- id String
- The unique identifier of the ImageBareMetalServerProfileCollection.
- identifier String
- bare
Metal GetServer Profiles Is Image Bare Metal Server Profiles Bare Metal Server Profile[] - (List) A page of bare metal server profiles compatible with the image.
- id string
- The unique identifier of the ImageBareMetalServerProfileCollection.
- identifier string
- bare_
metal_ Sequence[Getserver_ profiles Is Image Bare Metal Server Profiles Bare Metal Server Profile] - (List) A page of bare metal server profiles compatible with the image.
- id str
- The unique identifier of the ImageBareMetalServerProfileCollection.
- identifier str
- bare
Metal List<Property Map>Server Profiles - (List) A page of bare metal server profiles compatible with the image.
- id String
- The unique identifier of the ImageBareMetalServerProfileCollection.
- identifier String
Supporting Types
GetIsImageBareMetalServerProfilesBareMetalServerProfile
- Href string
- (String) The URL for this bare metal server profile.
- Name string
- (String) The name for this bare metal server profile.
- Resource
Type string - (String) The resource type.
- Href string
- (String) The URL for this bare metal server profile.
- Name string
- (String) The name for this bare metal server profile.
- Resource
Type string - (String) The resource type.
- href String
- (String) The URL for this bare metal server profile.
- name String
- (String) The name for this bare metal server profile.
- resource
Type String - (String) The resource type.
- href string
- (String) The URL for this bare metal server profile.
- name string
- (String) The name for this bare metal server profile.
- resource
Type string - (String) The resource type.
- href str
- (String) The URL for this bare metal server profile.
- name str
- (String) The name for this bare metal server profile.
- resource_
type str - (String) The resource type.
- href String
- (String) The URL for this bare metal server profile.
- name String
- (String) The name for this bare metal server 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.