Strata Cloud Manager v0.3.2 published on Thursday, May 8, 2025 by Pulumi
scm.getFileBlockingProfile
Explore with Pulumi AI
Retrieves a config item.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scm from "@pulumi/scm";
const example = scm.getFileBlockingProfile({
    id: "1234-56-789",
});
import pulumi
import pulumi_scm as scm
example = scm.get_file_blocking_profile(id="1234-56-789")
package main
import (
	"github.com/pulumi/pulumi-scm/sdk/go/scm"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := scm.LookupFileBlockingProfile(ctx, &scm.LookupFileBlockingProfileArgs{
			Id: "1234-56-789",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scm = Pulumi.Scm;
return await Deployment.RunAsync(() => 
{
    var example = Scm.GetFileBlockingProfile.Invoke(new()
    {
        Id = "1234-56-789",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scm.ScmFunctions;
import com.pulumi.scm.inputs.GetFileBlockingProfileArgs;
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 = ScmFunctions.getFileBlockingProfile(GetFileBlockingProfileArgs.builder()
            .id("1234-56-789")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: scm:getFileBlockingProfile
      arguments:
        id: 1234-56-789
Using getFileBlockingProfile
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getFileBlockingProfile(args: GetFileBlockingProfileArgs, opts?: InvokeOptions): Promise<GetFileBlockingProfileResult>
function getFileBlockingProfileOutput(args: GetFileBlockingProfileOutputArgs, opts?: InvokeOptions): Output<GetFileBlockingProfileResult>def get_file_blocking_profile(id: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetFileBlockingProfileResult
def get_file_blocking_profile_output(id: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetFileBlockingProfileResult]func LookupFileBlockingProfile(ctx *Context, args *LookupFileBlockingProfileArgs, opts ...InvokeOption) (*LookupFileBlockingProfileResult, error)
func LookupFileBlockingProfileOutput(ctx *Context, args *LookupFileBlockingProfileOutputArgs, opts ...InvokeOption) LookupFileBlockingProfileResultOutput> Note: This function is named LookupFileBlockingProfile in the Go SDK.
public static class GetFileBlockingProfile 
{
    public static Task<GetFileBlockingProfileResult> InvokeAsync(GetFileBlockingProfileArgs args, InvokeOptions? opts = null)
    public static Output<GetFileBlockingProfileResult> Invoke(GetFileBlockingProfileInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetFileBlockingProfileResult> getFileBlockingProfile(GetFileBlockingProfileArgs args, InvokeOptions options)
public static Output<GetFileBlockingProfileResult> getFileBlockingProfile(GetFileBlockingProfileArgs args, InvokeOptions options)
fn::invoke:
  function: scm:index/getFileBlockingProfile:getFileBlockingProfile
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Id string
- The Id param.
- Id string
- The Id param.
- id String
- The Id param.
- id string
- The Id param.
- id str
- The Id param.
- id String
- The Id param.
getFileBlockingProfile Result
The following output properties are available:
- Description string
- The Description param.
- Id string
- The Id param.
- Name string
- The Name param.
- Rules
List<GetFile Blocking Profile Rule> 
- The Rules param.
- Tfid string
- Description string
- The Description param.
- Id string
- The Id param.
- Name string
- The Name param.
- Rules
[]GetFile Blocking Profile Rule 
- The Rules param.
- Tfid string
- description String
- The Description param.
- id String
- The Id param.
- name String
- The Name param.
- rules
List<GetFile Blocking Profile Rule> 
- The Rules param.
- tfid String
- description string
- The Description param.
- id string
- The Id param.
- name string
- The Name param.
- rules
GetFile Blocking Profile Rule[] 
- The Rules param.
- tfid string
- description str
- The Description param.
- id str
- The Id param.
- name str
- The Name param.
- rules
Sequence[GetFile Blocking Profile Rule] 
- The Rules param.
- tfid str
- description String
- The Description param.
- id String
- The Id param.
- name String
- The Name param.
- rules List<Property Map>
- The Rules param.
- tfid String
Supporting Types
GetFileBlockingProfileRule    
- Action string
- The Action param. String must be one of these: "alert","block","continue". Default:"alert".
- Applications List<string>
- The Applications param. List must contain at least 1 elements.
- Direction string
- The Direction param. String must be one of these: "download","upload","both". Default:"both".
- FileTypes List<string>
- The FileTypes param. List must contain at least 1 elements.
- Name string
- The Name param.
- Action string
- The Action param. String must be one of these: "alert","block","continue". Default:"alert".
- Applications []string
- The Applications param. List must contain at least 1 elements.
- Direction string
- The Direction param. String must be one of these: "download","upload","both". Default:"both".
- FileTypes []string
- The FileTypes param. List must contain at least 1 elements.
- Name string
- The Name param.
- action String
- The Action param. String must be one of these: "alert","block","continue". Default:"alert".
- applications List<String>
- The Applications param. List must contain at least 1 elements.
- direction String
- The Direction param. String must be one of these: "download","upload","both". Default:"both".
- fileTypes List<String>
- The FileTypes param. List must contain at least 1 elements.
- name String
- The Name param.
- action string
- The Action param. String must be one of these: "alert","block","continue". Default:"alert".
- applications string[]
- The Applications param. List must contain at least 1 elements.
- direction string
- The Direction param. String must be one of these: "download","upload","both". Default:"both".
- fileTypes string[]
- The FileTypes param. List must contain at least 1 elements.
- name string
- The Name param.
- action str
- The Action param. String must be one of these: "alert","block","continue". Default:"alert".
- applications Sequence[str]
- The Applications param. List must contain at least 1 elements.
- direction str
- The Direction param. String must be one of these: "download","upload","both". Default:"both".
- file_types Sequence[str]
- The FileTypes param. List must contain at least 1 elements.
- name str
- The Name param.
- action String
- The Action param. String must be one of these: "alert","block","continue". Default:"alert".
- applications List<String>
- The Applications param. List must contain at least 1 elements.
- direction String
- The Direction param. String must be one of these: "download","upload","both". Default:"both".
- fileTypes List<String>
- The FileTypes param. List must contain at least 1 elements.
- name String
- The Name param.
Package Details
- Repository
- scm pulumi/pulumi-scm
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the scmTerraform Provider.
