Dynatrace v0.10.0 published on Friday, Jun 7, 2024 by Pulumiverse
dynatrace.ApiDetection
Explore with Pulumi AI
Create ApiDetection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ApiDetection(name: string, args: ApiDetectionArgs, opts?: CustomResourceOptions);
@overload
def ApiDetection(resource_name: str,
args: ApiDetectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ApiDetection(resource_name: str,
opts: Optional[ResourceOptions] = None,
api_color: Optional[str] = None,
api_name: Optional[str] = None,
third_party_api: Optional[bool] = None,
conditions: Optional[ApiDetectionConditionsArgs] = None,
insert_after: Optional[str] = None,
technology: Optional[str] = None)
func NewApiDetection(ctx *Context, name string, args ApiDetectionArgs, opts ...ResourceOption) (*ApiDetection, error)
public ApiDetection(string name, ApiDetectionArgs args, CustomResourceOptions? opts = null)
public ApiDetection(String name, ApiDetectionArgs args)
public ApiDetection(String name, ApiDetectionArgs args, CustomResourceOptions options)
type: dynatrace:ApiDetection
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 ApiDetectionArgs
- 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 ApiDetectionArgs
- 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 ApiDetectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApiDetectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApiDetectionArgs
- 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 apiDetectionResource = new Dynatrace.ApiDetection("apiDetectionResource", new()
{
ApiColor = "string",
ApiName = "string",
ThirdPartyApi = false,
Conditions = new Dynatrace.Inputs.ApiDetectionConditionsArgs
{
Conditions = new[]
{
new Dynatrace.Inputs.ApiDetectionConditionsConditionArgs
{
Base = "string",
Matcher = "string",
Pattern = "string",
},
},
},
InsertAfter = "string",
Technology = "string",
});
example, err := dynatrace.NewApiDetection(ctx, "apiDetectionResource", &dynatrace.ApiDetectionArgs{
ApiColor: pulumi.String("string"),
ApiName: pulumi.String("string"),
ThirdPartyApi: pulumi.Bool(false),
Conditions: &dynatrace.ApiDetectionConditionsArgs{
Conditions: dynatrace.ApiDetectionConditionsConditionArray{
&dynatrace.ApiDetectionConditionsConditionArgs{
Base: pulumi.String("string"),
Matcher: pulumi.String("string"),
Pattern: pulumi.String("string"),
},
},
},
InsertAfter: pulumi.String("string"),
Technology: pulumi.String("string"),
})
var apiDetectionResource = new ApiDetection("apiDetectionResource", ApiDetectionArgs.builder()
.apiColor("string")
.apiName("string")
.thirdPartyApi(false)
.conditions(ApiDetectionConditionsArgs.builder()
.conditions(ApiDetectionConditionsConditionArgs.builder()
.base("string")
.matcher("string")
.pattern("string")
.build())
.build())
.insertAfter("string")
.technology("string")
.build());
api_detection_resource = dynatrace.ApiDetection("apiDetectionResource",
api_color="string",
api_name="string",
third_party_api=False,
conditions=dynatrace.ApiDetectionConditionsArgs(
conditions=[dynatrace.ApiDetectionConditionsConditionArgs(
base="string",
matcher="string",
pattern="string",
)],
),
insert_after="string",
technology="string")
const apiDetectionResource = new dynatrace.ApiDetection("apiDetectionResource", {
apiColor: "string",
apiName: "string",
thirdPartyApi: false,
conditions: {
conditions: [{
base: "string",
matcher: "string",
pattern: "string",
}],
},
insertAfter: "string",
technology: "string",
});
type: dynatrace:ApiDetection
properties:
apiColor: string
apiName: string
conditions:
conditions:
- base: string
matcher: string
pattern: string
insertAfter: string
technology: string
thirdPartyApi: false
ApiDetection Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ApiDetection resource accepts the following input properties:
- Api
Color string - This color will be used to highlight APIs when viewing code level data, such as distributed traces or method hotspots.
- Api
Name string - API name
- Third
Party boolApi - This API defines a third party library
- Conditions
Pulumiverse.
Dynatrace. Inputs. Api Detection Conditions - List of conditions
- Insert
After string - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- Technology string
- Restrict this rule to a specific technology.
- Api
Color string - This color will be used to highlight APIs when viewing code level data, such as distributed traces or method hotspots.
- Api
Name string - API name
- Third
Party boolApi - This API defines a third party library
- Conditions
Api
Detection Conditions Args - List of conditions
- Insert
After string - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- Technology string
- Restrict this rule to a specific technology.
- api
Color String - This color will be used to highlight APIs when viewing code level data, such as distributed traces or method hotspots.
- api
Name String - API name
- third
Party BooleanApi - This API defines a third party library
- conditions
Api
Detection Conditions - List of conditions
- insert
After String - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- technology String
- Restrict this rule to a specific technology.
- api
Color string - This color will be used to highlight APIs when viewing code level data, such as distributed traces or method hotspots.
- api
Name string - API name
- third
Party booleanApi - This API defines a third party library
- conditions
Api
Detection Conditions - List of conditions
- insert
After string - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- technology string
- Restrict this rule to a specific technology.
- api_
color str - This color will be used to highlight APIs when viewing code level data, such as distributed traces or method hotspots.
- api_
name str - API name
- third_
party_ boolapi - This API defines a third party library
- conditions
Api
Detection Conditions Args - List of conditions
- insert_
after str - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- technology str
- Restrict this rule to a specific technology.
- api
Color String - This color will be used to highlight APIs when viewing code level data, such as distributed traces or method hotspots.
- api
Name String - API name
- third
Party BooleanApi - This API defines a third party library
- conditions Property Map
- List of conditions
- insert
After String - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- technology String
- Restrict this rule to a specific technology.
Outputs
All input properties are implicitly available as output properties. Additionally, the ApiDetection 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 ApiDetection Resource
Get an existing ApiDetection 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?: ApiDetectionState, opts?: CustomResourceOptions): ApiDetection
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
api_color: Optional[str] = None,
api_name: Optional[str] = None,
conditions: Optional[ApiDetectionConditionsArgs] = None,
insert_after: Optional[str] = None,
technology: Optional[str] = None,
third_party_api: Optional[bool] = None) -> ApiDetection
func GetApiDetection(ctx *Context, name string, id IDInput, state *ApiDetectionState, opts ...ResourceOption) (*ApiDetection, error)
public static ApiDetection Get(string name, Input<string> id, ApiDetectionState? state, CustomResourceOptions? opts = null)
public static ApiDetection get(String name, Output<String> id, ApiDetectionState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Api
Color string - This color will be used to highlight APIs when viewing code level data, such as distributed traces or method hotspots.
- Api
Name string - API name
- Conditions
Pulumiverse.
Dynatrace. Inputs. Api Detection Conditions - List of conditions
- Insert
After string - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- Technology string
- Restrict this rule to a specific technology.
- Third
Party boolApi - This API defines a third party library
- Api
Color string - This color will be used to highlight APIs when viewing code level data, such as distributed traces or method hotspots.
- Api
Name string - API name
- Conditions
Api
Detection Conditions Args - List of conditions
- Insert
After string - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- Technology string
- Restrict this rule to a specific technology.
- Third
Party boolApi - This API defines a third party library
- api
Color String - This color will be used to highlight APIs when viewing code level data, such as distributed traces or method hotspots.
- api
Name String - API name
- conditions
Api
Detection Conditions - List of conditions
- insert
After String - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- technology String
- Restrict this rule to a specific technology.
- third
Party BooleanApi - This API defines a third party library
- api
Color string - This color will be used to highlight APIs when viewing code level data, such as distributed traces or method hotspots.
- api
Name string - API name
- conditions
Api
Detection Conditions - List of conditions
- insert
After string - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- technology string
- Restrict this rule to a specific technology.
- third
Party booleanApi - This API defines a third party library
- api_
color str - This color will be used to highlight APIs when viewing code level data, such as distributed traces or method hotspots.
- api_
name str - API name
- conditions
Api
Detection Conditions Args - List of conditions
- insert_
after str - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- technology str
- Restrict this rule to a specific technology.
- third_
party_ boolapi - This API defines a third party library
- api
Color String - This color will be used to highlight APIs when viewing code level data, such as distributed traces or method hotspots.
- api
Name String - API name
- conditions Property Map
- List of conditions
- insert
After String - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- technology String
- Restrict this rule to a specific technology.
- third
Party BooleanApi - This API defines a third party library
Supporting Types
ApiDetectionConditions, ApiDetectionConditionsArgs
ApiDetectionConditionsCondition, ApiDetectionConditionsConditionArgs
Package Details
- Repository
- dynatrace pulumiverse/pulumi-dynatrace
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dynatrace
Terraform Provider.