1. Packages
  2. Ibm Provider
  3. API Docs
  4. getIsOperatingSystems
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getIsOperatingSystems

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Retrieve information of an existing IBM Cloud Infrastructure Operating Systems 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.getIsOperatingSystems({});
    
    import pulumi
    import pulumi_ibm as ibm
    
    example = ibm.get_is_operating_systems()
    
    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.GetIsOperatingSystems(ctx, &ibm.GetIsOperatingSystemsArgs{}, 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.GetIsOperatingSystems.Invoke();
    
    });
    
    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.GetIsOperatingSystemsArgs;
    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.getIsOperatingSystems();
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ibm:getIsOperatingSystems
          arguments: {}
    

    Using getIsOperatingSystems

    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 getIsOperatingSystems(args: GetIsOperatingSystemsArgs, opts?: InvokeOptions): Promise<GetIsOperatingSystemsResult>
    function getIsOperatingSystemsOutput(args: GetIsOperatingSystemsOutputArgs, opts?: InvokeOptions): Output<GetIsOperatingSystemsResult>
    def get_is_operating_systems(id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetIsOperatingSystemsResult
    def get_is_operating_systems_output(id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetIsOperatingSystemsResult]
    func GetIsOperatingSystems(ctx *Context, args *GetIsOperatingSystemsArgs, opts ...InvokeOption) (*GetIsOperatingSystemsResult, error)
    func GetIsOperatingSystemsOutput(ctx *Context, args *GetIsOperatingSystemsOutputArgs, opts ...InvokeOption) GetIsOperatingSystemsResultOutput

    > Note: This function is named GetIsOperatingSystems in the Go SDK.

    public static class GetIsOperatingSystems 
    {
        public static Task<GetIsOperatingSystemsResult> InvokeAsync(GetIsOperatingSystemsArgs args, InvokeOptions? opts = null)
        public static Output<GetIsOperatingSystemsResult> Invoke(GetIsOperatingSystemsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIsOperatingSystemsResult> getIsOperatingSystems(GetIsOperatingSystemsArgs args, InvokeOptions options)
    public static Output<GetIsOperatingSystemsResult> getIsOperatingSystems(GetIsOperatingSystemsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIsOperatingSystems:getIsOperatingSystems
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Id string
    id String
    id string
    id str
    id String

    getIsOperatingSystems Result

    The following output properties are available:

    Id string
    OperatingSystems List<GetIsOperatingSystemsOperatingSystem>
    (List) List of all Operating Systems in the IBM Cloud Infrastructure region.
    Id string
    OperatingSystems []GetIsOperatingSystemsOperatingSystem
    (List) List of all Operating Systems in the IBM Cloud Infrastructure region.
    id String
    operatingSystems List<GetIsOperatingSystemsOperatingSystem>
    (List) List of all Operating Systems in the IBM Cloud Infrastructure region.
    id string
    operatingSystems GetIsOperatingSystemsOperatingSystem[]
    (List) List of all Operating Systems in the IBM Cloud Infrastructure region.
    id str
    operating_systems Sequence[GetIsOperatingSystemsOperatingSystem]
    (List) List of all Operating Systems in the IBM Cloud Infrastructure region.
    id String
    operatingSystems List<Property Map>
    (List) List of all Operating Systems in the IBM Cloud Infrastructure region.

    Supporting Types

    GetIsOperatingSystemsOperatingSystem

    AllowUserImageCreation bool
    (String) Users may create new images with this operating system.
    Architecture string
    (String) The Operating System architecture.
    DedicatedHostOnly bool
    (String) Images with this Operating System can only be used on dedicated hosts or dedicated host groups.
    DisplayName string
    (String) A unique, display-friendly name for the Operating System.
    Family string
    (String) The name of the software family this Operating System belongs to.
    Href string
    (String) The URL for this Operating System.
    Name string
    (String) The globally unique name for this Operating System.
    UserDataFormat string
    (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 this Operating System.
    AllowUserImageCreation bool
    (String) Users may create new images with this operating system.
    Architecture string
    (String) The Operating System architecture.
    DedicatedHostOnly bool
    (String) Images with this Operating System can only be used on dedicated hosts or dedicated host groups.
    DisplayName string
    (String) A unique, display-friendly name for the Operating System.
    Family string
    (String) The name of the software family this Operating System belongs to.
    Href string
    (String) The URL for this Operating System.
    Name string
    (String) The globally unique name for this Operating System.
    UserDataFormat string
    (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 this Operating System.
    allowUserImageCreation Boolean
    (String) Users may create new images with this operating system.
    architecture String
    (String) The Operating System architecture.
    dedicatedHostOnly Boolean
    (String) Images with this Operating System can only be used on dedicated hosts or dedicated host groups.
    displayName String
    (String) A unique, display-friendly name for the Operating System.
    family String
    (String) The name of the software family this Operating System belongs to.
    href String
    (String) The URL for this Operating System.
    name String
    (String) The globally unique name for this Operating System.
    userDataFormat String
    (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 this Operating System.
    allowUserImageCreation boolean
    (String) Users may create new images with this operating system.
    architecture string
    (String) The Operating System architecture.
    dedicatedHostOnly boolean
    (String) Images with this Operating System can only be used on dedicated hosts or dedicated host groups.
    displayName string
    (String) A unique, display-friendly name for the Operating System.
    family string
    (String) The name of the software family this Operating System belongs to.
    href string
    (String) The URL for this Operating System.
    name string
    (String) The globally unique name for this Operating System.
    userDataFormat string
    (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 this Operating System.
    allow_user_image_creation bool
    (String) Users may create new images with this operating system.
    architecture str
    (String) The Operating System architecture.
    dedicated_host_only bool
    (String) Images with this Operating System can only be used on dedicated hosts or dedicated host groups.
    display_name str
    (String) A unique, display-friendly name for the Operating System.
    family str
    (String) The name of the software family this Operating System belongs to.
    href str
    (String) The URL for this Operating System.
    name str
    (String) The globally unique name for this Operating System.
    user_data_format str
    (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 this Operating System.
    allowUserImageCreation Boolean
    (String) Users may create new images with this operating system.
    architecture String
    (String) The Operating System architecture.
    dedicatedHostOnly Boolean
    (String) Images with this Operating System can only be used on dedicated hosts or dedicated host groups.
    displayName String
    (String) A unique, display-friendly name for the Operating System.
    family String
    (String) The name of the software family this Operating System belongs to.
    href String
    (String) The URL for this Operating System.
    name String
    (String) The globally unique name for this Operating System.
    userDataFormat String
    (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 this Operating System.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud