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

ibm.getCis

Explore with Pulumi AI

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

    Retrieve information about an existing CIS resource. This allows CIS sub resources to be added to an existing CIS instance. This includes domains, DNS records, pools, healthchecks and Global Load Balancers. For more information, about CIS instance, see getting started with CIS.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const cisInstance = ibm.getCis({
        name: "test",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    cis_instance = ibm.get_cis(name="test")
    
    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.LookupCis(ctx, &ibm.LookupCisArgs{
    			Name: "test",
    		}, 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 cisInstance = Ibm.GetCis.Invoke(new()
        {
            Name = "test",
        });
    
    });
    
    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.GetCisArgs;
    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 cisInstance = IbmFunctions.getCis(GetCisArgs.builder()
                .name("test")
                .build());
    
        }
    }
    
    variables:
      cisInstance:
        fn::invoke:
          function: ibm:getCis
          arguments:
            name: test
    

    Using getCis

    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 getCis(args: GetCisArgs, opts?: InvokeOptions): Promise<GetCisResult>
    function getCisOutput(args: GetCisOutputArgs, opts?: InvokeOptions): Output<GetCisResult>
    def get_cis(id: Optional[str] = None,
                name: Optional[str] = None,
                resource_group_id: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetCisResult
    def get_cis_output(id: Optional[pulumi.Input[str]] = None,
                name: Optional[pulumi.Input[str]] = None,
                resource_group_id: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetCisResult]
    func LookupCis(ctx *Context, args *LookupCisArgs, opts ...InvokeOption) (*LookupCisResult, error)
    func LookupCisOutput(ctx *Context, args *LookupCisOutputArgs, opts ...InvokeOption) LookupCisResultOutput

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

    public static class GetCis 
    {
        public static Task<GetCisResult> InvokeAsync(GetCisArgs args, InvokeOptions? opts = null)
        public static Output<GetCisResult> Invoke(GetCisInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCisResult> getCis(GetCisArgs args, InvokeOptions options)
    public static Output<GetCisResult> getCis(GetCisArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getCis:getCis
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of a CIS instance.
    Id string
    (String) The CRN of your instance.
    ResourceGroupId string
    The ID of the resource group where you want to create the service. You can retrieve the value from data source ibm.ResourceGroup. If not provided creates the service in default resource group.
    Name string
    The name of a CIS instance.
    Id string
    (String) The CRN of your instance.
    ResourceGroupId string
    The ID of the resource group where you want to create the service. You can retrieve the value from data source ibm.ResourceGroup. If not provided creates the service in default resource group.
    name String
    The name of a CIS instance.
    id String
    (String) The CRN of your instance.
    resourceGroupId String
    The ID of the resource group where you want to create the service. You can retrieve the value from data source ibm.ResourceGroup. If not provided creates the service in default resource group.
    name string
    The name of a CIS instance.
    id string
    (String) The CRN of your instance.
    resourceGroupId string
    The ID of the resource group where you want to create the service. You can retrieve the value from data source ibm.ResourceGroup. If not provided creates the service in default resource group.
    name str
    The name of a CIS instance.
    id str
    (String) The CRN of your instance.
    resource_group_id str
    The ID of the resource group where you want to create the service. You can retrieve the value from data source ibm.ResourceGroup. If not provided creates the service in default resource group.
    name String
    The name of a CIS instance.
    id String
    (String) The CRN of your instance.
    resourceGroupId String
    The ID of the resource group where you want to create the service. You can retrieve the value from data source ibm.ResourceGroup. If not provided creates the service in default resource group.

    getCis Result

    The following output properties are available:

    Guid string
    (String) The unique identifier of the instance.
    Id string
    (String) The CRN of your instance.
    Location string
    (String) The location of your instance.
    Name string
    Plan string
    (String) The service plan for the instance.
    ResourceControllerUrl string
    ResourceCrn string
    ResourceGroupName string
    ResourceName string
    ResourceStatus string
    Service string
    (String) The service type of the instance.
    Status string
    (String) Status of the resource instance.
    ResourceGroupId string
    Guid string
    (String) The unique identifier of the instance.
    Id string
    (String) The CRN of your instance.
    Location string
    (String) The location of your instance.
    Name string
    Plan string
    (String) The service plan for the instance.
    ResourceControllerUrl string
    ResourceCrn string
    ResourceGroupName string
    ResourceName string
    ResourceStatus string
    Service string
    (String) The service type of the instance.
    Status string
    (String) Status of the resource instance.
    ResourceGroupId string
    guid String
    (String) The unique identifier of the instance.
    id String
    (String) The CRN of your instance.
    location String
    (String) The location of your instance.
    name String
    plan String
    (String) The service plan for the instance.
    resourceControllerUrl String
    resourceCrn String
    resourceGroupName String
    resourceName String
    resourceStatus String
    service String
    (String) The service type of the instance.
    status String
    (String) Status of the resource instance.
    resourceGroupId String
    guid string
    (String) The unique identifier of the instance.
    id string
    (String) The CRN of your instance.
    location string
    (String) The location of your instance.
    name string
    plan string
    (String) The service plan for the instance.
    resourceControllerUrl string
    resourceCrn string
    resourceGroupName string
    resourceName string
    resourceStatus string
    service string
    (String) The service type of the instance.
    status string
    (String) Status of the resource instance.
    resourceGroupId string
    guid str
    (String) The unique identifier of the instance.
    id str
    (String) The CRN of your instance.
    location str
    (String) The location of your instance.
    name str
    plan str
    (String) The service plan for the instance.
    resource_controller_url str
    resource_crn str
    resource_group_name str
    resource_name str
    resource_status str
    service str
    (String) The service type of the instance.
    status str
    (String) Status of the resource instance.
    resource_group_id str
    guid String
    (String) The unique identifier of the instance.
    id String
    (String) The CRN of your instance.
    location String
    (String) The location of your instance.
    name String
    plan String
    (String) The service plan for the instance.
    resourceControllerUrl String
    resourceCrn String
    resourceGroupName String
    resourceName String
    resourceStatus String
    service String
    (String) The service type of the instance.
    status String
    (String) Status of the resource instance.
    resourceGroupId String

    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