oci.DatabaseManagement.ExternalDbSystemDatabaseManagementsManagement
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testExternalDbSystemDatabaseManagementsManagement = new oci.databasemanagement.ExternalDbSystemDatabaseManagementsManagement("test_external_db_system_database_managements_management", {
externalDbSystemId: testExternalDbSystem.id,
enableDatabaseManagement: enableDatabaseManagement,
licenseModel: externalDbSystemDatabaseManagementsManagementLicenseModel,
});
import pulumi
import pulumi_oci as oci
test_external_db_system_database_managements_management = oci.database_management.ExternalDbSystemDatabaseManagementsManagement("test_external_db_system_database_managements_management",
external_db_system_id=test_external_db_system["id"],
enable_database_management=enable_database_management,
license_model=external_db_system_database_managements_management_license_model)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/DatabaseManagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := DatabaseManagement.NewExternalDbSystemDatabaseManagementsManagement(ctx, "test_external_db_system_database_managements_management", &DatabaseManagement.ExternalDbSystemDatabaseManagementsManagementArgs{
ExternalDbSystemId: pulumi.Any(testExternalDbSystem.Id),
EnableDatabaseManagement: pulumi.Any(enableDatabaseManagement),
LicenseModel: pulumi.Any(externalDbSystemDatabaseManagementsManagementLicenseModel),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testExternalDbSystemDatabaseManagementsManagement = new Oci.DatabaseManagement.ExternalDbSystemDatabaseManagementsManagement("test_external_db_system_database_managements_management", new()
{
ExternalDbSystemId = testExternalDbSystem.Id,
EnableDatabaseManagement = enableDatabaseManagement,
LicenseModel = externalDbSystemDatabaseManagementsManagementLicenseModel,
});
});
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(testExternalDbSystem.id())
.enableDatabaseManagement(enableDatabaseManagement)
.licenseModel(externalDbSystemDatabaseManagementsManagementLicenseModel)
.build());
}
}
resources:
testExternalDbSystemDatabaseManagementsManagement:
type: oci:DatabaseManagement:ExternalDbSystemDatabaseManagementsManagement
name: test_external_db_system_database_managements_management
properties:
externalDbSystemId: ${testExternalDbSystem.id}
enableDatabaseManagement: ${enableDatabaseManagement}
licenseModel: ${externalDbSystemDatabaseManagementsManagementLicenseModel}
Create ExternalDbSystemDatabaseManagementsManagement Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ExternalDbSystemDatabaseManagementsManagement(name: string, args: ExternalDbSystemDatabaseManagementsManagementArgs, opts?: CustomResourceOptions);
@overload
def ExternalDbSystemDatabaseManagementsManagement(resource_name: str,
args: ExternalDbSystemDatabaseManagementsManagementArgs,
opts: Optional[ResourceOptions] = None)
@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)
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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var externalDbSystemDatabaseManagementsManagementResource = new Oci.DatabaseManagement.ExternalDbSystemDatabaseManagementsManagement("externalDbSystemDatabaseManagementsManagementResource", new()
{
EnableDatabaseManagement = false,
ExternalDbSystemId = "string",
LicenseModel = "string",
});
example, err := DatabaseManagement.NewExternalDbSystemDatabaseManagementsManagement(ctx, "externalDbSystemDatabaseManagementsManagementResource", &DatabaseManagement.ExternalDbSystemDatabaseManagementsManagementArgs{
EnableDatabaseManagement: pulumi.Bool(false),
ExternalDbSystemId: pulumi.String("string"),
LicenseModel: pulumi.String("string"),
})
var externalDbSystemDatabaseManagementsManagementResource = new ExternalDbSystemDatabaseManagementsManagement("externalDbSystemDatabaseManagementsManagementResource", ExternalDbSystemDatabaseManagementsManagementArgs.builder()
.enableDatabaseManagement(false)
.externalDbSystemId("string")
.licenseModel("string")
.build());
external_db_system_database_managements_management_resource = oci.database_management.ExternalDbSystemDatabaseManagementsManagement("externalDbSystemDatabaseManagementsManagementResource",
enable_database_management=False,
external_db_system_id="string",
license_model="string")
const externalDbSystemDatabaseManagementsManagementResource = new oci.databasemanagement.ExternalDbSystemDatabaseManagementsManagement("externalDbSystemDatabaseManagementsManagementResource", {
enableDatabaseManagement: false,
externalDbSystemId: "string",
licenseModel: "string",
});
type: oci:DatabaseManagement:ExternalDbSystemDatabaseManagementsManagement
properties:
enableDatabaseManagement: false
externalDbSystemId: string
licenseModel: string
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.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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.** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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.