ibm.getIsOperatingSystem
Explore with Pulumi AI
Retrieve information of an existing Operating System as a read only data source. For more information, about supported Operating System, see 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.getIsOperatingSystem({
name: "centos-7-amd64",
});
import pulumi
import pulumi_ibm as ibm
example = ibm.get_is_operating_system(name="centos-7-amd64")
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.GetIsOperatingSystem(ctx, &ibm.GetIsOperatingSystemArgs{
Name: "centos-7-amd64",
}, 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.GetIsOperatingSystem.Invoke(new()
{
Name = "centos-7-amd64",
});
});
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.GetIsOperatingSystemArgs;
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.getIsOperatingSystem(GetIsOperatingSystemArgs.builder()
.name("centos-7-amd64")
.build());
}
}
variables:
example:
fn::invoke:
function: ibm:getIsOperatingSystem
arguments:
name: centos-7-amd64
Using getIsOperatingSystem
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 getIsOperatingSystem(args: GetIsOperatingSystemArgs, opts?: InvokeOptions): Promise<GetIsOperatingSystemResult>
function getIsOperatingSystemOutput(args: GetIsOperatingSystemOutputArgs, opts?: InvokeOptions): Output<GetIsOperatingSystemResult>
def get_is_operating_system(id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIsOperatingSystemResult
def get_is_operating_system_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIsOperatingSystemResult]
func GetIsOperatingSystem(ctx *Context, args *GetIsOperatingSystemArgs, opts ...InvokeOption) (*GetIsOperatingSystemResult, error)
func GetIsOperatingSystemOutput(ctx *Context, args *GetIsOperatingSystemOutputArgs, opts ...InvokeOption) GetIsOperatingSystemResultOutput
> Note: This function is named GetIsOperatingSystem
in the Go SDK.
public static class GetIsOperatingSystem
{
public static Task<GetIsOperatingSystemResult> InvokeAsync(GetIsOperatingSystemArgs args, InvokeOptions? opts = null)
public static Output<GetIsOperatingSystemResult> Invoke(GetIsOperatingSystemInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIsOperatingSystemResult> getIsOperatingSystem(GetIsOperatingSystemArgs args, InvokeOptions options)
public static Output<GetIsOperatingSystemResult> getIsOperatingSystem(GetIsOperatingSystemArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getIsOperatingSystem:getIsOperatingSystem
arguments:
# arguments dictionary
The following arguments are supported:
getIsOperatingSystem Result
The following output properties are available:
- Allow
User boolImage Creation - (String) Users may create new images with this operating system.
- Architecture string
- (String) The Operating System architecture.
- Dedicated
Host boolOnly - (String) Images with the Operating System can be used on dedicated hosts or dedicated host groups.
- Display
Name string - (String) A unique, user friendly name for the Operating System.
- Family string
- (String) The name of the software family the Operating System belongs to.
- Href string
- (String) The URL of an Operating System.
- Id string
- (String) The globally unique name of an Operating System.
- Name string
- (String) The global unique name of an Operating System.
- User
Data stringFormat - (String) The user data format for this image.
- Vendor string
- (String) The vendor of the Operating System.
- Version string
- (String) The major release version of an Operating System.
- Allow
User boolImage Creation - (String) Users may create new images with this operating system.
- Architecture string
- (String) The Operating System architecture.
- Dedicated
Host boolOnly - (String) Images with the Operating System can be used on dedicated hosts or dedicated host groups.
- Display
Name string - (String) A unique, user friendly name for the Operating System.
- Family string
- (String) The name of the software family the Operating System belongs to.
- Href string
- (String) The URL of an Operating System.
- Id string
- (String) The globally unique name of an Operating System.
- Name string
- (String) The global unique name of an Operating System.
- User
Data stringFormat - (String) The user data format for this image.
- Vendor string
- (String) The vendor of the Operating System.
- Version string
- (String) The major release version of an Operating System.
- allow
User BooleanImage Creation - (String) Users may create new images with this operating system.
- architecture String
- (String) The Operating System architecture.
- dedicated
Host BooleanOnly - (String) Images with the Operating System can be used on dedicated hosts or dedicated host groups.
- display
Name String - (String) A unique, user friendly name for the Operating System.
- family String
- (String) The name of the software family the Operating System belongs to.
- href String
- (String) The URL of an Operating System.
- id String
- (String) The globally unique name of an Operating System.
- name String
- (String) The global unique name of an Operating System.
- user
Data StringFormat - (String) The user data format for this image.
- vendor String
- (String) The vendor of the Operating System.
- version String
- (String) The major release version of an Operating System.
- allow
User booleanImage Creation - (String) Users may create new images with this operating system.
- architecture string
- (String) The Operating System architecture.
- dedicated
Host booleanOnly - (String) Images with the Operating System can be used on dedicated hosts or dedicated host groups.
- display
Name string - (String) A unique, user friendly name for the Operating System.
- family string
- (String) The name of the software family the Operating System belongs to.
- href string
- (String) The URL of an Operating System.
- id string
- (String) The globally unique name of an Operating System.
- name string
- (String) The global unique name of an Operating System.
- user
Data stringFormat - (String) The user data format for this image.
- vendor string
- (String) The vendor of the Operating System.
- version string
- (String) The major release version of an Operating System.
- allow_
user_ boolimage_ creation - (String) Users may create new images with this operating system.
- architecture str
- (String) The Operating System architecture.
- dedicated_
host_ boolonly - (String) Images with the Operating System can be used on dedicated hosts or dedicated host groups.
- display_
name str - (String) A unique, user friendly name for the Operating System.
- family str
- (String) The name of the software family the Operating System belongs to.
- href str
- (String) The URL of an Operating System.
- id str
- (String) The globally unique name of an Operating System.
- name str
- (String) The global unique name of an Operating System.
- user_
data_ strformat - (String) The user data format for this image.
- vendor str
- (String) The vendor of the Operating System.
- version str
- (String) The major release version of an Operating System.
- allow
User BooleanImage Creation - (String) Users may create new images with this operating system.
- architecture String
- (String) The Operating System architecture.
- dedicated
Host BooleanOnly - (String) Images with the Operating System can be used on dedicated hosts or dedicated host groups.
- display
Name String - (String) A unique, user friendly name for the Operating System.
- family String
- (String) The name of the software family the Operating System belongs to.
- href String
- (String) The URL of an Operating System.
- id String
- (String) The globally unique name of an Operating System.
- name String
- (String) The global unique name of an Operating System.
- user
Data StringFormat - (String) The user data format for this image.
- vendor String
- (String) The vendor of the Operating System.
- version String
- (String) The major release version of an Operating System.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.