ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getCis
Explore with Pulumi AI
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.
- Resource
Group stringId - 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.
- Resource
Group stringId - 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.
- resource
Group StringId - 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.
- resource
Group stringId - 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_ strid - 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.
- resource
Group StringId - 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.
- Resource
Controller stringUrl - Resource
Crn string - Resource
Group stringName - Resource
Name string - Resource
Status string - Service string
- (String) The service type of the instance.
- Status string
- (String) Status of the resource instance.
- Resource
Group stringId
- 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.
- Resource
Controller stringUrl - Resource
Crn string - Resource
Group stringName - Resource
Name string - Resource
Status string - Service string
- (String) The service type of the instance.
- Status string
- (String) Status of the resource instance.
- Resource
Group stringId
- 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.
- resource
Controller StringUrl - resource
Crn String - resource
Group StringName - resource
Name String - resource
Status String - service String
- (String) The service type of the instance.
- status String
- (String) Status of the resource instance.
- resource
Group StringId
- 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.
- resource
Controller stringUrl - resource
Crn string - resource
Group stringName - resource
Name string - resource
Status string - service string
- (String) The service type of the instance.
- status string
- (String) Status of the resource instance.
- resource
Group stringId
- 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_ strurl - resource_
crn str - resource_
group_ strname - 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_ strid
- 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.
- resource
Controller StringUrl - resource
Crn String - resource
Group StringName - resource
Name String - resource
Status String - service String
- (String) The service type of the instance.
- status String
- (String) Status of the resource instance.
- resource
Group StringId
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.