Class Service
Manages a Search Service.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var exampleService = new Azure.Search.Service("exampleService", new Azure.Search.ServiceArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
Sku = "standard",
});
}
}
Inherited Members
Namespace: Pulumi.Azure.Search
Assembly: Pulumi.Azure.dll
Syntax
public class Service : CustomResource
Constructors
View SourceService(String, ServiceArgs, CustomResourceOptions)
Create a Service resource with the given unique name, arguments, and options.
Declaration
public Service(string name, ServiceArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ServiceArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceLocation
The Azure Region where the Search Service should exist. Changing this forces a new Search Service to be created.
Declaration
public Output<string> Location { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
The Name which should be used for this Search Service. Changing this forces a new Search Service to be created.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PartitionCount
The number of partitions which should be created.
Declaration
public Output<int> PartitionCount { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
PrimaryKey
The Primary Key used for Search Service Administration.
Declaration
public Output<string> PrimaryKey { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
QueryKeys
A query_keys block as defined below.
Declaration
public Output<ImmutableArray<ServiceQueryKey>> QueryKeys { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<ServiceQueryKey>> |
ReplicaCount
The number of replica's which should be created.
Declaration
public Output<int> ReplicaCount { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
ResourceGroupName
The name of the Resource Group where the Search Service should exist. Changing this forces a new Search Service to be created.
Declaration
public Output<string> ResourceGroupName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SecondaryKey
The Secondary Key used for Search Service Administration.
Declaration
public Output<string> SecondaryKey { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Sku
The SKU which should be used for this Search Service. Possible values are basic, free, standard, standard2 and standard3 Changing this forces a new Search Service to be created.
Declaration
public Output<string> Sku { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Tags
A mapping of tags which should be assigned to the Search Service.
Declaration
public Output<ImmutableDictionary<string, string>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.String>> |
Methods
View SourceGet(String, Input<String>, ServiceState, CustomResourceOptions)
Get an existing Service resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Service Get(string name, Input<string> id, ServiceState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ServiceState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Service |