cloudflare.ApiShieldDiscoveryOperation
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleApiShieldDiscoveryOperation = new cloudflare.ApiShieldDiscoveryOperation("example_api_shield_discovery_operation", {
zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
operationId: "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
state: "review",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_api_shield_discovery_operation = cloudflare.ApiShieldDiscoveryOperation("example_api_shield_discovery_operation",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
operation_id="f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
state="review")
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.NewApiShieldDiscoveryOperation(ctx, "example_api_shield_discovery_operation", &cloudflare.ApiShieldDiscoveryOperationArgs{
ZoneId: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
OperationId: pulumi.String("f174e90a-fafe-4643-bbbc-4a0ed4fc8415"),
State: pulumi.String("review"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleApiShieldDiscoveryOperation = new Cloudflare.ApiShieldDiscoveryOperation("example_api_shield_discovery_operation", new()
{
ZoneId = "023e105f4ecef8ad9ca31a8372d0c353",
OperationId = "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
State = "review",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.ApiShieldDiscoveryOperation;
import com.pulumi.cloudflare.ApiShieldDiscoveryOperationArgs;
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 exampleApiShieldDiscoveryOperation = new ApiShieldDiscoveryOperation("exampleApiShieldDiscoveryOperation", ApiShieldDiscoveryOperationArgs.builder()
.zoneId("023e105f4ecef8ad9ca31a8372d0c353")
.operationId("f174e90a-fafe-4643-bbbc-4a0ed4fc8415")
.state("review")
.build());
}
}
resources:
exampleApiShieldDiscoveryOperation:
type: cloudflare:ApiShieldDiscoveryOperation
name: example_api_shield_discovery_operation
properties:
zoneId: 023e105f4ecef8ad9ca31a8372d0c353
operationId: f174e90a-fafe-4643-bbbc-4a0ed4fc8415
state: review
Create ApiShieldDiscoveryOperation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ApiShieldDiscoveryOperation(name: string, args: ApiShieldDiscoveryOperationArgs, opts?: CustomResourceOptions);
@overload
def ApiShieldDiscoveryOperation(resource_name: str,
args: ApiShieldDiscoveryOperationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ApiShieldDiscoveryOperation(resource_name: str,
opts: Optional[ResourceOptions] = None,
operation_id: Optional[str] = None,
zone_id: Optional[str] = None,
state: Optional[str] = None)
func NewApiShieldDiscoveryOperation(ctx *Context, name string, args ApiShieldDiscoveryOperationArgs, opts ...ResourceOption) (*ApiShieldDiscoveryOperation, error)
public ApiShieldDiscoveryOperation(string name, ApiShieldDiscoveryOperationArgs args, CustomResourceOptions? opts = null)
public ApiShieldDiscoveryOperation(String name, ApiShieldDiscoveryOperationArgs args)
public ApiShieldDiscoveryOperation(String name, ApiShieldDiscoveryOperationArgs args, CustomResourceOptions options)
type: cloudflare:ApiShieldDiscoveryOperation
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 ApiShieldDiscoveryOperationArgs
- 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 ApiShieldDiscoveryOperationArgs
- 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 ApiShieldDiscoveryOperationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApiShieldDiscoveryOperationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApiShieldDiscoveryOperationArgs
- 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 apiShieldDiscoveryOperationResource = new Cloudflare.ApiShieldDiscoveryOperation("apiShieldDiscoveryOperationResource", new()
{
OperationId = "string",
ZoneId = "string",
State = "string",
});
example, err := cloudflare.NewApiShieldDiscoveryOperation(ctx, "apiShieldDiscoveryOperationResource", &cloudflare.ApiShieldDiscoveryOperationArgs{
OperationId: pulumi.String("string"),
ZoneId: pulumi.String("string"),
State: pulumi.String("string"),
})
var apiShieldDiscoveryOperationResource = new ApiShieldDiscoveryOperation("apiShieldDiscoveryOperationResource", ApiShieldDiscoveryOperationArgs.builder()
.operationId("string")
.zoneId("string")
.state("string")
.build());
api_shield_discovery_operation_resource = cloudflare.ApiShieldDiscoveryOperation("apiShieldDiscoveryOperationResource",
operation_id="string",
zone_id="string",
state="string")
const apiShieldDiscoveryOperationResource = new cloudflare.ApiShieldDiscoveryOperation("apiShieldDiscoveryOperationResource", {
operationId: "string",
zoneId: "string",
state: "string",
});
type: cloudflare:ApiShieldDiscoveryOperation
properties:
operationId: string
state: string
zoneId: string
ApiShieldDiscoveryOperation 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 ApiShieldDiscoveryOperation resource accepts the following input properties:
- Operation
Id string - UUID
- Zone
Id string - Identifier
- State string
- Mark state of operation in API Discovery *
review
- Mark operation as for review *ignored
- Mark operation as ignored Available values: "review", "ignored".
- Operation
Id string - UUID
- Zone
Id string - Identifier
- State string
- Mark state of operation in API Discovery *
review
- Mark operation as for review *ignored
- Mark operation as ignored Available values: "review", "ignored".
- operation
Id String - UUID
- zone
Id String - Identifier
- state String
- Mark state of operation in API Discovery *
review
- Mark operation as for review *ignored
- Mark operation as ignored Available values: "review", "ignored".
- operation
Id string - UUID
- zone
Id string - Identifier
- state string
- Mark state of operation in API Discovery *
review
- Mark operation as for review *ignored
- Mark operation as ignored Available values: "review", "ignored".
- operation_
id str - UUID
- zone_
id str - Identifier
- state str
- Mark state of operation in API Discovery *
review
- Mark operation as for review *ignored
- Mark operation as ignored Available values: "review", "ignored".
- operation
Id String - UUID
- zone
Id String - Identifier
- state String
- Mark state of operation in API Discovery *
review
- Mark operation as for review *ignored
- Mark operation as ignored Available values: "review", "ignored".
Outputs
All input properties are implicitly available as output properties. Additionally, the ApiShieldDiscoveryOperation resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ApiShieldDiscoveryOperation Resource
Get an existing ApiShieldDiscoveryOperation 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?: ApiShieldDiscoveryOperationState, opts?: CustomResourceOptions): ApiShieldDiscoveryOperation
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
operation_id: Optional[str] = None,
state: Optional[str] = None,
zone_id: Optional[str] = None) -> ApiShieldDiscoveryOperation
func GetApiShieldDiscoveryOperation(ctx *Context, name string, id IDInput, state *ApiShieldDiscoveryOperationState, opts ...ResourceOption) (*ApiShieldDiscoveryOperation, error)
public static ApiShieldDiscoveryOperation Get(string name, Input<string> id, ApiShieldDiscoveryOperationState? state, CustomResourceOptions? opts = null)
public static ApiShieldDiscoveryOperation get(String name, Output<String> id, ApiShieldDiscoveryOperationState state, CustomResourceOptions options)
resources: _: type: cloudflare:ApiShieldDiscoveryOperation 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.
- Operation
Id string - UUID
- State string
- Mark state of operation in API Discovery *
review
- Mark operation as for review *ignored
- Mark operation as ignored Available values: "review", "ignored". - Zone
Id string - Identifier
- Operation
Id string - UUID
- State string
- Mark state of operation in API Discovery *
review
- Mark operation as for review *ignored
- Mark operation as ignored Available values: "review", "ignored". - Zone
Id string - Identifier
- operation
Id String - UUID
- state String
- Mark state of operation in API Discovery *
review
- Mark operation as for review *ignored
- Mark operation as ignored Available values: "review", "ignored". - zone
Id String - Identifier
- operation
Id string - UUID
- state string
- Mark state of operation in API Discovery *
review
- Mark operation as for review *ignored
- Mark operation as ignored Available values: "review", "ignored". - zone
Id string - Identifier
- operation_
id str - UUID
- state str
- Mark state of operation in API Discovery *
review
- Mark operation as for review *ignored
- Mark operation as ignored Available values: "review", "ignored". - zone_
id str - Identifier
- operation
Id String - UUID
- state String
- Mark state of operation in API Discovery *
review
- Mark operation as for review *ignored
- Mark operation as ignored Available values: "review", "ignored". - zone
Id String - Identifier
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.