oci.DatabaseManagement.ExternalDbSystemDatabaseManagementsManagement
This resource provides the External Db System Database Managements Management resource in Oracle Cloud Infrastructure Database Management service.
Enables Database Management service for all the components of the specified external DB system (except databases).
Example Usage
using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testExternalDbSystemDatabaseManagementsManagement = new Oci.DatabaseManagement.ExternalDbSystemDatabaseManagementsManagement("testExternalDbSystemDatabaseManagementsManagement", new()
{
ExternalDbSystemId = oci_database_management_external_db_system.Test_external_db_system.Id,
EnableDatabaseManagement = @var.Enable_database_management,
LicenseModel = @var.External_db_system_database_managements_management_license_model,
});
});
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/DatabaseManagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := DatabaseManagement.NewExternalDbSystemDatabaseManagementsManagement(ctx, "testExternalDbSystemDatabaseManagementsManagement", &DatabaseManagement.ExternalDbSystemDatabaseManagementsManagementArgs{
ExternalDbSystemId: pulumi.Any(oci_database_management_external_db_system.Test_external_db_system.Id),
EnableDatabaseManagement: pulumi.Any(_var.Enable_database_management),
LicenseModel: pulumi.Any(_var.External_db_system_database_managements_management_license_model),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DatabaseManagement.ExternalDbSystemDatabaseManagementsManagement;
import com.pulumi.oci.DatabaseManagement.ExternalDbSystemDatabaseManagementsManagementArgs;
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 testExternalDbSystemDatabaseManagementsManagement = new ExternalDbSystemDatabaseManagementsManagement("testExternalDbSystemDatabaseManagementsManagement", ExternalDbSystemDatabaseManagementsManagementArgs.builder()
.externalDbSystemId(oci_database_management_external_db_system.test_external_db_system().id())
.enableDatabaseManagement(var_.enable_database_management())
.licenseModel(var_.external_db_system_database_managements_management_license_model())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_external_db_system_database_managements_management = oci.database_management.ExternalDbSystemDatabaseManagementsManagement("testExternalDbSystemDatabaseManagementsManagement",
external_db_system_id=oci_database_management_external_db_system["test_external_db_system"]["id"],
enable_database_management=var["enable_database_management"],
license_model=var["external_db_system_database_managements_management_license_model"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testExternalDbSystemDatabaseManagementsManagement = new oci.databasemanagement.ExternalDbSystemDatabaseManagementsManagement("testExternalDbSystemDatabaseManagementsManagement", {
externalDbSystemId: oci_database_management_external_db_system.test_external_db_system.id,
enableDatabaseManagement: _var.enable_database_management,
licenseModel: _var.external_db_system_database_managements_management_license_model,
});
resources:
testExternalDbSystemDatabaseManagementsManagement:
type: oci:DatabaseManagement:ExternalDbSystemDatabaseManagementsManagement
properties:
#Required
externalDbSystemId: ${oci_database_management_external_db_system.test_external_db_system.id}
enableDatabaseManagement: ${var.enable_database_management}
#Optional
licenseModel: ${var.external_db_system_database_managements_management_license_model}
Create ExternalDbSystemDatabaseManagementsManagement Resource
new ExternalDbSystemDatabaseManagementsManagement(name: string, args: ExternalDbSystemDatabaseManagementsManagementArgs, opts?: CustomResourceOptions);
@overload
def ExternalDbSystemDatabaseManagementsManagement(resource_name: str,
opts: Optional[ResourceOptions] = None,
enable_database_management: Optional[bool] = None,
external_db_system_id: Optional[str] = None,
license_model: Optional[str] = None)
@overload
def ExternalDbSystemDatabaseManagementsManagement(resource_name: str,
args: ExternalDbSystemDatabaseManagementsManagementArgs,
opts: Optional[ResourceOptions] = None)
func NewExternalDbSystemDatabaseManagementsManagement(ctx *Context, name string, args ExternalDbSystemDatabaseManagementsManagementArgs, opts ...ResourceOption) (*ExternalDbSystemDatabaseManagementsManagement, error)
public ExternalDbSystemDatabaseManagementsManagement(string name, ExternalDbSystemDatabaseManagementsManagementArgs args, CustomResourceOptions? opts = null)
public ExternalDbSystemDatabaseManagementsManagement(String name, ExternalDbSystemDatabaseManagementsManagementArgs args)
public ExternalDbSystemDatabaseManagementsManagement(String name, ExternalDbSystemDatabaseManagementsManagementArgs args, CustomResourceOptions options)
type: oci:DatabaseManagement:ExternalDbSystemDatabaseManagementsManagement
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ExternalDbSystemDatabaseManagementsManagementArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ExternalDbSystemDatabaseManagementsManagementArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ExternalDbSystemDatabaseManagementsManagementArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ExternalDbSystemDatabaseManagementsManagementArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ExternalDbSystemDatabaseManagementsManagementArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ExternalDbSystemDatabaseManagementsManagement Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ExternalDbSystemDatabaseManagementsManagement resource accepts the following input properties:
- Enable
Database boolManagement (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.- External
Db stringSystem Id The OCID of the external DB system.
- License
Model string The Oracle license model that applies to the external database.
- Enable
Database boolManagement (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.- External
Db stringSystem Id The OCID of the external DB system.
- License
Model string The Oracle license model that applies to the external database.
- enable
Database BooleanManagement (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.- external
Db StringSystem Id The OCID of the external DB system.
- license
Model String The Oracle license model that applies to the external database.
- enable
Database booleanManagement (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.- external
Db stringSystem Id The OCID of the external DB system.
- license
Model string The Oracle license model that applies to the external database.
- enable_
database_ boolmanagement (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.- external_
db_ strsystem_ id The OCID of the external DB system.
- license_
model str The Oracle license model that applies to the external database.
- enable
Database BooleanManagement (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.- external
Db StringSystem Id The OCID of the external DB system.
- license
Model String The Oracle license model that applies to the external database.
Outputs
All input properties are implicitly available as output properties. Additionally, the ExternalDbSystemDatabaseManagementsManagement 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 ExternalDbSystemDatabaseManagementsManagement Resource
Get an existing ExternalDbSystemDatabaseManagementsManagement 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?: ExternalDbSystemDatabaseManagementsManagementState, opts?: CustomResourceOptions): ExternalDbSystemDatabaseManagementsManagement
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
enable_database_management: Optional[bool] = None,
external_db_system_id: Optional[str] = None,
license_model: Optional[str] = None) -> ExternalDbSystemDatabaseManagementsManagement
func GetExternalDbSystemDatabaseManagementsManagement(ctx *Context, name string, id IDInput, state *ExternalDbSystemDatabaseManagementsManagementState, opts ...ResourceOption) (*ExternalDbSystemDatabaseManagementsManagement, error)
public static ExternalDbSystemDatabaseManagementsManagement Get(string name, Input<string> id, ExternalDbSystemDatabaseManagementsManagementState? state, CustomResourceOptions? opts = null)
public static ExternalDbSystemDatabaseManagementsManagement get(String name, Output<String> id, ExternalDbSystemDatabaseManagementsManagementState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Enable
Database boolManagement (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.- External
Db stringSystem Id The OCID of the external DB system.
- License
Model string The Oracle license model that applies to the external database.
- Enable
Database boolManagement (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.- External
Db stringSystem Id The OCID of the external DB system.
- License
Model string The Oracle license model that applies to the external database.
- enable
Database BooleanManagement (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.- external
Db StringSystem Id The OCID of the external DB system.
- license
Model String The Oracle license model that applies to the external database.
- enable
Database booleanManagement (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.- external
Db stringSystem Id The OCID of the external DB system.
- license
Model string The Oracle license model that applies to the external database.
- enable_
database_ boolmanagement (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.- external_
db_ strsystem_ id The OCID of the external DB system.
- license_
model str The Oracle license model that applies to the external database.
- enable
Database BooleanManagement (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.- external
Db StringSystem Id The OCID of the external DB system.
- license
Model String The Oracle license model that applies to the external database.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.