1. Packages
  2. Konnect Provider
  3. API Docs
  4. GatewayPluginMocking
konnect 2.4.1 published on Thursday, Mar 13, 2025 by kong

konnect.GatewayPluginMocking

Explore with Pulumi AI

GatewayPluginMocking Resource

Example Usage

Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.konnect.GatewayPluginMocking;
import com.pulumi.konnect.GatewayPluginMockingArgs;
import com.pulumi.konnect.inputs.GatewayPluginMockingConfigArgs;
import com.pulumi.konnect.inputs.GatewayPluginMockingConsumerArgs;
import com.pulumi.konnect.inputs.GatewayPluginMockingOrderingArgs;
import com.pulumi.konnect.inputs.GatewayPluginMockingOrderingAfterArgs;
import com.pulumi.konnect.inputs.GatewayPluginMockingOrderingBeforeArgs;
import com.pulumi.konnect.inputs.GatewayPluginMockingRouteArgs;
import com.pulumi.konnect.inputs.GatewayPluginMockingServiceArgs;
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 myGatewaypluginmocking = new GatewayPluginMocking("myGatewaypluginmocking", GatewayPluginMockingArgs.builder()
            .config(GatewayPluginMockingConfigArgs.builder()
                .api_specification("...my_api_specification...")
                .api_specification_filename("...my_api_specification_filename...")
                .custom_base_path("...my_custom_base_path...")
                .include_base_path(true)
                .included_status_codes(5)
                .max_delay_time(1.21)
                .min_delay_time(6.51)
                .random_delay(true)
                .random_examples(false)
                .random_status_code(true)
                .build())
            .consumer(GatewayPluginMockingConsumerArgs.builder()
                .id("...my_id...")
                .build())
            .controlPlaneId("9524ec7d-36d9-465d-a8c5-83a3c9390458")
            .enabled(true)
            .gatewayPluginMockingId("...my_id...")
            .instanceName("...my_instance_name...")
            .ordering(GatewayPluginMockingOrderingArgs.builder()
                .after(GatewayPluginMockingOrderingAfterArgs.builder()
                    .access("...")
                    .build())
                .before(GatewayPluginMockingOrderingBeforeArgs.builder()
                    .access("...")
                    .build())
                .build())
            .protocols("grpcs")
            .route(GatewayPluginMockingRouteArgs.builder()
                .id("...my_id...")
                .build())
            .service(GatewayPluginMockingServiceArgs.builder()
                .id("...my_id...")
                .build())
            .tags("...")
            .build());

    }
}
Copy
resources:
  myGatewaypluginmocking:
    type: konnect:GatewayPluginMocking
    properties:
      config:
        api_specification: '...my_api_specification...'
        api_specification_filename: '...my_api_specification_filename...'
        custom_base_path: '...my_custom_base_path...'
        include_base_path: true
        included_status_codes:
          - 5
        max_delay_time: 1.21
        min_delay_time: 6.51
        random_delay: true
        random_examples: false
        random_status_code: true
      consumer:
        id: '...my_id...'
      controlPlaneId: 9524ec7d-36d9-465d-a8c5-83a3c9390458
      enabled: true
      gatewayPluginMockingId: '...my_id...'
      instanceName: '...my_instance_name...'
      ordering:
        after:
          access:
            - '...'
        before:
          access:
            - '...'
      protocols:
        - grpcs
      route:
        id: '...my_id...'
      service:
        id: '...my_id...'
      tags:
        - '...'
Copy

Create GatewayPluginMocking Resource

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

Constructor syntax

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

@overload
def GatewayPluginMocking(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         config: Optional[GatewayPluginMockingConfigArgs] = None,
                         control_plane_id: Optional[str] = None,
                         consumer: Optional[GatewayPluginMockingConsumerArgs] = None,
                         enabled: Optional[bool] = None,
                         gateway_plugin_mocking_id: Optional[str] = None,
                         instance_name: Optional[str] = None,
                         ordering: Optional[GatewayPluginMockingOrderingArgs] = None,
                         protocols: Optional[Sequence[str]] = None,
                         route: Optional[GatewayPluginMockingRouteArgs] = None,
                         service: Optional[GatewayPluginMockingServiceArgs] = None,
                         tags: Optional[Sequence[str]] = None)
