gcp.apihub.PluginInstance
Explore with Pulumi AI
Description
Example Usage
Apihub Plugin Instance Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const apihubPluginInstanceBasic = new gcp.apihub.PluginInstance("apihub_plugin_instance_basic", {
location: "us-central1",
plugin: "existing-plugin-id",
pluginInstanceId: "test",
displayName: "Sample Plugin Instance Display Name",
disable: false,
actions: [{
actionId: "existing-action-id",
}],
});
import pulumi
import pulumi_gcp as gcp
apihub_plugin_instance_basic = gcp.apihub.PluginInstance("apihub_plugin_instance_basic",
location="us-central1",
plugin="existing-plugin-id",
plugin_instance_id="test",
display_name="Sample Plugin Instance Display Name",
disable=False,
actions=[{
"action_id": "existing-action-id",
}])
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/apihub"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := apihub.NewPluginInstance(ctx, "apihub_plugin_instance_basic", &apihub.PluginInstanceArgs{
Location: pulumi.String("us-central1"),
Plugin: pulumi.String("existing-plugin-id"),
PluginInstanceId: pulumi.String("test"),
DisplayName: pulumi.String("Sample Plugin Instance Display Name"),
Disable: pulumi.Bool(false),
Actions: apihub.PluginInstanceActionArray{
&apihub.PluginInstanceActionArgs{
ActionId: pulumi.String("existing-action-id"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var apihubPluginInstanceBasic = new Gcp.ApiHub.PluginInstance("apihub_plugin_instance_basic", new()
{
Location = "us-central1",
Plugin = "existing-plugin-id",
PluginInstanceId = "test",
DisplayName = "Sample Plugin Instance Display Name",
Disable = false,
Actions = new[]
{
new Gcp.ApiHub.Inputs.PluginInstanceActionArgs
{
ActionId = "existing-action-id",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.apihub.PluginInstance;
import com.pulumi.gcp.apihub.PluginInstanceArgs;
import com.pulumi.gcp.apihub.inputs.PluginInstanceActionArgs;
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 apihubPluginInstanceBasic = new PluginInstance("apihubPluginInstanceBasic", PluginInstanceArgs.builder()
.location("us-central1")
.plugin("existing-plugin-id")
.pluginInstanceId("test")
.displayName("Sample Plugin Instance Display Name")
.disable(false)
.actions(PluginInstanceActionArgs.builder()
.actionId("existing-action-id")
.build())
.build());
}
}
resources:
apihubPluginInstanceBasic:
type: gcp:apihub:PluginInstance
name: apihub_plugin_instance_basic
properties:
location: us-central1
plugin: existing-plugin-id
pluginInstanceId: test
displayName: Sample Plugin Instance Display Name
disable: false
actions:
- actionId: existing-action-id
Create PluginInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PluginInstance(name: string, args: PluginInstanceArgs, opts?: CustomResourceOptions);
@overload
def PluginInstance(resource_name: str,
args: PluginInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PluginInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
display_name: Optional[str] = None,
location: Optional[str] = None,
plugin: Optional[str] = None,
plugin_instance_id: Optional[str] = None,
actions: Optional[Sequence[PluginInstanceActionArgs]] = None,
auth_config: Optional[PluginInstanceAuthConfigArgs] = None,
disable: Optional[bool] = None,
project: Optional[str] = None)
func NewPluginInstance(ctx *Context, name string, args PluginInstanceArgs, opts ...ResourceOption) (*PluginInstance, error)
public PluginInstance(string name, PluginInstanceArgs args, CustomResourceOptions? opts = null)
public PluginInstance(String name, PluginInstanceArgs args)
public PluginInstance(String name, PluginInstanceArgs args, CustomResourceOptions options)
type: gcp:apihub:PluginInstance
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 PluginInstanceArgs
- 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 PluginInstanceArgs
- 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 PluginInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PluginInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PluginInstanceArgs
- 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 pluginInstanceResource = new Gcp.ApiHub.PluginInstance("pluginInstanceResource", new()
{
DisplayName = "string",
Location = "string",
Plugin = "string",
PluginInstanceId = "string",
Actions = new[]
{
new Gcp.ApiHub.Inputs.PluginInstanceActionArgs
{
ActionId = "string",
CurationConfig = new Gcp.ApiHub.Inputs.PluginInstanceActionCurationConfigArgs
{
CurationType = "string",
CustomCuration = new Gcp.ApiHub.Inputs.PluginInstanceActionCurationConfigCustomCurationArgs
{
Curation = "string",
},
},
HubInstanceActions = new[]
{
new Gcp.ApiHub.Inputs.PluginInstanceActionHubInstanceActionArgs
{
CurrentExecutionState = "string",
LastExecutions = new[]
{
new Gcp.ApiHub.Inputs.PluginInstanceActionHubInstanceActionLastExecutionArgs
{
EndTime = "string",
ErrorMessage = "string",
Result = "string",
StartTime = "string",
},
},
},
},
ScheduleCronExpression = "string",
ScheduleTimeZone = "string",
State = "string",
},
},
AuthConfig = new Gcp.ApiHub.Inputs.PluginInstanceAuthConfigArgs
{
AuthType = "string",
ApiKeyConfig = new Gcp.ApiHub.Inputs.PluginInstanceAuthConfigApiKeyConfigArgs
{
ApiKey = new Gcp.ApiHub.Inputs.PluginInstanceAuthConfigApiKeyConfigApiKeyArgs
{
SecretVersion = "string",
},
HttpElementLocation = "string",
Name = "string",
},
GoogleServiceAccountConfig = new Gcp.ApiHub.Inputs.PluginInstanceAuthConfigGoogleServiceAccountConfigArgs
{
ServiceAccount = "string",
},
Oauth2ClientCredentialsConfig = new Gcp.ApiHub.Inputs.PluginInstanceAuthConfigOauth2ClientCredentialsConfigArgs
{
ClientId = "string",
ClientSecret = new Gcp.ApiHub.Inputs.PluginInstanceAuthConfigOauth2ClientCredentialsConfigClientSecretArgs
{
SecretVersion = "string",
},
},
UserPasswordConfig = new Gcp.ApiHub.Inputs.PluginInstanceAuthConfigUserPasswordConfigArgs
{
Password = new Gcp.ApiHub.Inputs.PluginInstanceAuthConfigUserPasswordConfigPasswordArgs
{
SecretVersion = "string",
},
Username = "string",
},
},
Disable = false,
Project = "string",
});
example, err := apihub.NewPluginInstance(ctx, "pluginInstanceResource", &apihub.PluginInstanceArgs{
DisplayName: pulumi.String("string"),
Location: pulumi.String("string"),
Plugin: pulumi.String("string"),
PluginInstanceId: pulumi.String("string"),
Actions: apihub.PluginInstanceActionArray{
&apihub.PluginInstanceActionArgs{
ActionId: pulumi.String("string"),
CurationConfig: &apihub.PluginInstanceActionCurationConfigArgs{
CurationType: pulumi.String("string"),
CustomCuration: &apihub.PluginInstanceActionCurationConfigCustomCurationArgs{
Curation: pulumi.String("string"),
},
},
HubInstanceActions: apihub.PluginInstanceActionHubInstanceActionArray{
&apihub.PluginInstanceActionHubInstanceActionArgs{
CurrentExecutionState: pulumi.String("string"),
LastExecutions: apihub.PluginInstanceActionHubInstanceActionLastExecutionArray{
&apihub.PluginInstanceActionHubInstanceActionLastExecutionArgs{
EndTime: pulumi.String("string"),
ErrorMessage: pulumi.String("string"),
Result: pulumi.String("string"),
StartTime: pulumi.String("string"),
},
},
},
},
ScheduleCronExpression: pulumi.String("string"),
ScheduleTimeZone: pulumi.String("string"),
State: pulumi.String("string"),
},
},
AuthConfig: &apihub.PluginInstanceAuthConfigArgs{
AuthType: pulumi.String("string"),
ApiKeyConfig: &apihub.PluginInstanceAuthConfigApiKeyConfigArgs{
ApiKey: &apihub.PluginInstanceAuthConfigApiKeyConfigApiKeyArgs{
SecretVersion: pulumi.String("string"),
},
HttpElementLocation: pulumi.String("string"),
Name: pulumi.String("string"),
},
GoogleServiceAccountConfig: &apihub.PluginInstanceAuthConfigGoogleServiceAccountConfigArgs{
ServiceAccount: pulumi.String("string"),
},
Oauth2ClientCredentialsConfig: &apihub.PluginInstanceAuthConfigOauth2ClientCredentialsConfigArgs{
ClientId: pulumi.String("string"),
ClientSecret: &apihub.PluginInstanceAuthConfigOauth2ClientCredentialsConfigClientSecretArgs{
SecretVersion: pulumi.String("string"),
},
},
UserPasswordConfig: &apihub.PluginInstanceAuthConfigUserPasswordConfigArgs{
Password: &apihub.PluginInstanceAuthConfigUserPasswordConfigPasswordArgs{
SecretVersion: pulumi.String("string"),
},
Username: pulumi.String("string"),
},
},
Disable: pulumi.Bool(false),
Project: pulumi.String("string"),
})
var pluginInstanceResource = new PluginInstance("pluginInstanceResource", PluginInstanceArgs.builder()
.displayName("string")
.location("string")
.plugin("string")
.pluginInstanceId("string")
.actions(PluginInstanceActionArgs.builder()
.actionId("string")
.curationConfig(PluginInstanceActionCurationConfigArgs.builder()
.curationType("string")
.customCuration(PluginInstanceActionCurationConfigCustomCurationArgs.builder()
.curation("string")
.build())
.build())
.hubInstanceActions(PluginInstanceActionHubInstanceActionArgs.builder()
.currentExecutionState("string")
.lastExecutions(PluginInstanceActionHubInstanceActionLastExecutionArgs.builder()
.endTime("string")
.errorMessage("string")
.result("string")
.startTime("string")
.build())
.build())
.scheduleCronExpression("string")
.scheduleTimeZone("string")
.state("string")
.build())
.authConfig(PluginInstanceAuthConfigArgs.builder()
.authType("string")
.apiKeyConfig(PluginInstanceAuthConfigApiKeyConfigArgs.builder()
.apiKey(PluginInstanceAuthConfigApiKeyConfigApiKeyArgs.builder()
.secretVersion("string")
.build())
.httpElementLocation("string")
.name("string")
.build())
.googleServiceAccountConfig(PluginInstanceAuthConfigGoogleServiceAccountConfigArgs.builder()
.serviceAccount("string")
.build())
.oauth2ClientCredentialsConfig(PluginInstanceAuthConfigOauth2ClientCredentialsConfigArgs.builder()
.clientId("string")
.clientSecret(PluginInstanceAuthConfigOauth2ClientCredentialsConfigClientSecretArgs.builder()
.secretVersion("string")
.build())
.build())
.userPasswordConfig(PluginInstanceAuthConfigUserPasswordConfigArgs.builder()
.password(PluginInstanceAuthConfigUserPasswordConfigPasswordArgs.builder()
.secretVersion("string")
.build())
.username("string")
.build())
.build())
.disable(false)
.project("string")
.build());
plugin_instance_resource = gcp.apihub.PluginInstance("pluginInstanceResource",
display_name="string",
location="string",
plugin="string",
plugin_instance_id="string",
actions=[{
"action_id": "string",
"curation_config": {
"curation_type": "string",
"custom_curation": {
"curation": "string",
},
},
"hub_instance_actions": [{
"current_execution_state": "string",
"last_executions": [{
"end_time": "string",
"error_message": "string",
"result": "string",
"start_time": "string",
}],
}],
"schedule_cron_expression": "string",
"schedule_time_zone": "string",
"state": "string",
}],
auth_config={
"auth_type": "string",
"api_key_config": {
"api_key": {
"secret_version": "string",
},
"http_element_location": "string",
"name": "string",
},
"google_service_account_config": {
"service_account": "string",
},
"oauth2_client_credentials_config": {
"client_id": "string",
"client_secret": {
"secret_version": "string",
},
},
"user_password_config": {
"password": {
"secret_version": "string",
},
"username": "string",
},
},
disable=False,
project="string")
const pluginInstanceResource = new gcp.apihub.PluginInstance("pluginInstanceResource", {
displayName: "string",
location: "string",
plugin: "string",
pluginInstanceId: "string",
actions: [{
actionId: "string",
curationConfig: {
curationType: "string",
customCuration: {
curation: "string",
},
},
hubInstanceActions: [{
currentExecutionState: "string",
lastExecutions: [{
endTime: "string",
errorMessage: "string",
result: "string",
startTime: "string",
}],
}],
scheduleCronExpression: "string",
scheduleTimeZone: "string",
state: "string",
}],
authConfig: {
authType: "string",
apiKeyConfig: {
apiKey: {
secretVersion: "string",
},
httpElementLocation: "string",
name: "string",
},
googleServiceAccountConfig: {
serviceAccount: "string",
},
oauth2ClientCredentialsConfig: {
clientId: "string",
clientSecret: {
secretVersion: "string",
},
},
userPasswordConfig: {
password: {
secretVersion: "string",
},
username: "string",
},
},
disable: false,
project: "string",
});
type: gcp:apihub:PluginInstance
properties:
actions:
- actionId: string
curationConfig:
curationType: string
customCuration:
curation: string
hubInstanceActions:
- currentExecutionState: string
lastExecutions:
- endTime: string
errorMessage: string
result: string
startTime: string
scheduleCronExpression: string
scheduleTimeZone: string
state: string
authConfig:
apiKeyConfig:
apiKey:
secretVersion: string
httpElementLocation: string
name: string
authType: string
googleServiceAccountConfig:
serviceAccount: string
oauth2ClientCredentialsConfig:
clientId: string
clientSecret:
secretVersion: string
userPasswordConfig:
password:
secretVersion: string
username: string
disable: false
displayName: string
location: string
plugin: string
pluginInstanceId: string
project: string
PluginInstance 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 PluginInstance resource accepts the following input properties:
- Display
Name string - The display name for this plugin instance. Max length is 255 characters.
- Location string
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - Plugin string
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - Plugin
Instance stringId - The ID to use for the plugin instance, which will become the final
component of the plugin instance's resource name. This field is optional.
- If provided, the same will be used. The service will throw an error if the specified id is already used by another plugin instance in the plugin resource.
- If not provided, a system generated id will be used. This value should be 4-63 characters, and valid characters are /a-z[0-9]-_/.
- Actions
List<Plugin
Instance Action> - The action status for the plugin instance. Structure is documented below.
- Auth
Config PluginInstance Auth Config - AuthConfig represents the authentication information.
- Disable bool
- The display name for this plugin instance. Max length is 255 characters.
- Project string
- Display
Name string - The display name for this plugin instance. Max length is 255 characters.
- Location string
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - Plugin string
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - Plugin
Instance stringId - The ID to use for the plugin instance, which will become the final
component of the plugin instance's resource name. This field is optional.
- If provided, the same will be used. The service will throw an error if the specified id is already used by another plugin instance in the plugin resource.
- If not provided, a system generated id will be used. This value should be 4-63 characters, and valid characters are /a-z[0-9]-_/.
- Actions
[]Plugin
Instance Action Args - The action status for the plugin instance. Structure is documented below.
- Auth
Config PluginInstance Auth Config Args - AuthConfig represents the authentication information.
- Disable bool
- The display name for this plugin instance. Max length is 255 characters.
- Project string
- display
Name String - The display name for this plugin instance. Max length is 255 characters.
- location String
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - plugin String
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - plugin
Instance StringId - The ID to use for the plugin instance, which will become the final
component of the plugin instance's resource name. This field is optional.
- If provided, the same will be used. The service will throw an error if the specified id is already used by another plugin instance in the plugin resource.
- If not provided, a system generated id will be used. This value should be 4-63 characters, and valid characters are /a-z[0-9]-_/.
- actions
List<Plugin
Instance Action> - The action status for the plugin instance. Structure is documented below.
- auth
Config PluginInstance Auth Config - AuthConfig represents the authentication information.
- disable Boolean
- The display name for this plugin instance. Max length is 255 characters.
- project String
- display
Name string - The display name for this plugin instance. Max length is 255 characters.
- location string
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - plugin string
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - plugin
Instance stringId - The ID to use for the plugin instance, which will become the final
component of the plugin instance's resource name. This field is optional.
- If provided, the same will be used. The service will throw an error if the specified id is already used by another plugin instance in the plugin resource.
- If not provided, a system generated id will be used. This value should be 4-63 characters, and valid characters are /a-z[0-9]-_/.
- actions
Plugin
Instance Action[] - The action status for the plugin instance. Structure is documented below.
- auth
Config PluginInstance Auth Config - AuthConfig represents the authentication information.
- disable boolean
- The display name for this plugin instance. Max length is 255 characters.
- project string
- display_
name str - The display name for this plugin instance. Max length is 255 characters.
- location str
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - plugin str
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - plugin_
instance_ strid - The ID to use for the plugin instance, which will become the final
component of the plugin instance's resource name. This field is optional.
- If provided, the same will be used. The service will throw an error if the specified id is already used by another plugin instance in the plugin resource.
- If not provided, a system generated id will be used. This value should be 4-63 characters, and valid characters are /a-z[0-9]-_/.
- actions
Sequence[Plugin
Instance Action Args] - The action status for the plugin instance. Structure is documented below.
- auth_
config PluginInstance Auth Config Args - AuthConfig represents the authentication information.
- disable bool
- The display name for this plugin instance. Max length is 255 characters.
- project str
- display
Name String - The display name for this plugin instance. Max length is 255 characters.
- location String
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - plugin String
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - plugin
Instance StringId - The ID to use for the plugin instance, which will become the final
component of the plugin instance's resource name. This field is optional.
- If provided, the same will be used. The service will throw an error if the specified id is already used by another plugin instance in the plugin resource.
- If not provided, a system generated id will be used. This value should be 4-63 characters, and valid characters are /a-z[0-9]-_/.
- actions List<Property Map>
- The action status for the plugin instance. Structure is documented below.
- auth
Config Property Map - AuthConfig represents the authentication information.
- disable Boolean
- The display name for this plugin instance. Max length is 255 characters.
- project String
Outputs
All input properties are implicitly available as output properties. Additionally, the PluginInstance resource produces the following output properties:
- Create
Time string - Timestamp indicating when the plugin instance was created.
- Error
Message string - Error message describing the failure, if any, during Create, Delete or ApplyConfig operation corresponding to the plugin instance.This field will only be populated if the plugin instance is in the ERROR or FAILED state.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Identifier. The unique name of the plugin instance resource.
Format:
projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}
- State string
- The current state of the plugin instance (e.g., enabled, disabled, provisioning). Possible values: STATE_UNSPECIFIED CREATING ACTIVE APPLYING_CONFIG ERROR FAILED DELETING
- Update
Time string - Timestamp indicating when the plugin instance was last updated.
- Create
Time string - Timestamp indicating when the plugin instance was created.
- Error
Message string - Error message describing the failure, if any, during Create, Delete or ApplyConfig operation corresponding to the plugin instance.This field will only be populated if the plugin instance is in the ERROR or FAILED state.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Identifier. The unique name of the plugin instance resource.
Format:
projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}
- State string
- The current state of the plugin instance (e.g., enabled, disabled, provisioning). Possible values: STATE_UNSPECIFIED CREATING ACTIVE APPLYING_CONFIG ERROR FAILED DELETING
- Update
Time string - Timestamp indicating when the plugin instance was last updated.
- create
Time String - Timestamp indicating when the plugin instance was created.
- error
Message String - Error message describing the failure, if any, during Create, Delete or ApplyConfig operation corresponding to the plugin instance.This field will only be populated if the plugin instance is in the ERROR or FAILED state.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Identifier. The unique name of the plugin instance resource.
Format:
projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}
- state String
- The current state of the plugin instance (e.g., enabled, disabled, provisioning). Possible values: STATE_UNSPECIFIED CREATING ACTIVE APPLYING_CONFIG ERROR FAILED DELETING
- update
Time String - Timestamp indicating when the plugin instance was last updated.
- create
Time string - Timestamp indicating when the plugin instance was created.
- error
Message string - Error message describing the failure, if any, during Create, Delete or ApplyConfig operation corresponding to the plugin instance.This field will only be populated if the plugin instance is in the ERROR or FAILED state.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Identifier. The unique name of the plugin instance resource.
Format:
projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}
- state string
- The current state of the plugin instance (e.g., enabled, disabled, provisioning). Possible values: STATE_UNSPECIFIED CREATING ACTIVE APPLYING_CONFIG ERROR FAILED DELETING
- update
Time string - Timestamp indicating when the plugin instance was last updated.
- create_
time str - Timestamp indicating when the plugin instance was created.
- error_
message str - Error message describing the failure, if any, during Create, Delete or ApplyConfig operation corresponding to the plugin instance.This field will only be populated if the plugin instance is in the ERROR or FAILED state.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Identifier. The unique name of the plugin instance resource.
Format:
projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}
- state str
- The current state of the plugin instance (e.g., enabled, disabled, provisioning). Possible values: STATE_UNSPECIFIED CREATING ACTIVE APPLYING_CONFIG ERROR FAILED DELETING
- update_
time str - Timestamp indicating when the plugin instance was last updated.
- create
Time String - Timestamp indicating when the plugin instance was created.
- error
Message String - Error message describing the failure, if any, during Create, Delete or ApplyConfig operation corresponding to the plugin instance.This field will only be populated if the plugin instance is in the ERROR or FAILED state.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Identifier. The unique name of the plugin instance resource.
Format:
projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}
- state String
- The current state of the plugin instance (e.g., enabled, disabled, provisioning). Possible values: STATE_UNSPECIFIED CREATING ACTIVE APPLYING_CONFIG ERROR FAILED DELETING
- update
Time String - Timestamp indicating when the plugin instance was last updated.
Look up Existing PluginInstance Resource
Get an existing PluginInstance 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?: PluginInstanceState, opts?: CustomResourceOptions): PluginInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
actions: Optional[Sequence[PluginInstanceActionArgs]] = None,
auth_config: Optional[PluginInstanceAuthConfigArgs] = None,
create_time: Optional[str] = None,
disable: Optional[bool] = None,
display_name: Optional[str] = None,
error_message: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
plugin: Optional[str] = None,
plugin_instance_id: Optional[str] = None,
project: Optional[str] = None,
state: Optional[str] = None,
update_time: Optional[str] = None) -> PluginInstance
func GetPluginInstance(ctx *Context, name string, id IDInput, state *PluginInstanceState, opts ...ResourceOption) (*PluginInstance, error)
public static PluginInstance Get(string name, Input<string> id, PluginInstanceState? state, CustomResourceOptions? opts = null)
public static PluginInstance get(String name, Output<String> id, PluginInstanceState state, CustomResourceOptions options)
resources: _: type: gcp:apihub:PluginInstance get: id: ${id}
- 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.
- Actions
List<Plugin
Instance Action> - The action status for the plugin instance. Structure is documented below.
- Auth
Config PluginInstance Auth Config - AuthConfig represents the authentication information.
- Create
Time string - Timestamp indicating when the plugin instance was created.
- Disable bool
- The display name for this plugin instance. Max length is 255 characters.
- Display
Name string - The display name for this plugin instance. Max length is 255 characters.
- Error
Message string - Error message describing the failure, if any, during Create, Delete or ApplyConfig operation corresponding to the plugin instance.This field will only be populated if the plugin instance is in the ERROR or FAILED state.
- Location string
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - Name string
- Identifier. The unique name of the plugin instance resource.
Format:
projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}
- Plugin string
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - Plugin
Instance stringId - The ID to use for the plugin instance, which will become the final
component of the plugin instance's resource name. This field is optional.
- If provided, the same will be used. The service will throw an error if the specified id is already used by another plugin instance in the plugin resource.
- If not provided, a system generated id will be used. This value should be 4-63 characters, and valid characters are /a-z[0-9]-_/.
- Project string
- State string
- The current state of the plugin instance (e.g., enabled, disabled, provisioning). Possible values: STATE_UNSPECIFIED CREATING ACTIVE APPLYING_CONFIG ERROR FAILED DELETING
- Update
Time string - Timestamp indicating when the plugin instance was last updated.
- Actions
[]Plugin
Instance Action Args - The action status for the plugin instance. Structure is documented below.
- Auth
Config PluginInstance Auth Config Args - AuthConfig represents the authentication information.
- Create
Time string - Timestamp indicating when the plugin instance was created.
- Disable bool
- The display name for this plugin instance. Max length is 255 characters.
- Display
Name string - The display name for this plugin instance. Max length is 255 characters.
- Error
Message string - Error message describing the failure, if any, during Create, Delete or ApplyConfig operation corresponding to the plugin instance.This field will only be populated if the plugin instance is in the ERROR or FAILED state.
- Location string
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - Name string
- Identifier. The unique name of the plugin instance resource.
Format:
projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}
- Plugin string
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - Plugin
Instance stringId - The ID to use for the plugin instance, which will become the final
component of the plugin instance's resource name. This field is optional.
- If provided, the same will be used. The service will throw an error if the specified id is already used by another plugin instance in the plugin resource.
- If not provided, a system generated id will be used. This value should be 4-63 characters, and valid characters are /a-z[0-9]-_/.
- Project string
- State string
- The current state of the plugin instance (e.g., enabled, disabled, provisioning). Possible values: STATE_UNSPECIFIED CREATING ACTIVE APPLYING_CONFIG ERROR FAILED DELETING
- Update
Time string - Timestamp indicating when the plugin instance was last updated.
- actions
List<Plugin
Instance Action> - The action status for the plugin instance. Structure is documented below.
- auth
Config PluginInstance Auth Config - AuthConfig represents the authentication information.
- create
Time String - Timestamp indicating when the plugin instance was created.
- disable Boolean
- The display name for this plugin instance. Max length is 255 characters.
- display
Name String - The display name for this plugin instance. Max length is 255 characters.
- error
Message String - Error message describing the failure, if any, during Create, Delete or ApplyConfig operation corresponding to the plugin instance.This field will only be populated if the plugin instance is in the ERROR or FAILED state.
- location String
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - name String
- Identifier. The unique name of the plugin instance resource.
Format:
projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}
- plugin String
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - plugin
Instance StringId - The ID to use for the plugin instance, which will become the final
component of the plugin instance's resource name. This field is optional.
- If provided, the same will be used. The service will throw an error if the specified id is already used by another plugin instance in the plugin resource.
- If not provided, a system generated id will be used. This value should be 4-63 characters, and valid characters are /a-z[0-9]-_/.
- project String
- state String
- The current state of the plugin instance (e.g., enabled, disabled, provisioning). Possible values: STATE_UNSPECIFIED CREATING ACTIVE APPLYING_CONFIG ERROR FAILED DELETING
- update
Time String - Timestamp indicating when the plugin instance was last updated.
- actions
Plugin
Instance Action[] - The action status for the plugin instance. Structure is documented below.
- auth
Config PluginInstance Auth Config - AuthConfig represents the authentication information.
- create
Time string - Timestamp indicating when the plugin instance was created.
- disable boolean
- The display name for this plugin instance. Max length is 255 characters.
- display
Name string - The display name for this plugin instance. Max length is 255 characters.
- error
Message string - Error message describing the failure, if any, during Create, Delete or ApplyConfig operation corresponding to the plugin instance.This field will only be populated if the plugin instance is in the ERROR or FAILED state.
- location string
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - name string
- Identifier. The unique name of the plugin instance resource.
Format:
projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}
- plugin string
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - plugin
Instance stringId - The ID to use for the plugin instance, which will become the final
component of the plugin instance's resource name. This field is optional.
- If provided, the same will be used. The service will throw an error if the specified id is already used by another plugin instance in the plugin resource.
- If not provided, a system generated id will be used. This value should be 4-63 characters, and valid characters are /a-z[0-9]-_/.
- project string
- state string
- The current state of the plugin instance (e.g., enabled, disabled, provisioning). Possible values: STATE_UNSPECIFIED CREATING ACTIVE APPLYING_CONFIG ERROR FAILED DELETING
- update
Time string - Timestamp indicating when the plugin instance was last updated.
- actions
Sequence[Plugin
Instance Action Args] - The action status for the plugin instance. Structure is documented below.
- auth_
config PluginInstance Auth Config Args - AuthConfig represents the authentication information.
- create_
time str - Timestamp indicating when the plugin instance was created.
- disable bool
- The display name for this plugin instance. Max length is 255 characters.
- display_
name str - The display name for this plugin instance. Max length is 255 characters.
- error_
message str - Error message describing the failure, if any, during Create, Delete or ApplyConfig operation corresponding to the plugin instance.This field will only be populated if the plugin instance is in the ERROR or FAILED state.
- location str
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - name str
- Identifier. The unique name of the plugin instance resource.
Format:
projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}
- plugin str
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - plugin_
instance_ strid - The ID to use for the plugin instance, which will become the final
component of the plugin instance's resource name. This field is optional.
- If provided, the same will be used. The service will throw an error if the specified id is already used by another plugin instance in the plugin resource.
- If not provided, a system generated id will be used. This value should be 4-63 characters, and valid characters are /a-z[0-9]-_/.
- project str
- state str
- The current state of the plugin instance (e.g., enabled, disabled, provisioning). Possible values: STATE_UNSPECIFIED CREATING ACTIVE APPLYING_CONFIG ERROR FAILED DELETING
- update_
time str - Timestamp indicating when the plugin instance was last updated.
- actions List<Property Map>
- The action status for the plugin instance. Structure is documented below.
- auth
Config Property Map - AuthConfig represents the authentication information.
- create
Time String - Timestamp indicating when the plugin instance was created.
- disable Boolean
- The display name for this plugin instance. Max length is 255 characters.
- display
Name String - The display name for this plugin instance. Max length is 255 characters.
- error
Message String - Error message describing the failure, if any, during Create, Delete or ApplyConfig operation corresponding to the plugin instance.This field will only be populated if the plugin instance is in the ERROR or FAILED state.
- location String
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - name String
- Identifier. The unique name of the plugin instance resource.
Format:
projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}
- plugin String
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. - plugin
Instance StringId - The ID to use for the plugin instance, which will become the final
component of the plugin instance's resource name. This field is optional.
- If provided, the same will be used. The service will throw an error if the specified id is already used by another plugin instance in the plugin resource.
- If not provided, a system generated id will be used. This value should be 4-63 characters, and valid characters are /a-z[0-9]-_/.
- project String
- state String
- The current state of the plugin instance (e.g., enabled, disabled, provisioning). Possible values: STATE_UNSPECIFIED CREATING ACTIVE APPLYING_CONFIG ERROR FAILED DELETING
- update
Time String - Timestamp indicating when the plugin instance was last updated.
Supporting Types
PluginInstanceAction, PluginInstanceActionArgs
- Action
Id string - This should map to one of the action id specified in actions_config in the plugin.
- Curation
Config PluginInstance Action Curation Config - The curation information for this plugin instance. Structure is documented below.
- Hub
Instance List<PluginActions Instance Action Hub Instance Action> - (Output) The execution status for the plugin instance. Structure is documented below.
- Schedule
Cron stringExpression - The schedule for this plugin instance action. This can only be set if the plugin supports API_HUB_SCHEDULE_TRIGGER mode for this action.
- Schedule
Time stringZone The time zone for the schedule cron expression. If not provided, UTC will be used.
The
hub_instance_action
block contains:- State string
- (Output) The current state of the plugin action in the plugin instance. Possible values: STATE_UNSPECIFIED ENABLED DISABLED ENABLING DISABLING ERROR
- Action
Id string - This should map to one of the action id specified in actions_config in the plugin.
- Curation
Config PluginInstance Action Curation Config - The curation information for this plugin instance. Structure is documented below.
- Hub
Instance []PluginActions Instance Action Hub Instance Action - (Output) The execution status for the plugin instance. Structure is documented below.
- Schedule
Cron stringExpression - The schedule for this plugin instance action. This can only be set if the plugin supports API_HUB_SCHEDULE_TRIGGER mode for this action.
- Schedule
Time stringZone The time zone for the schedule cron expression. If not provided, UTC will be used.
The
hub_instance_action
block contains:- State string
- (Output) The current state of the plugin action in the plugin instance. Possible values: STATE_UNSPECIFIED ENABLED DISABLED ENABLING DISABLING ERROR
- action
Id String - This should map to one of the action id specified in actions_config in the plugin.
- curation
Config PluginInstance Action Curation Config - The curation information for this plugin instance. Structure is documented below.
- hub
Instance List<PluginActions Instance Action Hub Instance Action> - (Output) The execution status for the plugin instance. Structure is documented below.
- schedule
Cron StringExpression - The schedule for this plugin instance action. This can only be set if the plugin supports API_HUB_SCHEDULE_TRIGGER mode for this action.
- schedule
Time StringZone The time zone for the schedule cron expression. If not provided, UTC will be used.
The
hub_instance_action
block contains:- state String
- (Output) The current state of the plugin action in the plugin instance. Possible values: STATE_UNSPECIFIED ENABLED DISABLED ENABLING DISABLING ERROR
- action
Id string - This should map to one of the action id specified in actions_config in the plugin.
- curation
Config PluginInstance Action Curation Config - The curation information for this plugin instance. Structure is documented below.
- hub
Instance PluginActions Instance Action Hub Instance Action[] - (Output) The execution status for the plugin instance. Structure is documented below.
- schedule
Cron stringExpression - The schedule for this plugin instance action. This can only be set if the plugin supports API_HUB_SCHEDULE_TRIGGER mode for this action.
- schedule
Time stringZone The time zone for the schedule cron expression. If not provided, UTC will be used.
The
hub_instance_action
block contains:- state string
- (Output) The current state of the plugin action in the plugin instance. Possible values: STATE_UNSPECIFIED ENABLED DISABLED ENABLING DISABLING ERROR
- action_
id str - This should map to one of the action id specified in actions_config in the plugin.
- curation_
config PluginInstance Action Curation Config - The curation information for this plugin instance. Structure is documented below.
- hub_
instance_ Sequence[Pluginactions Instance Action Hub Instance Action] - (Output) The execution status for the plugin instance. Structure is documented below.
- schedule_
cron_ strexpression - The schedule for this plugin instance action. This can only be set if the plugin supports API_HUB_SCHEDULE_TRIGGER mode for this action.
- schedule_
time_ strzone The time zone for the schedule cron expression. If not provided, UTC will be used.
The
hub_instance_action
block contains:- state str
- (Output) The current state of the plugin action in the plugin instance. Possible values: STATE_UNSPECIFIED ENABLED DISABLED ENABLING DISABLING ERROR
- action
Id String - This should map to one of the action id specified in actions_config in the plugin.
- curation
Config Property Map - The curation information for this plugin instance. Structure is documented below.
- hub
Instance List<Property Map>Actions - (Output) The execution status for the plugin instance. Structure is documented below.
- schedule
Cron StringExpression - The schedule for this plugin instance action. This can only be set if the plugin supports API_HUB_SCHEDULE_TRIGGER mode for this action.
- schedule
Time StringZone The time zone for the schedule cron expression. If not provided, UTC will be used.
The
hub_instance_action
block contains:- state String
- (Output) The current state of the plugin action in the plugin instance. Possible values: STATE_UNSPECIFIED ENABLED DISABLED ENABLING DISABLING ERROR
PluginInstanceActionCurationConfig, PluginInstanceActionCurationConfigArgs
- Curation
Type string - Possible values: CURATION_TYPE_UNSPECIFIED DEFAULT_CURATION_FOR_API_METADATA CUSTOM_CURATION_FOR_API_METADATA
- Custom
Curation PluginInstance Action Curation Config Custom Curation - Custom curation information for this plugin instance. Structure is documented below.
- Curation
Type string - Possible values: CURATION_TYPE_UNSPECIFIED DEFAULT_CURATION_FOR_API_METADATA CUSTOM_CURATION_FOR_API_METADATA
- Custom
Curation PluginInstance Action Curation Config Custom Curation - Custom curation information for this plugin instance. Structure is documented below.
- curation
Type String - Possible values: CURATION_TYPE_UNSPECIFIED DEFAULT_CURATION_FOR_API_METADATA CUSTOM_CURATION_FOR_API_METADATA
- custom
Curation PluginInstance Action Curation Config Custom Curation - Custom curation information for this plugin instance. Structure is documented below.
- curation
Type string - Possible values: CURATION_TYPE_UNSPECIFIED DEFAULT_CURATION_FOR_API_METADATA CUSTOM_CURATION_FOR_API_METADATA
- custom
Curation PluginInstance Action Curation Config Custom Curation - Custom curation information for this plugin instance. Structure is documented below.
- curation_
type str - Possible values: CURATION_TYPE_UNSPECIFIED DEFAULT_CURATION_FOR_API_METADATA CUSTOM_CURATION_FOR_API_METADATA
- custom_
curation PluginInstance Action Curation Config Custom Curation - Custom curation information for this plugin instance. Structure is documented below.
- curation
Type String - Possible values: CURATION_TYPE_UNSPECIFIED DEFAULT_CURATION_FOR_API_METADATA CUSTOM_CURATION_FOR_API_METADATA
- custom
Curation Property Map - Custom curation information for this plugin instance. Structure is documented below.
PluginInstanceActionCurationConfigCustomCuration, PluginInstanceActionCurationConfigCustomCurationArgs
- Curation string
- The unique name of the curation resource. This will be the name of the
curation resource in the format:
projects/{project}/locations/{location}/curations/{curation}
- Curation string
- The unique name of the curation resource. This will be the name of the
curation resource in the format:
projects/{project}/locations/{location}/curations/{curation}
- curation String
- The unique name of the curation resource. This will be the name of the
curation resource in the format:
projects/{project}/locations/{location}/curations/{curation}
- curation string
- The unique name of the curation resource. This will be the name of the
curation resource in the format:
projects/{project}/locations/{location}/curations/{curation}
- curation str
- The unique name of the curation resource. This will be the name of the
curation resource in the format:
projects/{project}/locations/{location}/curations/{curation}
- curation String
- The unique name of the curation resource. This will be the name of the
curation resource in the format:
projects/{project}/locations/{location}/curations/{curation}
PluginInstanceActionHubInstanceAction, PluginInstanceActionHubInstanceActionArgs
- Current
Execution stringState - The current state of the execution. Possible values: CURRENT_EXECUTION_STATE_UNSPECIFIED RUNNING NOT_RUNNING
- Last
Executions List<PluginInstance Action Hub Instance Action Last Execution> - The result of the last execution of the plugin instance.
- Current
Execution stringState - The current state of the execution. Possible values: CURRENT_EXECUTION_STATE_UNSPECIFIED RUNNING NOT_RUNNING
- Last
Executions []PluginInstance Action Hub Instance Action Last Execution - The result of the last execution of the plugin instance.
- current
Execution StringState - The current state of the execution. Possible values: CURRENT_EXECUTION_STATE_UNSPECIFIED RUNNING NOT_RUNNING
- last
Executions List<PluginInstance Action Hub Instance Action Last Execution> - The result of the last execution of the plugin instance.
- current
Execution stringState - The current state of the execution. Possible values: CURRENT_EXECUTION_STATE_UNSPECIFIED RUNNING NOT_RUNNING
- last
Executions PluginInstance Action Hub Instance Action Last Execution[] - The result of the last execution of the plugin instance.
- current_
execution_ strstate - The current state of the execution. Possible values: CURRENT_EXECUTION_STATE_UNSPECIFIED RUNNING NOT_RUNNING
- last_
executions Sequence[PluginInstance Action Hub Instance Action Last Execution] - The result of the last execution of the plugin instance.
- current
Execution StringState - The current state of the execution. Possible values: CURRENT_EXECUTION_STATE_UNSPECIFIED RUNNING NOT_RUNNING
- last
Executions List<Property Map> - The result of the last execution of the plugin instance.
PluginInstanceActionHubInstanceActionLastExecution, PluginInstanceActionHubInstanceActionLastExecutionArgs
- End
Time string - The last execution end time of the plugin instance.
- Error
Message string - Error message describing the failure, if any, during Create, Delete or ApplyConfig operation corresponding to the plugin instance.This field will only be populated if the plugin instance is in the ERROR or FAILED state.
- Result string
- The result of the last execution of the plugin instance. Possible values: RESULT_UNSPECIFIED SUCCEEDED FAILED
- Start
Time string - The last execution start time of the plugin instance.
- End
Time string - The last execution end time of the plugin instance.
- Error
Message string - Error message describing the failure, if any, during Create, Delete or ApplyConfig operation corresponding to the plugin instance.This field will only be populated if the plugin instance is in the ERROR or FAILED state.
- Result string
- The result of the last execution of the plugin instance. Possible values: RESULT_UNSPECIFIED SUCCEEDED FAILED
- Start
Time string - The last execution start time of the plugin instance.
- end
Time String - The last execution end time of the plugin instance.
- error
Message String - Error message describing the failure, if any, during Create, Delete or ApplyConfig operation corresponding to the plugin instance.This field will only be populated if the plugin instance is in the ERROR or FAILED state.
- result String
- The result of the last execution of the plugin instance. Possible values: RESULT_UNSPECIFIED SUCCEEDED FAILED
- start
Time String - The last execution start time of the plugin instance.
- end
Time string - The last execution end time of the plugin instance.
- error
Message string - Error message describing the failure, if any, during Create, Delete or ApplyConfig operation corresponding to the plugin instance.This field will only be populated if the plugin instance is in the ERROR or FAILED state.
- result string
- The result of the last execution of the plugin instance. Possible values: RESULT_UNSPECIFIED SUCCEEDED FAILED
- start
Time string - The last execution start time of the plugin instance.
- end_
time str - The last execution end time of the plugin instance.
- error_
message str - Error message describing the failure, if any, during Create, Delete or ApplyConfig operation corresponding to the plugin instance.This field will only be populated if the plugin instance is in the ERROR or FAILED state.
- result str
- The result of the last execution of the plugin instance. Possible values: RESULT_UNSPECIFIED SUCCEEDED FAILED
- start_
time str - The last execution start time of the plugin instance.
- end
Time String - The last execution end time of the plugin instance.
- error
Message String - Error message describing the failure, if any, during Create, Delete or ApplyConfig operation corresponding to the plugin instance.This field will only be populated if the plugin instance is in the ERROR or FAILED state.
- result String
- The result of the last execution of the plugin instance. Possible values: RESULT_UNSPECIFIED SUCCEEDED FAILED
- start
Time String - The last execution start time of the plugin instance.
PluginInstanceAuthConfig, PluginInstanceAuthConfigArgs
- Auth
Type string - Possible values: AUTH_TYPE_UNSPECIFIED NO_AUTH GOOGLE_SERVICE_ACCOUNT USER_PASSWORD API_KEY OAUTH2_CLIENT_CREDENTIALS
- Api
Key PluginConfig Instance Auth Config Api Key Config - Config for authentication with API key. Structure is documented below.
- Google
Service PluginAccount Config Instance Auth Config Google Service Account Config - Config for Google service account authentication. Structure is documented below.
- Oauth2Client
Credentials PluginConfig Instance Auth Config Oauth2Client Credentials Config - Parameters to support Oauth 2.0 client credentials grant authentication. See https://tools.ietf.org/html/rfc6749#section-1.3.4 for more details. Structure is documented below.
- User
Password PluginConfig Instance Auth Config User Password Config - Parameters to support Username and Password Authentication. Structure is documented below.
- Auth
Type string - Possible values: AUTH_TYPE_UNSPECIFIED NO_AUTH GOOGLE_SERVICE_ACCOUNT USER_PASSWORD API_KEY OAUTH2_CLIENT_CREDENTIALS
- Api
Key PluginConfig Instance Auth Config Api Key Config - Config for authentication with API key. Structure is documented below.
- Google
Service PluginAccount Config Instance Auth Config Google Service Account Config - Config for Google service account authentication. Structure is documented below.
- Oauth2Client
Credentials PluginConfig Instance Auth Config Oauth2Client Credentials Config - Parameters to support Oauth 2.0 client credentials grant authentication. See https://tools.ietf.org/html/rfc6749#section-1.3.4 for more details. Structure is documented below.
- User
Password PluginConfig Instance Auth Config User Password Config - Parameters to support Username and Password Authentication. Structure is documented below.
- auth
Type String - Possible values: AUTH_TYPE_UNSPECIFIED NO_AUTH GOOGLE_SERVICE_ACCOUNT USER_PASSWORD API_KEY OAUTH2_CLIENT_CREDENTIALS
- api
Key PluginConfig Instance Auth Config Api Key Config - Config for authentication with API key. Structure is documented below.
- google
Service PluginAccount Config Instance Auth Config Google Service Account Config - Config for Google service account authentication. Structure is documented below.
- oauth2Client
Credentials PluginConfig Instance Auth Config Oauth2Client Credentials Config - Parameters to support Oauth 2.0 client credentials grant authentication. See https://tools.ietf.org/html/rfc6749#section-1.3.4 for more details. Structure is documented below.
- user
Password PluginConfig Instance Auth Config User Password Config - Parameters to support Username and Password Authentication. Structure is documented below.
- auth
Type string - Possible values: AUTH_TYPE_UNSPECIFIED NO_AUTH GOOGLE_SERVICE_ACCOUNT USER_PASSWORD API_KEY OAUTH2_CLIENT_CREDENTIALS
- api
Key PluginConfig Instance Auth Config Api Key Config - Config for authentication with API key. Structure is documented below.
- google
Service PluginAccount Config Instance Auth Config Google Service Account Config - Config for Google service account authentication. Structure is documented below.
- oauth2Client
Credentials PluginConfig Instance Auth Config Oauth2Client Credentials Config - Parameters to support Oauth 2.0 client credentials grant authentication. See https://tools.ietf.org/html/rfc6749#section-1.3.4 for more details. Structure is documented below.
- user
Password PluginConfig Instance Auth Config User Password Config - Parameters to support Username and Password Authentication. Structure is documented below.
- auth_
type str - Possible values: AUTH_TYPE_UNSPECIFIED NO_AUTH GOOGLE_SERVICE_ACCOUNT USER_PASSWORD API_KEY OAUTH2_CLIENT_CREDENTIALS
- api_
key_ Pluginconfig Instance Auth Config Api Key Config - Config for authentication with API key. Structure is documented below.
- google_
service_ Pluginaccount_ config Instance Auth Config Google Service Account Config - Config for Google service account authentication. Structure is documented below.
- oauth2_
client_ Plugincredentials_ config Instance Auth Config Oauth2Client Credentials Config - Parameters to support Oauth 2.0 client credentials grant authentication. See https://tools.ietf.org/html/rfc6749#section-1.3.4 for more details. Structure is documented below.
- user_
password_ Pluginconfig Instance Auth Config User Password Config - Parameters to support Username and Password Authentication. Structure is documented below.
- auth
Type String - Possible values: AUTH_TYPE_UNSPECIFIED NO_AUTH GOOGLE_SERVICE_ACCOUNT USER_PASSWORD API_KEY OAUTH2_CLIENT_CREDENTIALS
- api
Key Property MapConfig - Config for authentication with API key. Structure is documented below.
- google
Service Property MapAccount Config - Config for Google service account authentication. Structure is documented below.
- oauth2Client
Credentials Property MapConfig - Parameters to support Oauth 2.0 client credentials grant authentication. See https://tools.ietf.org/html/rfc6749#section-1.3.4 for more details. Structure is documented below.
- user
Password Property MapConfig - Parameters to support Username and Password Authentication. Structure is documented below.
PluginInstanceAuthConfigApiKeyConfig, PluginInstanceAuthConfigApiKeyConfigArgs
- Api
Key PluginInstance Auth Config Api Key Config Api Key - Secret provides a reference to entries in Secret Manager. Structure is documented below.
- Http
Element stringLocation - The location of the API key. The default value is QUERY. Possible values: HTTP_ELEMENT_LOCATION_UNSPECIFIED QUERY HEADER PATH BODY COOKIE
- Name string
- The parameter name of the API key. E.g. If the API request is "https://example.com/act?api_key=", "api_key" would be the parameter name.
- Api
Key PluginInstance Auth Config Api Key Config Api Key - Secret provides a reference to entries in Secret Manager. Structure is documented below.
- Http
Element stringLocation - The location of the API key. The default value is QUERY. Possible values: HTTP_ELEMENT_LOCATION_UNSPECIFIED QUERY HEADER PATH BODY COOKIE
- Name string
- The parameter name of the API key. E.g. If the API request is "https://example.com/act?api_key=", "api_key" would be the parameter name.
- api
Key PluginInstance Auth Config Api Key Config Api Key - Secret provides a reference to entries in Secret Manager. Structure is documented below.
- http
Element StringLocation - The location of the API key. The default value is QUERY. Possible values: HTTP_ELEMENT_LOCATION_UNSPECIFIED QUERY HEADER PATH BODY COOKIE
- name String
- The parameter name of the API key. E.g. If the API request is "https://example.com/act?api_key=", "api_key" would be the parameter name.
- api
Key PluginInstance Auth Config Api Key Config Api Key - Secret provides a reference to entries in Secret Manager. Structure is documented below.
- http
Element stringLocation - The location of the API key. The default value is QUERY. Possible values: HTTP_ELEMENT_LOCATION_UNSPECIFIED QUERY HEADER PATH BODY COOKIE
- name string
- The parameter name of the API key. E.g. If the API request is "https://example.com/act?api_key=", "api_key" would be the parameter name.
- api_
key PluginInstance Auth Config Api Key Config Api Key - Secret provides a reference to entries in Secret Manager. Structure is documented below.
- http_
element_ strlocation - The location of the API key. The default value is QUERY. Possible values: HTTP_ELEMENT_LOCATION_UNSPECIFIED QUERY HEADER PATH BODY COOKIE
- name str
- The parameter name of the API key. E.g. If the API request is "https://example.com/act?api_key=", "api_key" would be the parameter name.
- api
Key Property Map - Secret provides a reference to entries in Secret Manager. Structure is documented below.
- http
Element StringLocation - The location of the API key. The default value is QUERY. Possible values: HTTP_ELEMENT_LOCATION_UNSPECIFIED QUERY HEADER PATH BODY COOKIE
- name String
- The parameter name of the API key. E.g. If the API request is "https://example.com/act?api_key=", "api_key" would be the parameter name.
PluginInstanceAuthConfigApiKeyConfigApiKey, PluginInstanceAuthConfigApiKeyConfigApiKeyArgs
- Secret
Version string The resource name of the secret version in the format, format as:
projects/*/secrets/*/versions/*
.The
oauth2_client_credentials_config
block supports:
- Secret
Version string The resource name of the secret version in the format, format as:
projects/*/secrets/*/versions/*
.The
oauth2_client_credentials_config
block supports:
- secret
Version String The resource name of the secret version in the format, format as:
projects/*/secrets/*/versions/*
.The
oauth2_client_credentials_config
block supports:
- secret
Version string The resource name of the secret version in the format, format as:
projects/*/secrets/*/versions/*
.The
oauth2_client_credentials_config
block supports:
- secret_
version str The resource name of the secret version in the format, format as:
projects/*/secrets/*/versions/*
.The
oauth2_client_credentials_config
block supports:
- secret
Version String The resource name of the secret version in the format, format as:
projects/*/secrets/*/versions/*
.The
oauth2_client_credentials_config
block supports:
PluginInstanceAuthConfigGoogleServiceAccountConfig, PluginInstanceAuthConfigGoogleServiceAccountConfigArgs
- Service
Account string - The service account to be used for authenticating request.
The
iam.serviceAccounts.getAccessToken
permission should be granted on this service account to the impersonator service account.
- Service
Account string - The service account to be used for authenticating request.
The
iam.serviceAccounts.getAccessToken
permission should be granted on this service account to the impersonator service account.
- service
Account String - The service account to be used for authenticating request.
The
iam.serviceAccounts.getAccessToken
permission should be granted on this service account to the impersonator service account.
- service
Account string - The service account to be used for authenticating request.
The
iam.serviceAccounts.getAccessToken
permission should be granted on this service account to the impersonator service account.
- service_
account str - The service account to be used for authenticating request.
The
iam.serviceAccounts.getAccessToken
permission should be granted on this service account to the impersonator service account.
- service
Account String - The service account to be used for authenticating request.
The
iam.serviceAccounts.getAccessToken
permission should be granted on this service account to the impersonator service account.
PluginInstanceAuthConfigOauth2ClientCredentialsConfig, PluginInstanceAuthConfigOauth2ClientCredentialsConfigArgs
- Client
Id string - The client identifier.
- Client
Secret PluginInstance Auth Config Oauth2Client Credentials Config Client Secret - Secret provides a reference to entries in Secret Manager.
- Client
Id string - The client identifier.
- Client
Secret PluginInstance Auth Config Oauth2Client Credentials Config Client Secret - Secret provides a reference to entries in Secret Manager.
- client
Id String - The client identifier.
- client
Secret PluginInstance Auth Config Oauth2Client Credentials Config Client Secret - Secret provides a reference to entries in Secret Manager.
- client
Id string - The client identifier.
- client
Secret PluginInstance Auth Config Oauth2Client Credentials Config Client Secret - Secret provides a reference to entries in Secret Manager.
- client_
id str - The client identifier.
- client_
secret PluginInstance Auth Config Oauth2Client Credentials Config Client Secret - Secret provides a reference to entries in Secret Manager.
- client
Id String - The client identifier.
- client
Secret Property Map - Secret provides a reference to entries in Secret Manager.
PluginInstanceAuthConfigOauth2ClientCredentialsConfigClientSecret, PluginInstanceAuthConfigOauth2ClientCredentialsConfigClientSecretArgs
- Secret
Version string - The resource name of the secret version in the format,
format as:
projects/*/secrets/*/versions/*
.
- Secret
Version string - The resource name of the secret version in the format,
format as:
projects/*/secrets/*/versions/*
.
- secret
Version String - The resource name of the secret version in the format,
format as:
projects/*/secrets/*/versions/*
.
- secret
Version string - The resource name of the secret version in the format,
format as:
projects/*/secrets/*/versions/*
.
- secret_
version str - The resource name of the secret version in the format,
format as:
projects/*/secrets/*/versions/*
.
- secret
Version String - The resource name of the secret version in the format,
format as:
projects/*/secrets/*/versions/*
.
PluginInstanceAuthConfigUserPasswordConfig, PluginInstanceAuthConfigUserPasswordConfigArgs
- Password
Plugin
Instance Auth Config User Password Config Password - Secret provides a reference to entries in Secret Manager. Structure is documented below.
- Username string
- Username.
- Password
Plugin
Instance Auth Config User Password Config Password - Secret provides a reference to entries in Secret Manager. Structure is documented below.
- Username string
- Username.
- password
Plugin
Instance Auth Config User Password Config Password - Secret provides a reference to entries in Secret Manager. Structure is documented below.
- username String
- Username.
- password
Plugin
Instance Auth Config User Password Config Password - Secret provides a reference to entries in Secret Manager. Structure is documented below.
- username string
- Username.
- password
Plugin
Instance Auth Config User Password Config Password - Secret provides a reference to entries in Secret Manager. Structure is documented below.
- username str
- Username.
- password Property Map
- Secret provides a reference to entries in Secret Manager. Structure is documented below.
- username String
- Username.
PluginInstanceAuthConfigUserPasswordConfigPassword, PluginInstanceAuthConfigUserPasswordConfigPasswordArgs
- Secret
Version string - The resource name of the secret version in the format,
format as:
projects/*/secrets/*/versions/*
.
- Secret
Version string - The resource name of the secret version in the format,
format as:
projects/*/secrets/*/versions/*
.
- secret
Version String - The resource name of the secret version in the format,
format as:
projects/*/secrets/*/versions/*
.
- secret
Version string - The resource name of the secret version in the format,
format as:
projects/*/secrets/*/versions/*
.
- secret_
version str - The resource name of the secret version in the format,
format as:
projects/*/secrets/*/versions/*
.
- secret
Version String - The resource name of the secret version in the format,
format as:
projects/*/secrets/*/versions/*
.
Import
PluginInstance can be imported using any of these accepted formats:
projects/{{project}}/locations/{{location}}/plugins/{{plugin}}/instances/{{plugin_instance_id}}
{{project}}/{{location}}/{{plugin}}/{{plugin_instance_id}}
{{location}}/{{plugin}}/{{plugin_instance_id}}
When using the pulumi import
command, PluginInstance can be imported using one of the formats above. For example:
$ pulumi import gcp:apihub/pluginInstance:PluginInstance default projects/{{project}}/locations/{{location}}/plugins/{{plugin}}/instances/{{plugin_instance_id}}
$ pulumi import gcp:apihub/pluginInstance:PluginInstance default {{project}}/{{location}}/{{plugin}}/{{plugin_instance_id}}
$ pulumi import gcp:apihub/pluginInstance:PluginInstance default {{location}}/{{plugin}}/{{plugin_instance_id}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.