get Conversation
Use this data source to get information about a Slack conversation for use in other resources.
Required scopes
This resource requires the following scopes:
channels:read (public channels)
groups:read (private channels) The Slack API methods used by the resource are:
conversations.members If you get
missing_scope
errors while using this resource check the scopes against the documentation for the methods above.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.slack.SlackFunctions;
import com.pulumi.slack.inputs.GetConversationArgs;
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 test = SlackFunctions.getConversation(GetConversationArgs.builder()
.channelId("my-channel")
.build());
final var test-name = SlackFunctions.getConversation(GetConversationArgs.builder()
.name("my-channel-name")
.build());
}
}
Return
A collection of values returned by getConversation.
Parameters
A collection of arguments for invoking getConversation.
Return
A collection of values returned by getConversation.
See also
Parameters
The ID of the channel
The conversation is privileged between two or more members
The name of the public or private channel
Return
A collection of values returned by getConversation.
See also
Parameters
Builder for com.pulumi.slack.kotlin.inputs.GetConversationPlainArgs.