getServiceTags

Use this data source to access information about Service Tags.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.network.NetworkFunctions;
import com.pulumi.azure.network.inputs.GetServiceTagsArgs;
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) {
final var example = NetworkFunctions.getServiceTags(GetServiceTagsArgs.builder()
.location("westcentralus")
.service("AzureKeyVault")
.locationFilter("northeurope")
.build());
ctx.export("addressPrefixes", example.applyValue(getServiceTagsResult -> getServiceTagsResult.addressPrefixes()));
ctx.export("ipv4Cidrs", example.applyValue(getServiceTagsResult -> getServiceTagsResult.ipv4Cidrs()));
}
}

Return

A collection of values returned by getServiceTags.

Parameters

argument

A collection of arguments for invoking getServiceTags.


suspend fun getServiceTags(location: String, locationFilter: String? = null, service: String): GetServiceTagsResult

Return

A collection of values returned by getServiceTags.

See also

Parameters

location

The Azure Region where the Service Tags exists. This value is not used to filter the results but for specifying the region to request. For filtering by region use location_filter instead. More information can be found here: Service Tags URL parameters.

locationFilter

Changes the scope of the service tags. Can be any value that is also valid for location. If this field is empty then all address prefixes are considered instead of only location specific ones.

service

The type of the service for which address prefixes will be fetched. Available service tags can be found here: Available service tags.


Return

A collection of values returned by getServiceTags.

See also

Parameters

argument

Builder for com.pulumi.azure.network.kotlin.inputs.GetServiceTagsPlainArgs.