func NewGatewayPluginMocking(ctx *Context, name string, args GatewayPluginMockingArgs, opts ...ResourceOption) (*GatewayPluginMocking, error)
public GatewayPluginMocking(string name, GatewayPluginMockingArgs args, CustomResourceOptions? opts = null)
public GatewayPluginMocking(String name, GatewayPluginMockingArgs args)
public GatewayPluginMocking(String name, GatewayPluginMockingArgs args, CustomResourceOptions options)
type: konnect:GatewayPluginMocking
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. GatewayPluginMockingArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. GatewayPluginMockingArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. GatewayPluginMockingArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. GatewayPluginMockingArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. GatewayPluginMockingArgs
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 gatewayPluginMockingResource = new Konnect.GatewayPluginMocking("gatewayPluginMockingResource", new()
{
    Config = new Konnect.Inputs.GatewayPluginMockingConfigArgs
    {
        ApiSpecification = "string",
        ApiSpecificationFilename = "string",
        CustomBasePath = "string",
        IncludeBasePath = false,
        IncludedStatusCodes = new[]
        {
            0,
        },
        MaxDelayTime = 0,
        MinDelayTime = 0,
        RandomDelay = false,
        RandomExamples = false,
        RandomStatusCode = false,
    },
    ControlPlaneId = "string",
    Consumer = new Konnect.Inputs.GatewayPluginMockingConsumerArgs
    {
        Id = "string",
    },
    Enabled = false,
    GatewayPluginMockingId = "string",
    InstanceName = "string",
    Ordering = new Konnect.Inputs.GatewayPluginMockingOrderingArgs
    {
        After = new Konnect.Inputs.GatewayPluginMockingOrderingAfterArgs
        {
            Accesses = new[]
            {
                "string",
            },
        },
        Before = new Konnect.Inputs.GatewayPluginMockingOrderingBeforeArgs
        {
            Accesses = new[]
            {
                "string",
            },
        },
    },
    Protocols = new[]
    {
        "string",
    },
    Route = new Konnect.Inputs.GatewayPluginMockingRouteArgs
    {
        Id = "string",
    },
    Service = new Konnect.Inputs.GatewayPluginMockingServiceArgs
    {
        Id = "string",
    },
    Tags = new[]
    {
        "string",
    },
});
Copy
example, err := konnect.NewGatewayPluginMocking(ctx, "gatewayPluginMockingResource", &konnect.GatewayPluginMockingArgs{
Config: &.GatewayPluginMockingConfigArgs{
ApiSpecification: pulumi.String("string"),
ApiSpecificationFilename: pulumi.String("string"),
CustomBasePath: pulumi.String("string"),
IncludeBasePath: pulumi.Bool(false),
IncludedStatusCodes: pulumi.Float64Array{
pulumi.Float64(0),
},
MaxDelayTime: pulumi.Float64(0),
MinDelayTime: pulumi.Float64(0),
RandomDelay: pulumi.Bool(false),
RandomExamples: pulumi.Bool(false),
RandomStatusCode: pulumi.Bool(false),
},
ControlPlaneId: pulumi.String("string"),
Consumer: &.GatewayPluginMockingConsumerArgs{
Id: pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
GatewayPluginMockingId: pulumi.String("string"),
InstanceName: pulumi.String("string"),
Ordering: &.GatewayPluginMockingOrderingArgs{
After: &.GatewayPluginMockingOrderingAfterArgs{
Accesses: pulumi.StringArray{
pulumi.String("string"),
},
},
Before: &.GatewayPluginMockingOrderingBeforeArgs{
Accesses: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Protocols: pulumi.StringArray{
pulumi.String("string"),
},
Route: &.GatewayPluginMockingRouteArgs{
Id: pulumi.String("string"),
},
Service: &.GatewayPluginMockingServiceArgs{
Id: pulumi.String("string"),
},
Tags: pulumi.StringArray{
pulumi.String("string"),
},
})
Copy
var gatewayPluginMockingResource = new GatewayPluginMocking("gatewayPluginMockingResource", GatewayPluginMockingArgs.builder()
    .config(GatewayPluginMockingConfigArgs.builder()
        .apiSpecification("string")
        .apiSpecificationFilename("string")
        .customBasePath("string")
        .includeBasePath(false)
        .includedStatusCodes(0)
        .maxDelayTime(0)
        .minDelayTime(0)
        .randomDelay(false)
        .randomExamples(false)
        .randomStatusCode(false)
        .build())
    .controlPlaneId("string")
    .consumer(GatewayPluginMockingConsumerArgs.builder()
        .id("string")
        .build())
    .enabled(false)
    .gatewayPluginMockingId("string")
    .instanceName("string")
    .ordering(GatewayPluginMockingOrderingArgs.builder()
        .after(GatewayPluginMockingOrderingAfterArgs.builder()
            .accesses("string")
            .build())
        .before(GatewayPluginMockingOrderingBeforeArgs.builder()
            .accesses("string")
            .build())
        .build())
    .protocols("string")
    .route(GatewayPluginMockingRouteArgs.builder()
        .id("string")
        .build())
    .service(GatewayPluginMockingServiceArgs.builder()
        .id("string")
        .build())
    .tags("string")
    .build());
Copy
gateway_plugin_mocking_resource = konnect.GatewayPluginMocking("gatewayPluginMockingResource",
    config={
        "api_specification": "string",
        "api_specification_filename": "string",
        "custom_base_path": "string",
        "include_base_path": False,
        "included_status_codes": [0],
        "max_delay_time": 0,
        "min_delay_time": 0,
        "random_delay": False,
        "random_examples": False,
        "random_status_code": False,
    },
    control_plane_id="string",
    consumer={
        "id": "string",
    },
    enabled=False,
    gateway_plugin_mocking_id="string",
    instance_name="string",
    ordering={
        "after": {
            "accesses": ["string"],
        },
        "before": {
            "accesses": ["string"],
        },
    },
    protocols=["string"],
    route={
        "id": "string",
    },
    service={
        "id": "string",
    },
    tags=["string"])
Copy
const gatewayPluginMockingResource = new konnect.GatewayPluginMocking("gatewayPluginMockingResource", {
    config: {
        apiSpecification: "string",
        apiSpecificationFilename: "string",
        customBasePath: "string",
        includeBasePath: false,
        includedStatusCodes: [0],
        maxDelayTime: 0,
        minDelayTime: 0,
        randomDelay: false,
        randomExamples: false,
        randomStatusCode: false,
    },
    controlPlaneId: "string",
    consumer: {
        id: "string",
    },
    enabled: false,
    gatewayPluginMockingId: "string",
    instanceName: "string",
    ordering: {
        after: {
            accesses: ["string"],
        },
        before: {
            accesses: ["string"],
        },
    },
    protocols: ["string"],
    route: {
        id: "string",
    },
    service: {
        id: "string",
    },
    tags: ["string"],
});
Copy
type: konnect:GatewayPluginMocking
properties:
    config:
        apiSpecification: string
        apiSpecificationFilename: string
        customBasePath: string
        includeBasePath: false
        includedStatusCodes:
            - 0
        maxDelayTime: 0
        minDelayTime: 0
        randomDelay: false
        randomExamples: false
        randomStatusCode: false
    consumer:
        id: string
    controlPlaneId: string
    enabled: false
    gatewayPluginMockingId: string
    instanceName: string
    ordering:
        after:
            accesses:
                - string
        before:
            accesses:
                - string
    protocols:
        - string
    route:
        id: string
    service:
        id: string
    tags:
        - string
Copy

GatewayPluginMocking 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 GatewayPluginMocking resource accepts the following input properties:

Config This property is required. GatewayPluginMockingConfig
ControlPlaneId This property is required. string
The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
Consumer GatewayPluginMockingConsumer
If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.
Enabled bool
Whether the plugin is applied.
GatewayPluginMockingId string
The ID of this resource.
InstanceName string
Ordering GatewayPluginMockingOrdering
Protocols List<string>
A set of strings representing HTTP protocols.
Route GatewayPluginMockingRoute
If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
Service GatewayPluginMockingService
If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
Tags List<string>
An optional set of strings associated with the Plugin for grouping and filtering.
Config This property is required. GatewayPluginMockingConfigArgs
ControlPlaneId This property is required. string
The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
Consumer GatewayPluginMockingConsumerArgs
If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.
Enabled bool
Whether the plugin is applied.
GatewayPluginMockingId string
The ID of this resource.
InstanceName string
Ordering GatewayPluginMockingOrderingArgs
Protocols []string
A set of strings representing HTTP protocols.
Route GatewayPluginMockingRouteArgs
If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
Service GatewayPluginMockingServiceArgs
If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
Tags []string
An optional set of strings associated with the Plugin for grouping and filtering.
config This property is required. GatewayPluginMockingConfig
controlPlaneId This property is required. String
The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
consumer GatewayPluginMockingConsumer
If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.
enabled Boolean
Whether the plugin is applied.
gatewayPluginMockingId String
The ID of this resource.
instanceName String
ordering GatewayPluginMockingOrdering
protocols List<String>
A set of strings representing HTTP protocols.
route GatewayPluginMockingRoute
If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
service GatewayPluginMockingService
If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
tags List<String>
An optional set of strings associated with the Plugin for grouping and filtering.
config This property is required. GatewayPluginMockingConfig
controlPlaneId This property is required. string
The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
consumer GatewayPluginMockingConsumer
If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.
enabled boolean
Whether the plugin is applied.
gatewayPluginMockingId string
The ID of this resource.
instanceName string
ordering GatewayPluginMockingOrdering
protocols string[]
A set of strings representing HTTP protocols.
route GatewayPluginMockingRoute
If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
service GatewayPluginMockingService
If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
tags string[]
An optional set of strings associated with the Plugin for grouping and filtering.
config This property is required. GatewayPluginMockingConfigArgs
control_plane_id This property is required. str
The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
consumer GatewayPluginMockingConsumerArgs
If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.
enabled bool
Whether the plugin is applied.
gateway_plugin_mocking_id str
The ID of this resource.
instance_name str
ordering GatewayPluginMockingOrderingArgs
protocols Sequence[str]
A set of strings representing HTTP protocols.
route GatewayPluginMockingRouteArgs
If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
service GatewayPluginMockingServiceArgs
If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
tags Sequence[str]
An optional set of strings associated with the Plugin for grouping and filtering.
config This property is required. Property Map
controlPlaneId This property is required. String
The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
consumer Property Map
If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.
enabled Boolean
Whether the plugin is applied.
gatewayPluginMockingId String
The ID of this resource.
instanceName String
ordering Property Map
protocols List<String>
A set of strings representing HTTP protocols.
route Property Map
If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
service Property Map
If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
tags List<String>
An optional set of strings associated with the Plugin for grouping and filtering.

Outputs

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

CreatedAt double
Unix epoch when the resource was created.
Id string
The provider-assigned unique ID for this managed resource.
UpdatedAt double
Unix epoch when the resource was last updated.
CreatedAt float64
Unix epoch when the resource was created.
Id string
The provider-assigned unique ID for this managed resource.
UpdatedAt float64
Unix epoch when the resource was last updated.
createdAt Double
Unix epoch when the resource was created.
id String
The provider-assigned unique ID for this managed resource.
updatedAt Double
Unix epoch when the resource was last updated.
createdAt number
Unix epoch when the resource was created.
id string
The provider-assigned unique ID for this managed resource.
updatedAt number
Unix epoch when the resource was last updated.
created_at float
Unix epoch when the resource was created.
id str
The provider-assigned unique ID for this managed resource.
updated_at float
Unix epoch when the resource was last updated.
createdAt Number
Unix epoch when the resource was created.
id String
The provider-assigned unique ID for this managed resource.
updatedAt Number
Unix epoch when the resource was last updated.

Look up Existing GatewayPluginMocking Resource

Get an existing GatewayPluginMocking 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?: GatewayPluginMockingState, opts?: CustomResourceOptions): GatewayPluginMocking
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        config: Optional[GatewayPluginMockingConfigArgs] = None,
        consumer: Optional[GatewayPluginMockingConsumerArgs] = None,
        control_plane_id: Optional[str] = None,
        created_at: Optional[float] = None,
        enabled: Optional[bool] = None,
        gateway_plugin_mocking_id: Optional[str] = None,
        instance_name: Optional[str] = None,
        ordering: Optional[GatewayPluginMockingOrderingArgs] = None,
        protocols: Optional[Sequence[str]] = None,
        route: Optional[GatewayPluginMockingRouteArgs] = None,
        service: Optional[GatewayPluginMockingServiceArgs] = None,
        tags: Optional[Sequence[str]] = None,
        updated_at: Optional[float] = None) -> GatewayPluginMocking
func GetGatewayPluginMocking(ctx *Context, name string, id IDInput, state *GatewayPluginMockingState, opts ...ResourceOption) (*GatewayPluginMocking, error)
public static GatewayPluginMocking Get(string name, Input<string> id, GatewayPluginMockingState? state, CustomResourceOptions? opts = null)
public static GatewayPluginMocking get(String name, Output<String> id, GatewayPluginMockingState state, CustomResourceOptions options)
resources:  _:    type: konnect:GatewayPluginMocking    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Config GatewayPluginMockingConfig
Consumer GatewayPluginMockingConsumer
If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.
ControlPlaneId string
The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
CreatedAt double
Unix epoch when the resource was created.
Enabled bool
Whether the plugin is applied.
GatewayPluginMockingId string
The ID of this resource.
InstanceName string
Ordering GatewayPluginMockingOrdering
Protocols List<string>
A set of strings representing HTTP protocols.
Route GatewayPluginMockingRoute
If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
Service GatewayPluginMockingService
If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
Tags List<string>
An optional set of strings associated with the Plugin for grouping and filtering.
UpdatedAt double
Unix epoch when the resource was last updated.
Config GatewayPluginMockingConfigArgs
Consumer GatewayPluginMockingConsumerArgs
If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.
ControlPlaneId string
The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
CreatedAt float64
Unix epoch when the resource was created.
Enabled bool
Whether the plugin is applied.
GatewayPluginMockingId string
The ID of this resource.
InstanceName string
Ordering GatewayPluginMockingOrderingArgs
Protocols []string
A set of strings representing HTTP protocols.
Route GatewayPluginMockingRouteArgs
If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
Service GatewayPluginMockingServiceArgs
If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
Tags []string
An optional set of strings associated with the Plugin for grouping and filtering.
UpdatedAt float64
Unix epoch when the resource was last updated.
config GatewayPluginMockingConfig
consumer GatewayPluginMockingConsumer
If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.
controlPlaneId String
The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
createdAt Double
Unix epoch when the resource was created.
enabled Boolean
Whether the plugin is applied.
gatewayPluginMockingId String
The ID of this resource.
instanceName String
ordering GatewayPluginMockingOrdering
protocols List<String>
A set of strings representing HTTP protocols.
route GatewayPluginMockingRoute
If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
service GatewayPluginMockingService
If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
tags List<String>
An optional set of strings associated with the Plugin for grouping and filtering.
updatedAt Double
Unix epoch when the resource was last updated.
config GatewayPluginMockingConfig
consumer GatewayPluginMockingConsumer
If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.
controlPlaneId string
The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
createdAt number
Unix epoch when the resource was created.
enabled boolean
Whether the plugin is applied.
gatewayPluginMockingId string
The ID of this resource.
instanceName string
ordering GatewayPluginMockingOrdering
protocols string[]
A set of strings representing HTTP protocols.
route GatewayPluginMockingRoute
If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
service GatewayPluginMockingService
If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
tags string[]
An optional set of strings associated with the Plugin for grouping and filtering.
updatedAt number
Unix epoch when the resource was last updated.
config GatewayPluginMockingConfigArgs
consumer GatewayPluginMockingConsumerArgs
If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.
control_plane_id str
The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
created_at float
Unix epoch when the resource was created.
enabled bool
Whether the plugin is applied.
gateway_plugin_mocking_id str
The ID of this resource.
instance_name str
ordering GatewayPluginMockingOrderingArgs
protocols Sequence[str]
A set of strings representing HTTP protocols.
route GatewayPluginMockingRouteArgs
If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
service GatewayPluginMockingServiceArgs
If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
tags Sequence[str]
An optional set of strings associated with the Plugin for grouping and filtering.
updated_at float
Unix epoch when the resource was last updated.
config Property Map
consumer Property Map
If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.
controlPlaneId String
The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
createdAt Number
Unix epoch when the resource was created.
enabled Boolean
Whether the plugin is applied.
gatewayPluginMockingId String
The ID of this resource.
instanceName String
ordering Property Map
protocols List<String>
A set of strings representing HTTP protocols.
route Property Map
If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
service Property Map
If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
tags List<String>
An optional set of strings associated with the Plugin for grouping and filtering.
updatedAt Number
Unix epoch when the resource was last updated.

Supporting Types

GatewayPluginMockingConfig
, GatewayPluginMockingConfigArgs

ApiSpecification string
The contents of the specification file. You must use this option for hybrid or DB-less mode. You can include the full specification as part of the configuration. In Kong Manager, you can copy and paste the contents of the spec directly into the Config.Api Specification text field.
ApiSpecificationFilename string
The path and name of the specification file loaded into Kong Gateway's database. You cannot use this option for DB-less or hybrid mode.
CustomBasePath string
The base path to be used for path match evaluation. This value is ignored if include_base_path is set to false.
IncludeBasePath bool
Indicates whether to include the base path when performing path match evaluation.
IncludedStatusCodes List<double>
A global list of the HTTP status codes that can only be selected and returned.
MaxDelayTime double
The maximum value in seconds of delay time. Set this value when random_delay is enabled and you want to adjust the default. The value must be greater than the min_delay_time.
MinDelayTime double
The minimum value in seconds of delay time. Set this value when random_delay is enabled and you want to adjust the default. The value must be less than the max_delay_time.
RandomDelay bool
Enables a random delay in the mocked response. Introduces delays to simulate real-time response times by APIs.
RandomExamples bool
Randomly selects one example and returns it. This parameter requires the spec to have multiple examples configured.
RandomStatusCode bool
Determines whether to randomly select an HTTP status code from the responses of the corresponding API method. The default value is false, which means the minimum HTTP status code is always selected and returned.
ApiSpecification string
The contents of the specification file. You must use this option for hybrid or DB-less mode. You can include the full specification as part of the configuration. In Kong Manager, you can copy and paste the contents of the spec directly into the Config.Api Specification text field.
ApiSpecificationFilename string
The path and name of the specification file loaded into Kong Gateway's database. You cannot use this option for DB-less or hybrid mode.
CustomBasePath string
The base path to be used for path match evaluation. This value is ignored if include_base_path is set to false.
IncludeBasePath bool
Indicates whether to include the base path when performing path match evaluation.
IncludedStatusCodes []float64
A global list of the HTTP status codes that can only be selected and returned.
MaxDelayTime float64
The maximum value in seconds of delay time. Set this value when random_delay is enabled and you want to adjust the default. The value must be greater than the min_delay_time.
MinDelayTime float64
The minimum value in seconds of delay time. Set this value when random_delay is enabled and you want to adjust the default. The value must be less than the max_delay_time.
RandomDelay bool
Enables a random delay in the mocked response. Introduces delays to simulate real-time response times by APIs.
RandomExamples bool
Randomly selects one example and returns it. This parameter requires the spec to have multiple examples configured.
RandomStatusCode bool
Determines whether to randomly select an HTTP status code from the responses of the corresponding API method. The default value is false, which means the minimum HTTP status code is always selected and returned.
apiSpecification String
The contents of the specification file. You must use this option for hybrid or DB-less mode. You can include the full specification as part of the configuration. In Kong Manager, you can copy and paste the contents of the spec directly into the Config.Api Specification text field.
apiSpecificationFilename String
The path and name of the specification file loaded into Kong Gateway's database. You cannot use this option for DB-less or hybrid mode.
customBasePath String
The base path to be used for path match evaluation. This value is ignored if include_base_path is set to false.
includeBasePath Boolean
Indicates whether to include the base path when performing path match evaluation.
includedStatusCodes List<Double>
A global list of the HTTP status codes that can only be selected and returned.
maxDelayTime Double
The maximum value in seconds of delay time. Set this value when random_delay is enabled and you want to adjust the default. The value must be greater than the min_delay_time.
minDelayTime Double
The minimum value in seconds of delay time. Set this value when random_delay is enabled and you want to adjust the default. The value must be less than the max_delay_time.
randomDelay Boolean
Enables a random delay in the mocked response. Introduces delays to simulate real-time response times by APIs.
randomExamples Boolean
Randomly selects one example and returns it. This parameter requires the spec to have multiple examples configured.
randomStatusCode Boolean
Determines whether to randomly select an HTTP status code from the responses of the corresponding API method. The default value is false, which means the minimum HTTP status code is always selected and returned.
apiSpecification string
The contents of the specification file. You must use this option for hybrid or DB-less mode. You can include the full specification as part of the configuration. In Kong Manager, you can copy and paste the contents of the spec directly into the Config.Api Specification text field.
apiSpecificationFilename string
The path and name of the specification file loaded into Kong Gateway's database. You cannot use this option for DB-less or hybrid mode.
customBasePath string
The base path to be used for path match evaluation. This value is ignored if include_base_path is set to false.
includeBasePath boolean
Indicates whether to include the base path when performing path match evaluation.
includedStatusCodes number[]
A global list of the HTTP status codes that can only be selected and returned.
maxDelayTime number
The maximum value in seconds of delay time. Set this value when random_delay is enabled and you want to adjust the default. The value must be greater than the min_delay_time.
minDelayTime number
The minimum value in seconds of delay time. Set this value when random_delay is enabled and you want to adjust the default. The value must be less than the max_delay_time.
randomDelay boolean
Enables a random delay in the mocked response. Introduces delays to simulate real-time response times by APIs.
randomExamples boolean
Randomly selects one example and returns it. This parameter requires the spec to have multiple examples configured.
randomStatusCode boolean
Determines whether to randomly select an HTTP status code from the responses of the corresponding API method. The default value is false, which means the minimum HTTP status code is always selected and returned.
api_specification str
The contents of the specification file. You must use this option for hybrid or DB-less mode. You can include the full specification as part of the configuration. In Kong Manager, you can copy and paste the contents of the spec directly into the Config.Api Specification text field.
api_specification_filename str
The path and name of the specification file loaded into Kong Gateway's database. You cannot use this option for DB-less or hybrid mode.
custom_base_path str
The base path to be used for path match evaluation. This value is ignored if include_base_path is set to false.
include_base_path bool
Indicates whether to include the base path when performing path match evaluation.
included_status_codes Sequence[float]
A global list of the HTTP status codes that can only be selected and returned.
max_delay_time float
The maximum value in seconds of delay time. Set this value when random_delay is enabled and you want to adjust the default. The value must be greater than the min_delay_time.
min_delay_time float
The minimum value in seconds of delay time. Set this value when random_delay is enabled and you want to adjust the default. The value must be less than the max_delay_time.
random_delay bool
Enables a random delay in the mocked response. Introduces delays to simulate real-time response times by APIs.
random_examples bool
Randomly selects one example and returns it. This parameter requires the spec to have multiple examples configured.
random_status_code bool
Determines whether to randomly select an HTTP status code from the responses of the corresponding API method. The default value is false, which means the minimum HTTP status code is always selected and returned.
apiSpecification String
The contents of the specification file. You must use this option for hybrid or DB-less mode. You can include the full specification as part of the configuration. In Kong Manager, you can copy and paste the contents of the spec directly into the Config.Api Specification text field.
apiSpecificationFilename String
The path and name of the specification file loaded into Kong Gateway's database. You cannot use this option for DB-less or hybrid mode.
customBasePath String
The base path to be used for path match evaluation. This value is ignored if include_base_path is set to false.
includeBasePath Boolean
Indicates whether to include the base path when performing path match evaluation.
includedStatusCodes List<Number>
A global list of the HTTP status codes that can only be selected and returned.
maxDelayTime Number
The maximum value in seconds of delay time. Set this value when random_delay is enabled and you want to adjust the default. The value must be greater than the min_delay_time.
minDelayTime Number
The minimum value in seconds of delay time. Set this value when random_delay is enabled and you want to adjust the default. The value must be less than the max_delay_time.
randomDelay Boolean
Enables a random delay in the mocked response. Introduces delays to simulate real-time response times by APIs.
randomExamples Boolean
Randomly selects one example and returns it. This parameter requires the spec to have multiple examples configured.
randomStatusCode Boolean
Determines whether to randomly select an HTTP status code from the responses of the corresponding API method. The default value is false, which means the minimum HTTP status code is always selected and returned.

GatewayPluginMockingConsumer
, GatewayPluginMockingConsumerArgs

Id string
Id string
id String
id string
id str
id String

GatewayPluginMockingOrdering
, GatewayPluginMockingOrderingArgs

GatewayPluginMockingOrderingAfter
, GatewayPluginMockingOrderingAfterArgs

Accesses List<string>
Accesses []string
accesses List<String>
accesses string[]
accesses Sequence[str]
accesses List<String>

GatewayPluginMockingOrderingBefore
, GatewayPluginMockingOrderingBeforeArgs

Accesses List<string>
Accesses []string
accesses List<String>
accesses string[]
accesses Sequence[str]
accesses List<String>

GatewayPluginMockingRoute
, GatewayPluginMockingRouteArgs

Id string
Id string
id String
id string
id str
id String

GatewayPluginMockingService
, GatewayPluginMockingServiceArgs

Id string
Id string
id String
id string
id str
id String

Import

$ pulumi import konnect:index/gatewayPluginMocking:GatewayPluginMocking my_konnect_gateway_plugin_mocking "{ \"control_plane_id\": \"9524ec7d-36d9-465d-a8c5-83a3c9390458\", \"plugin_id\": \"3473c251-5b6c-4f45-b1ff-7ede735a366d\"}"
Copy

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

Package Details

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