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());
    }
}
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:
        - '...'
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 string
- The unique name of the resource.
- args GatewayPluginMockingArgs
- 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 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 string
- The unique name of the resource.
- args GatewayPluginMockingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GatewayPluginMockingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
    },
});
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"),
},
})
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());
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"])
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"],
});
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
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
GatewayPlugin Mocking Config 
- ControlPlane stringId 
- The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- Consumer
GatewayPlugin Mocking Consumer 
- 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.
- GatewayPlugin stringMocking Id 
- The ID of this resource.
- InstanceName string
- Ordering
GatewayPlugin Mocking Ordering 
- Protocols List<string>
- A set of strings representing HTTP protocols.
- Route
GatewayPlugin Mocking Route 
- 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
GatewayPlugin Mocking Service 
- 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.
- List<string>
- An optional set of strings associated with the Plugin for grouping and filtering.
- Config
GatewayPlugin Mocking Config Args 
- ControlPlane stringId 
- The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- Consumer
GatewayPlugin Mocking Consumer Args 
- 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.
- GatewayPlugin stringMocking Id 
- The ID of this resource.
- InstanceName string
- Ordering
GatewayPlugin Mocking Ordering Args 
- Protocols []string
- A set of strings representing HTTP protocols.
- Route
GatewayPlugin Mocking Route Args 
- 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
GatewayPlugin Mocking Service Args 
- 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.
- []string
- An optional set of strings associated with the Plugin for grouping and filtering.
- config
GatewayPlugin Mocking Config 
- controlPlane StringId 
- The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- consumer
GatewayPlugin Mocking Consumer 
- 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.
- gatewayPlugin StringMocking Id 
- The ID of this resource.
- instanceName String
- ordering
GatewayPlugin Mocking Ordering 
- protocols List<String>
- A set of strings representing HTTP protocols.
- route
GatewayPlugin Mocking Route 
- 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
GatewayPlugin Mocking Service 
- 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.
- List<String>
- An optional set of strings associated with the Plugin for grouping and filtering.
- config
GatewayPlugin Mocking Config 
- controlPlane stringId 
- The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- consumer
GatewayPlugin Mocking Consumer 
- 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.
- gatewayPlugin stringMocking Id 
- The ID of this resource.
- instanceName string
- ordering
GatewayPlugin Mocking Ordering 
- protocols string[]
- A set of strings representing HTTP protocols.
- route
GatewayPlugin Mocking Route 
- 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
GatewayPlugin Mocking Service 
- 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.
- string[]
- An optional set of strings associated with the Plugin for grouping and filtering.
- config
GatewayPlugin Mocking Config Args 
- control_plane_ strid 
- The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- consumer
GatewayPlugin Mocking Consumer Args 
- 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_ strmocking_ id 
- The ID of this resource.
- instance_name str
- ordering
GatewayPlugin Mocking Ordering Args 
- protocols Sequence[str]
- A set of strings representing HTTP protocols.
- route
GatewayPlugin Mocking Route Args 
- 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
GatewayPlugin Mocking Service Args 
- 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.
- Sequence[str]
- An optional set of strings associated with the Plugin for grouping and filtering.
- config Property Map
- controlPlane StringId 
- 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.
- gatewayPlugin StringMocking Id 
- 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.
- 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:
- 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.
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) -> GatewayPluginMockingfunc 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
- 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.
- Config
GatewayPlugin Mocking Config 
- Consumer
GatewayPlugin Mocking Consumer 
- 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.
- ControlPlane stringId 
- 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.
- GatewayPlugin stringMocking Id 
- The ID of this resource.
- InstanceName string
- Ordering
GatewayPlugin Mocking Ordering 
- Protocols List<string>
- A set of strings representing HTTP protocols.
- Route
GatewayPlugin Mocking Route 
- 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
GatewayPlugin Mocking Service 
- 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.
- 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
GatewayPlugin Mocking Config Args 
- Consumer
GatewayPlugin Mocking Consumer Args 
- 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.
- ControlPlane stringId 
- 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.
- GatewayPlugin stringMocking Id 
- The ID of this resource.
- InstanceName string
- Ordering
GatewayPlugin Mocking Ordering Args 
- Protocols []string
- A set of strings representing HTTP protocols.
- Route
GatewayPlugin Mocking Route Args 
- 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
GatewayPlugin Mocking Service Args 
- 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.
- []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
GatewayPlugin Mocking Config 
- consumer
GatewayPlugin Mocking Consumer 
- 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.
- controlPlane StringId 
- 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.
- gatewayPlugin StringMocking Id 
- The ID of this resource.
- instanceName String
- ordering
GatewayPlugin Mocking Ordering 
- protocols List<String>
- A set of strings representing HTTP protocols.
- route
GatewayPlugin Mocking Route 
- 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
GatewayPlugin Mocking Service 
- 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.
- 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
GatewayPlugin Mocking Config 
- consumer
GatewayPlugin Mocking Consumer 
- 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.
- controlPlane stringId 
- 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.
- gatewayPlugin stringMocking Id 
- The ID of this resource.
- instanceName string
- ordering
GatewayPlugin Mocking Ordering 
- protocols string[]
- A set of strings representing HTTP protocols.
- route
GatewayPlugin Mocking Route 
- 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
GatewayPlugin Mocking Service 
- 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.
- 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
GatewayPlugin Mocking Config Args 
- consumer
GatewayPlugin Mocking Consumer Args 
- 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_ strid 
- 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_ strmocking_ id 
- The ID of this resource.
- instance_name str
- ordering
GatewayPlugin Mocking Ordering Args 
- protocols Sequence[str]
- A set of strings representing HTTP protocols.
- route
GatewayPlugin Mocking Route Args 
- 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
GatewayPlugin Mocking Service Args 
- 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.
- 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.
- controlPlane StringId 
- 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.
- gatewayPlugin StringMocking Id 
- 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.
- 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 Specificationtext field.
- ApiSpecification stringFilename 
- 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.
- CustomBase stringPath 
- The base path to be used for path match evaluation. This value is ignored if include_base_pathis set tofalse.
- IncludeBase boolPath 
- Indicates whether to include the base path when performing path match evaluation.
- IncludedStatus List<double>Codes 
- A global list of the HTTP status codes that can only be selected and returned.
- MaxDelay doubleTime 
- The maximum value in seconds of delay time. Set this value when random_delayis enabled and you want to adjust the default. The value must be greater than themin_delay_time.
- MinDelay doubleTime 
- The minimum value in seconds of delay time. Set this value when random_delayis enabled and you want to adjust the default. The value must be less than themax_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.
- RandomStatus boolCode 
- 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 Specificationtext field.
- ApiSpecification stringFilename 
- 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.
- CustomBase stringPath 
- The base path to be used for path match evaluation. This value is ignored if include_base_pathis set tofalse.
- IncludeBase boolPath 
- Indicates whether to include the base path when performing path match evaluation.
- IncludedStatus []float64Codes 
- A global list of the HTTP status codes that can only be selected and returned.
- MaxDelay float64Time 
- The maximum value in seconds of delay time. Set this value when random_delayis enabled and you want to adjust the default. The value must be greater than themin_delay_time.
- MinDelay float64Time 
- The minimum value in seconds of delay time. Set this value when random_delayis enabled and you want to adjust the default. The value must be less than themax_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.
- RandomStatus boolCode 
- 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 Specificationtext field.
- apiSpecification StringFilename 
- 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.
- customBase StringPath 
- The base path to be used for path match evaluation. This value is ignored if include_base_pathis set tofalse.
- includeBase BooleanPath 
- Indicates whether to include the base path when performing path match evaluation.
- includedStatus List<Double>Codes 
- A global list of the HTTP status codes that can only be selected and returned.
- maxDelay DoubleTime 
- The maximum value in seconds of delay time. Set this value when random_delayis enabled and you want to adjust the default. The value must be greater than themin_delay_time.
- minDelay DoubleTime 
- The minimum value in seconds of delay time. Set this value when random_delayis enabled and you want to adjust the default. The value must be less than themax_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.
- randomStatus BooleanCode 
- 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 Specificationtext field.
- apiSpecification stringFilename 
- 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.
- customBase stringPath 
- The base path to be used for path match evaluation. This value is ignored if include_base_pathis set tofalse.
- includeBase booleanPath 
- Indicates whether to include the base path when performing path match evaluation.
- includedStatus number[]Codes 
- A global list of the HTTP status codes that can only be selected and returned.
- maxDelay numberTime 
- The maximum value in seconds of delay time. Set this value when random_delayis enabled and you want to adjust the default. The value must be greater than themin_delay_time.
- minDelay numberTime 
- The minimum value in seconds of delay time. Set this value when random_delayis enabled and you want to adjust the default. The value must be less than themax_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.
- randomStatus booleanCode 
- 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 Specificationtext field.
- api_specification_ strfilename 
- 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_ strpath 
- The base path to be used for path match evaluation. This value is ignored if include_base_pathis set tofalse.
- include_base_ boolpath 
- Indicates whether to include the base path when performing path match evaluation.
- included_status_ Sequence[float]codes 
- A global list of the HTTP status codes that can only be selected and returned.
- max_delay_ floattime 
- The maximum value in seconds of delay time. Set this value when random_delayis enabled and you want to adjust the default. The value must be greater than themin_delay_time.
- min_delay_ floattime 
- The minimum value in seconds of delay time. Set this value when random_delayis enabled and you want to adjust the default. The value must be less than themax_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_ boolcode 
- 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 Specificationtext field.
- apiSpecification StringFilename 
- 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.
- customBase StringPath 
- The base path to be used for path match evaluation. This value is ignored if include_base_pathis set tofalse.
- includeBase BooleanPath 
- Indicates whether to include the base path when performing path match evaluation.
- includedStatus List<Number>Codes 
- A global list of the HTTP status codes that can only be selected and returned.
- maxDelay NumberTime 
- The maximum value in seconds of delay time. Set this value when random_delayis enabled and you want to adjust the default. The value must be greater than themin_delay_time.
- minDelay NumberTime 
- The minimum value in seconds of delay time. Set this value when random_delayis enabled and you want to adjust the default. The value must be less than themax_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.
- randomStatus BooleanCode 
- 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\"}"
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 konnectTerraform Provider.