1. Packages
  2. Ibm Provider
  3. API Docs
  4. AppidAuditStatus
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.AppidAuditStatus

Explore with Pulumi AI

Create, update, or reset an IBM Cloud AppID Management Services audit status (available for graduated tier only). For more information, see auditing events for App ID

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";

const status = new ibm.AppidAuditStatus("status", {
    tenantId: _var.tenant_id,
    isActive: true,
});
Copy
import pulumi
import pulumi_ibm as ibm

status = ibm.AppidAuditStatus("status",
    tenant_id=var["tenant_id"],
    is_active=True)
Copy
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.NewAppidAuditStatus(ctx, "status", &ibm.AppidAuditStatusArgs{
			TenantId: pulumi.Any(_var.Tenant_id),
			IsActive: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;

return await Deployment.RunAsync(() => 
{
    var status = new Ibm.AppidAuditStatus("status", new()
    {
        TenantId = @var.Tenant_id,
        IsActive = true,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.AppidAuditStatus;
import com.pulumi.ibm.AppidAuditStatusArgs;
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) {
        var status = new AppidAuditStatus("status", AppidAuditStatusArgs.builder()
            .tenantId(var_.tenant_id())
            .isActive(true)
            .build());

    }
}
Copy
resources:
  status:
    type: ibm:AppidAuditStatus
    properties:
      tenantId: ${var.tenant_id}
      isActive: true
Copy

Create AppidAuditStatus Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new AppidAuditStatus(name: string, args: AppidAuditStatusArgs, opts?: CustomResourceOptions);
@overload
def AppidAuditStatus(resource_name: str,
                     args: AppidAuditStatusArgs,
                     opts: Optional[ResourceOptions] = None)

@overload
def AppidAuditStatus(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     is_active: Optional[bool] = None,
                     tenant_id: Optional[str] = None,
                     appid_audit_status_id: Optional[str] = None)
func NewAppidAuditStatus(ctx *Context, name string, args AppidAuditStatusArgs, opts ...ResourceOption) (*AppidAuditStatus, error)
public AppidAuditStatus(string name, AppidAuditStatusArgs args, CustomResourceOptions? opts = null)
public AppidAuditStatus(String name, AppidAuditStatusArgs args)
public AppidAuditStatus(String name, AppidAuditStatusArgs args, CustomResourceOptions options)
type: ibm:AppidAuditStatus
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. AppidAuditStatusArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. AppidAuditStatusArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. AppidAuditStatusArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. AppidAuditStatusArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AppidAuditStatusArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var appidAuditStatusResource = new Ibm.AppidAuditStatus("appidAuditStatusResource", new()
{
    IsActive = false,
    TenantId = "string",
    AppidAuditStatusId = "string",
});
Copy
example, err := ibm.NewAppidAuditStatus(ctx, "appidAuditStatusResource", &ibm.AppidAuditStatusArgs{
IsActive: pulumi.Bool(false),
TenantId: pulumi.String("string"),
AppidAuditStatusId: pulumi.String("string"),
})
Copy
var appidAuditStatusResource = new AppidAuditStatus("appidAuditStatusResource", AppidAuditStatusArgs.builder()
    .isActive(false)
    .tenantId("string")
    .appidAuditStatusId("string")
    .build());
Copy
appid_audit_status_resource = ibm.AppidAuditStatus("appidAuditStatusResource",
    is_active=False,
    tenant_id="string",
    appid_audit_status_id="string")
Copy
const appidAuditStatusResource = new ibm.AppidAuditStatus("appidAuditStatusResource", {
    isActive: false,
    tenantId: "string",
    appidAuditStatusId: "string",
});
Copy
type: ibm:AppidAuditStatus
properties:
    appidAuditStatusId: string
    isActive: false
    tenantId: string
Copy

AppidAuditStatus Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The AppidAuditStatus resource accepts the following input properties:

IsActive This property is required. bool
true if auditing should be turned on
TenantId This property is required. string
The AppID instance GUID
AppidAuditStatusId string
IsActive This property is required. bool
true if auditing should be turned on
TenantId This property is required. string
The AppID instance GUID
AppidAuditStatusId string
isActive This property is required. Boolean
true if auditing should be turned on
tenantId This property is required. String
The AppID instance GUID
appidAuditStatusId String
isActive This property is required. boolean
true if auditing should be turned on
tenantId This property is required. string
The AppID instance GUID
appidAuditStatusId string
is_active This property is required. bool
true if auditing should be turned on
tenant_id This property is required. str
The AppID instance GUID
appid_audit_status_id str
isActive This property is required. Boolean
true if auditing should be turned on
tenantId This property is required. String
The AppID instance GUID
appidAuditStatusId String

Outputs

All input properties are implicitly available as output properties. Additionally, the AppidAuditStatus resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing AppidAuditStatus Resource

Get an existing AppidAuditStatus resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: AppidAuditStatusState, opts?: CustomResourceOptions): AppidAuditStatus
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        appid_audit_status_id: Optional[str] = None,
        is_active: Optional[bool] = None,
        tenant_id: Optional[str] = None) -> AppidAuditStatus
func GetAppidAuditStatus(ctx *Context, name string, id IDInput, state *AppidAuditStatusState, opts ...ResourceOption) (*AppidAuditStatus, error)
public static AppidAuditStatus Get(string name, Input<string> id, AppidAuditStatusState? state, CustomResourceOptions? opts = null)
public static AppidAuditStatus get(String name, Output<String> id, AppidAuditStatusState state, CustomResourceOptions options)
resources:  _:    type: ibm:AppidAuditStatus    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AppidAuditStatusId string
IsActive bool
true if auditing should be turned on
TenantId string
The AppID instance GUID
AppidAuditStatusId string
IsActive bool
true if auditing should be turned on
TenantId string
The AppID instance GUID
appidAuditStatusId String
isActive Boolean
true if auditing should be turned on
tenantId String
The AppID instance GUID
appidAuditStatusId string
isActive boolean
true if auditing should be turned on
tenantId string
The AppID instance GUID
appid_audit_status_id str
is_active bool
true if auditing should be turned on
tenant_id str
The AppID instance GUID
appidAuditStatusId String
isActive Boolean
true if auditing should be turned on
tenantId String
The AppID instance GUID

Import

The ibm_appid_audit_status resource can be imported by using the AppID tenant ID.

Syntax

bash

$ pulumi import ibm:index/appidAuditStatus:AppidAuditStatus status <tenant_id>
Copy

Example

bash

$ pulumi import ibm:index/appidAuditStatus:AppidAuditStatus status 5fa344a8-d361-4bc2-9051-58ca253f4b2b
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
ibm ibm-cloud/terraform-provider-ibm
License
Notes
This Pulumi package is based on the ibm Terraform Provider.